Traffic shaper error: queue qwanRoot has no parent…



  • Hello
    I use 1.2 Release and I found  strange behavior of Traffic shaper. I use the Wizard to make queues and rules and if I delete one of first two rules generated with the Wizard I receive this error:

    There were error(s) loading the rules: /tmp/rules.debug:17: queue qlanRoot has no parent/tmp/rules.debug:17: errors in queue definition /tmp/rules.debug:19: queue qlandef has no parent /tmp/rules.debug:19: errors in queue definition /tmp/rules.debug:21: queue qlanacks has no parent /tmp/rules.debug:21: errors in queue definition /tmp/rules.debug:23: queue qVOIPDown has no parent /tmp/rules.debug:23: errors in queue definition pfctl: Syntax error in config file: pf rules not loaded - The line in question reads [17]: queue qlanRoot bandwidth 10000Kb priority 0 hfsc { qlandef, qlanacks, qVOIPDown }…

    I check /tmp/rules.debug and found that when Wizard generated rule is deleted the altq line in config file is deleted to.

    For example:

    Simple config generated with Wizard - only VoIP is checked

    altq on rl1 hfsc bandwidth 10000Kb queue { qwanRoot }
    altq on rl0 hfsc bandwidth 10000Kb queue { qlanRoot }

    queue qwanRoot bandwidth 10000Kb priority 0 hfsc { qwandef, qwanacks, qVOIPUp }
    queue qlanRoot bandwidth 10000Kb priority 0 hfsc { qlandef, qlanacks, qVOIPDown }
    queue qwandef bandwidth 1% priority 1 qlimit 500 hfsc (  default realtime 1% )
    queue qlandef bandwidth 1% priority 1 qlimit 500 hfsc (  default realtime 1% )
    queue qwanacks bandwidth 25% priority 7 hfsc (  realtime 10% )
    queue qlanacks bandwidth 25% priority 7 hfsc (  realtime 10% )
    queue qVOIPUp bandwidth 25% priority 7 hfsc (  realtime 32Kb )
    queue qVOIPDown bandwidth 25% priority 7 hfsc (  realtime 32Kb )

    Now I delete one of VoIP rules in Traffic shaper and config is:

    altq on rl1 hfsc bandwidth 10000Kb queue { qwanRoot }

    queue qwanRoot bandwidth 10000Kb priority 0 hfsc { qwandef, qwanacks, qVOIPUp }
    queue qlanRoot bandwidth 10000Kb priority 0 hfsc { qlandef, qlanacks, qVOIPDown }
    queue qwandef bandwidth 1% priority 1 qlimit 500 hfsc (  default realtime 1% )
    queue qlandef bandwidth 1% priority 1 qlimit 500 hfsc (  default realtime 1% )
    queue qwanacks bandwidth 25% priority 7 hfsc (  realtime 10% )
    queue qlanacks bandwidth 25% priority 7 hfsc (  realtime 10% )
    queue qVOIPUp bandwidth 25% priority 7 hfsc (  realtime 32Kb )
    queue qVOIPDown bandwidth 25% priority 7 hfsc (  realtime 32Kb )

    "altq on rl0 hfsc bandwidth 10000Kb queue { qlanRoot }" line is missing and pfctl return error.

    This is normal or this is a bug in rule generation script.

    Best Regards
    TheCHOSEN



  • I had similar problem with 1.2 and cant see shaper works here. It shows this same error and cannot limit bandwith of a penalty queue, for example.

    I had re-run shaper without success.

    any idea?


Locked