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

    Traffic shaper syntax error

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    3 Posts 3 Posters 2.3k 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 Offline
      cmonroe
      last edited by

      hi Guys,

      I've been using 2.1 beta for a while and most things seem to work great. I ran into issues when I tried to turn on the traffic shaper. I have the same CBQ setup on a 2.0 box and it works fine, but fails in 2.1. I can add all of the traffic shaper rules, but when I go to assign them to floating rules I get a pfctl error when reloading rules. From system.log:

      Apr  1 13:22:04 scooby-sba php: : The command '/sbin/pfctl -o basic -f /tmp/rules.debug' returned exit code '1', the output was '/tmp/rules.debug:192: syntax error pfctl: Syntax error in config file: pf rules not loaded'
      Apr  1 13:22:04 scooby-sba php: : New alert found: There were error(s) loading the rules: /tmp/rules.debug:192: syntax error pfctl: Syntax error in config file: pf rules not loaded - The line in question reads [192]: match inet proto tcp  from any to any  queue (q3_Default,q6_ACK)  label "USER_RULE: Default"
      Apr  1 13:22:04 scooby-sba php: : There were error(s) loading the rules: /tmp/rules.debug:192: syntax error pfctl: Syntax error in config file: pf rules not loaded - The line in question reads [192]: match inet proto tcp  from any to any  queue (q3_Default,q6_ACK)  label "USER_RULE: Default"

      The line in question from rules.debug is:

      match inet proto tcp  from any to any  queue (q3_Default,q6_ACK)  label "USER_RULE: Default"

      On my 2.0 box the line looks mostly the same, however the "inet" keyword is missing:

      match  proto tcp  from any to any  queue (q3_Default,q6_ACK)  label "USER_RULE: Default"

      I tried manually editing the line and loading the rules from the command line on 2.1 but that failed too. I suspect the syntax has changed between releases. Is this already a known issue (I searched and couldn't find a bug), or is there something I'm doing wrong?

      Thanks.

      1 Reply Last reply Reply Quote 0
      • w0wW Away
        w0w
        last edited by

        https://redmine.pfsense.org/issues/2373

        1 Reply Last reply Reply Quote 0
        • P Offline
          podilarius
          last edited by

          I have tried manually editing as well and I cannot find what is considered the "syntax" error.

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