Menu

traffic shaping error

Help
naitsirhc
2007-11-04
2012-12-07
  • naitsirhc

    naitsirhc - 2007-11-04

    Hello,

    I am trying to do my part in alpha testing the traffic shaping.  Without any shaping rules set, adding the path of my TC executable (/sbin/tc) causes vuurmuur to fail when applying the change.  The related lines from the error log are:

    11/04/2007 11:44:13 : PID 23129 : vuurmuur      : Error (-1): command '/bin/bash /tmp/vuurmuur-shape-qgSFJT 2>> /tmp/vuurmuur-load-result-4oFqSO' failed.
    11/04/2007 11:44:13 : PID 23129 : vuurmuur      : Error (-1): loading the shape ruleset failed (in: ruleset_load_shape_ruleset:1266).
    11/04/2007 11:44:13 : PID 23129 : vuurmuur      : Error (-1): shape rulesetfile will be stored as '/tmp/vuurmuur-shape-qgSFJT.failed' (in: load_ruleset:1717).
    11/04/2007 11:44:13 : PID 23129 : vuurmuur      : Internal Error (-1): could not create failed rulset path (in: ruleset_store_failed_set:1525).
    11/04/2007 11:44:13 : PID 23129 : vuurmuur      : Error (-1): creating rules failed.
    11/04/2007 11:44:13 : PID 23129 : vuurmuur      : Error (-1): applying changes failed.

    The contents of /tmp/vuurmuur-shape-qgSFJT are:

    #!/bin/bash
    /sbin/tc qdisc del dev ppp0 root 2> /dev/null > /dev/null
    /sbin/tc qdisc del dev eth1 root 2> /dev/null > /dev/null
    # EOF

    When I run '/sbin/tc qdisc del dev ppp0 root' manually, I get:
    RTNETLINK answers: No such file or directory

    I am running Ubuntu Dapper Drake with iproute (tc, etc.) from the following package:
    http://packages.ubuntu.com/dapper/net/iproute

    This means the version of tc might be a little dated (October 2004), so I'm not sure if that has anything to do with it.

    Any help would be greatly appreciated :)  Keep up the great work!!

    Thanks,
    Christian

     
    • Victor Julien

      Victor Julien - 2007-11-04

      You seem to have found 2 bugs. One is the internal error message, the other the failing script. I'll look into the first one as I have no idea whats going wrong there. With regard to the second one, the script fails because 'tc' returns an error code on the commands. It does so because it tries to remove a previous config while there is none. If you actually add a shaping config (at least set bandwidth on one of the interfaces) this problem should be gone. Please let me know if it works. I'll look into the issue meanwhile, as Vuurmuur should of course be able to work without using the shaping setting.

      Oh yeah, if you want, please open up bug tickets for these bugs. Thanks!

      Cheers,
      Victor

       

Log in to post a comment.