Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Error loading shaping rules

    Scheduled Pinned Locked Moved Traffic Shaping
    5 Posts 4 Posters 2.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Chireru
      last edited by

      Getting an odd error message:

      There were error(s) loading the rules: /tmp/qwanRoot.rules:36: syntax error/tmp/qwanRoot.rules:37: syntax 
      error pfctl: Syntax error in config file: pf rules not loaded pfctl: load anchors - The line in question reads [36]: queue 
      qOthersDownH bandwidth 25% priority 4 hfsc ( red ecn realtime 1Kb )...
      

      This happens directly out of the shaper wizard, regardless of what options I choose (even if I choose none).

      /tmp/qwanRoot.rules doesn't have anything interesting on line 36, but rules.debug does (the qOthersDownH line) … here's all of the queue lines:

      queue qwanRoot bandwidth 760Kb priority 0 hfsc { qwandef, qwanacks, qVOIPUp, qP2PUp, qOthersUpH, qOthersUpL }
      queue qlanRoot bandwidth 2800Kb priority 0 hfsc { qlandef, qlanacks, qVOIPDown, qP2PDown, qOthersDownH, qOthersDownL }
      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 96Kb )
      queue qVOIPDown bandwidth 25% priority 7 hfsc (  realtime 96Kb )
      queue qOthersUpH bandwidth 25% priority 4 hfsc (  red ecn realtime 1Kb )
      queue qOthersDownH bandwidth 25% priority 4 hfsc (  red ecn realtime 1Kb )
      queue qOthersUpL bandwidth 1% priority 2 hfsc (  red ecn realtime 1Kb )
      queue qOthersDownL bandwidth 1% priority 2 hfsc (  red ecn realtime 1Kb )
      

      I've tried toying with the qOthersDownH rule… changing the TCP options, the bandwidth allotment, etc, and nothing seems to do anything.

      1 Reply Last reply Reply Quote 0
      • H
        hoba
        last edited by

        Is this the latest snapshot that you are testing with?

        1 Reply Last reply Reply Quote 0
        • C
          Chireru
          last edited by

          No, this is the latest stable

          1.0.1
          built on Sun Oct 29 01:13:05 UTC 2006

          1 Reply Last reply Reply Quote 0
          • S
            sullrich
            last edited by

            Update to a recent snapshot.

            1 Reply Last reply Reply Quote 0
            • S
              sbyoon
              last edited by

              I think this problem occurs again on 1.2 beta1.

              #########################################################
              Diagnostics: Filter Reload Status
              There were error(s) loading the rules: /tmp/qwanRoot.rules:11: syntax errorpfctl: Syntax error in config file: pf rules not loaded pfctl: load anchors - The line in question reads [11]: …
              #########################################################

              /tmp/qwanRoot.rules
              ###################################################

              System Aliases

              loopback = "{ lo0 }"
              lan = "{ rl1  }"
              wan = "{ rl0  }"
              enc0 = "{ enc0 }"

              User Aliases

              pass in quick on $wan proto tcp from any to 192.168.10.180 port = 443 keep state  queue (qwanRoot, qwanacks) label "USER_RULE"
              pass in quick on $wan proto tcp from any to 192.168.10.180 port = 2223 keep state  queue (qwanRoot, qwanacks) label "USER_RULE"
              pass in quick on $wan proto udp from any to 192.168.10.180 port = 1194 keep state  queue (qwanRoot, qwanacks) label "USER_RULE"
              pass in quick on $wan inet proto icmp from any to 192.168.10.180 icmp-type echoreq keep state  queue (qwanRoot, qwanacks) label "USER_RULE"
              queue qwanRoot label "USER_RULE"
              pass in quick on $lan from 192.168.1.0/24 to any keep state  queue (qwanRoot, qlanacks) label "USER_RULE: Default LAN -> any"
              pass in quick on $enc0 from any to any keep state  queue qwanRoot label "USER_RULE"
              ##########################################################################################

              thanks,

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.