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

    Strange error: There were error(s) loading the rules: pfctl: pfctl_rules

    Scheduled Pinned Locked Moved General pfSense Questions
    102 Posts 13 Posters 19.4k 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.
    • K
      kprovost @Flole
      last edited by

      @flole It's a real fix, not a workaround. It's gone in upstream: https://cgit.freebsd.org/src/commit/?id=6ab80e7275091c900da8d2e84a7b0bb4c34a1e41

      and I'll merge it to our local branch just as soon as this test-build finishes.

      artooroA 1 Reply Last reply Reply Quote 3
      • artooroA
        artooro @kprovost
        last edited by

        @kprovost would it be possible to also get the kernel patch for ARM64 as I have Netgate 2100s and a 1100 that also have this happening.
        Thanks for all your help!

        K 1 Reply Last reply Reply Quote 0
        • K
          kprovost @artooro
          last edited by

          @artooro We don't need any further testing on different platforms.
          The fix has been merged in all relevant branches (and upstream FreeBSD) and will be present in upcoming snapshots, when they're published again.

          B 1 Reply Last reply Reply Quote 2
          • B
            bblacey @kprovost
            last edited by

            @kprovost

            Apologies for bumping this relatively old thread but I'm seeing this on a new Netgate 6100 Max running pfSense+ 22.05-RELEASE. Is there a snapshot available that effectively has only this one merge included? This is a production machine so I want to keep the non-release deltas to a minimum.

            K 1 Reply Last reply Reply Quote 0
            • K
              kprovost @bblacey
              last edited by

              @bblacey I don't believe so, no.

              1 Reply Last reply Reply Quote 0
              • mardacs27M
                mardacs27 @stephenw10
                last edited by

                @stephenw10

                Any update or tutorial on this? Constantly happening on my SG-2440

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

                  It only affects the new layer2 rules in 22.05. The only real mitigation you can apply there is to avoid using them as far as possible. Otherwise you can upgrade to a 23.01snapshot where it's fixed. Those are not in beta yet though.

                  Steve

                  L 1 Reply Last reply Reply Quote 1
                  • L
                    lukeskyscraper @stephenw10
                    last edited by

                    @stephenw What are these new layer2 rules that are causing this problem, and how do we avoid using them? I have a firewall in production that constantly has this error, causing all sorts of problems for the client.

                    K 1 Reply Last reply Reply Quote 0
                    • K
                      kprovost @lukeskyscraper
                      last edited by

                      @lukeskyscraper Only the captive portal feature uses layer 2 rules. Disabling captive portal should mean you won't run into the issue again.

                      C D 2 Replies Last reply Reply Quote 1
                      • C
                        ChrisJenk @kprovost
                        last edited by

                        @kprovost I encountered the issue several times and I do not use captive portal at all (not even configured).

                        K 1 Reply Last reply Reply Quote 1
                        • K
                          kprovost @ChrisJenk
                          last edited by

                          @chrisjenk That's somewhat unexpected. It may be worth testing a 23.01 snapshot to confirm it fixes the issue for you as well, but there's no other workaround.

                          L 1 Reply Last reply Reply Quote 1
                          • L
                            lukeskyscraper @kprovost
                            last edited by

                            @kprovost I don't use any captive portal features either. I do use Adam:ONE though, as well as pfBlocker for geo IP lists. Yesterday I got this firewall to reload its filter by disabling pfBlocker, reloading, then re-enabling it afterwards. But... it seems to be a different fix, every time this problem happens. Sometimes a reboot works, sometimes it works to backup and restore the full configuration, and this time it was pfblocker.

                            I hope 23.01 becomes available soon. It would be nice if they Netgate would put this fix out as a patch in the meantime...

                            artooroA 1 Reply Last reply Reply Quote 0
                            • D
                              djrobx @kprovost
                              last edited by

                              @kprovost I ran into this and don't have a captive portal either. My configuration is pretty much the same that I have been using since 2.4.5, so not using any "new" features. I have not seen the issue recur since applying the kernel patch though.

                              1 Reply Last reply Reply Quote 0
                              • artooroA
                                artooro @lukeskyscraper
                                last edited by

                                @lukeskyscraper what kind of hardware are you using? There is a patch for Intel and some ARM devices, which has been working for us.

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

                                  Yeah, there is a test kernel for 2205 still available earlier in this thread. It was very much for testing only but it might be a good test if you're hitting it without any layer2 rules.

                                  Because this is a compiled in-kernel change it's not something we can release as a run-time patch. It would require a complete point release.

                                  23.01 snapshots are currently available. Although right now there is some back end work happening which might mean they are not for while today.

                                  Steve

                                  1 Reply Last reply Reply Quote 0
                                  • L
                                    lukeskyscraper @artooro
                                    last edited by

                                    @artooro This particular box is a Netgate 7100, so if there's an intel patch available, I'd be happy to try it.

                                    artooroA 1 Reply Last reply Reply Quote 0
                                    • artooroA
                                      artooro @lukeskyscraper
                                      last edited by

                                      @lukeskyscraper ok try these commands in an SSH prompt

                                      rm -r /boot/kernel.old
                                      mv /boot/kernel /boot/kernel.old
                                      curl -o /tmp/kernel.tar.bz2 https://people.freebsd.org/~kp/kernel.tar.bz2
                                      tar -xjf /tmp/kernel.tar.bz2 -C /boot
                                      

                                      And then reboot

                                      Make sure you have a config backup in case it goes wrong.

                                      L mardacs27M 2 Replies Last reply Reply Quote 2
                                      • stephenw10S
                                        stephenw10 Netgate Administrator
                                        last edited by

                                        And an install image. Preferably on a USB drive ready to go. 😉

                                        1 Reply Last reply Reply Quote 3
                                        • L
                                          lukeskyscraper @artooro
                                          last edited by

                                          @artooro Awesome thanks. The firewall is remote, at a site we visit weekly. If this issue crops up again by next week, then I'll try this kernel while someone is on site.

                                          1 Reply Last reply Reply Quote 0
                                          • mardacs27M
                                            mardacs27 @artooro
                                            last edited by

                                            @artooro can this also be tested on SG-2440 (Intel)?

                                            1 Reply Last reply Reply Quote 0
                                            • GertjanG Gertjan referenced this topic on
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.