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

    Syntax error in config file

    Scheduled Pinned Locked Moved 1.2.3-PRERELEASE-TESTING snapshots - RETIRED
    6 Posts 3 Posters 3.6k 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.
    • W
      wallabybob
      last edited by

      I recently "upgraded" to 1.2.3-20090128-0504 from 1.2.1.

      Soon after startup Status -> System logs -> System shows a couple of entries:

      php: : New alert found: There were error(s) loading the rules: /tmp/rules.debug:153: syntax error pfctl: Syntax error in config file: pf rules not loaded The line in question reads [153]: pass in quick on $lan route-to ( 192.168.37.200 ) from 192.168.211.128/25 to 192.168.37.192/28 keep state label "USER_RULE: LAN and DMZ"

      and I can't get web access to the WAN. I edited the corresponding rule to disable it, saved the rule, clicked apply changes and the rules were apparently loaded without problem and I had web access to the WAN.

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

        What interface does 192.168.37.200 reside on?

        1 Reply Last reply Reply Quote 0
        • W
          wallabybob
          last edited by

          @cmb:

          What interface does 192.168.37.200 reside on?

          192.168.37.200 is a router on the 192.168.37.192/28 network. The pfSense interface to this network has address 192.168.37.197.

          The rule in question was unchanged from 1.2.1 days.

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

            I mean what interface to the OS, Ethernet or VLAN or PPPoE, or?

            1 Reply Last reply Reply Quote 0
            • W
              wallabybob
              last edited by

              @cmb:

              I mean what interface to the OS, Ethernet or VLAN or PPPoE, or?

              Currently its ethernet using udav0 (USB to Ethernet adapter). No VLAN or PPPOE

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

                Most likely could not lookup the cached interface.  Adding code to log an error for this condition.

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