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

    Pfctl: Syntax error

    Scheduled Pinned Locked Moved Routing and Multi WAN
    4 Posts 2 Posters 2.1k 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.
    • S
      sai
      last edited by

      1.0.1-SNAPSHOT-02-14-2007

      System Logs show:

      php: : There were error(s) loading the rules: /tmp/rules.debug:116: syntax error pfctl: Syntax error in config file: pf rules not loaded - The line in question reads [116]: pass in quick on $lan route-to { ( LOADBALANCER ) , ( LOADBALANCER ) } round-robin from 172.16.0.0/16 to any keep state label "USER_RULE: Default LAN -> any"

      php: : New alert found: There were error(s) loading the rules: /tmp/rules.debug:116: syntax error pfctl: Syntax error in config file: pf rules not loaded The line in question reads [116]: pass in quick on $lan route-to { ( LOADBALANCER ) , ( LOADBALANCER ) } round-robin from 172.16.0.0/16 to any keep state label "USER_RULE: Default LAN -> any"

      The error is shown twice.

      I should delete the rule and try again?

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

        If I have the default LAN rule, that works fine (ie it is parsed fine). If I then change that rule so that the gateway is LOADBALANCER (that is what my pool is called) then I get this error.

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

          reverting back to 1.0.1-SNAPSHOT-02-09-2007  and the rule is parsed ok.

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

            Try upgrading and redo the load balancing pools.

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