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

    Unable to change the rules and rules are not loading

    Official Netgate® Hardware
    3
    11
    928
    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.
    • X
      XilefSeiei
      last edited by

      Good day,

      We are having issues on our pfsense where there is no connection because the users are unable to connect to the internet and upon inspection it seems the rules are not loading

      There were error(s) loading the rules: /tmp/rules.debug:226: syntax error - The line in question reads [226]: pass out log route-to ( re1 X.X.X.X ) proto udp from (self) to Y.Y.Y.Y port = 500 tracker 1000106341 keep state label "IPsec: XXXX tunnel "EASTERN" - outbound isakmp"
      @ 2022-08-11 15:14:28

      1 Reply Last reply Reply Quote 0
      • X
        XilefSeiei
        last edited by

        Is there anyone have an idea on how to resolve this? Thank you

        GertjanG 1 Reply Last reply Reply Quote 0
        • GertjanG
          Gertjan @XilefSeiei
          last edited by

          @xilefseiei

          First solution :

          Access the console menu.
          Use option 15, and pick a configuration just before the one that crippled your access.

          While you using the console, use option 8, and have a look at the /tmp/rules.debug up and around line number 226.

          If you're old enough to know what "vi" is, you could use "viconfig" and remove the offending rule.

          This is an example of a firewall rule on my LAN interface :

          469e1f5d-832e-4755-b38e-173716f6c749-image.png

          and here is the corresponding part in the config :

          0ce7806a-9874-4bac-b234-4d74aa37bf8c-image.png

          Just remove it - do not make error -

          Before doing all this, make an extra backup here Diagnostics >Backup & Restore > Backup & Restore
          Better yet : make a backup of the config every day.
          Only when you have backup, you'll be sure to never use them.

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          1 Reply Last reply Reply Quote 1
          • X
            XilefSeiei
            last edited by

            @gertjan said in Unable to change the rules and rules are not loading:

            While you using the console, use option 8, and have a look at the /tmp/rules.debug up and around line number 226.

            Thanks, Will try this

            1 Reply Last reply Reply Quote 0
            • X
              XilefSeiei
              last edited by

              Good day,

              Already tried but the error persists and the line is just keep on coming back. You can see the line in the attached image. This is under VPN Rules

              2f517480-c23c-4cf7-b63a-98d85052c970-image.png

              GertjanG 1 Reply Last reply Reply Quote 0
              • GertjanG
                Gertjan @XilefSeiei
                last edited by

                @xilefseiei

                You took a config from before the error happened ?

                Can you de activate the IPSEC temporarily ?

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

                1 Reply Last reply Reply Quote 1
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by stephenw10

                  That's not a user rule it's an auto rule added by the system when you create an IPSec tunnel.

                  So if it's failing to load it's probably because something referenced by is no longer present. Most likely the gateway or interface doesn't exist.

                  What pfSense version are you running?

                  Steve

                  X 1 Reply Last reply Reply Quote 1
                  • X
                    XilefSeiei @stephenw10
                    last edited by

                    @stephenw10

                    The version is this:
                    2.4.4-RELEASE (amd64)
                    built on Thu Sep 20 09:03:12 EDT 2018
                    FreeBSD 11.2-RELEASE-p3

                    Will it be possible to just delete the ipsec tunnel and recreate it?

                    1 Reply Last reply Reply Quote 0
                    • X
                      XilefSeiei
                      last edited by

                      Good day,

                      It seems it is working now (haven't fully tested the sites yet), but so far it seems there are no further issue.

                      As @Gertjan said, there is indeed something wrong with the current configuration of the IPSEC Tunnels. That also coincide with @stephenw10 statement that there is an object reference that is no longer present (in our case the interface group is no longer present).

                      Additionally, as I never noticed it initially there is another caused for the said error which is the IPSec Tunnel name contains special character (in this case "" ) that causes the rule.debug to be not loaded properly. After removing it, there is no longer errors being observed. Another administrator changed the settings without informing us and never told the changes.

                      Thank you everyone for your help. Will continue to observe and test the functionalities

                      GertjanG 1 Reply Last reply Reply Quote 0
                      • GertjanG
                        Gertjan @XilefSeiei
                        last edited by

                        @xilefseiei said in Unable to change the rules and rules are not loading:

                        Will continue to observe and test the functionalities

                        You missed something huge !
                        2.4.4 is far to ancient.
                        You might as well found something that was solved many years ago.

                        No "help me" PM's please. Use the forum, the community will thank you.
                        Edit : and where are the logs ??

                        1 Reply Last reply Reply Quote 0
                        • stephenw10S
                          stephenw10 Netgate Administrator
                          last edited by

                          Yes, you should upgrade. There's every chance the bug that allowed that invalid ruleset to be created has been fixed in the 4 years since 2.4.4. Along with numerous security fixes!

                          Steve

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