• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 16.2k 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.
  • L
    lukeskyscraper @stephenw10
    last edited by Nov 18, 2022, 1:31 AM

    @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 Nov 18, 2022, 8:41 AM Reply Quote 0
    • K
      kprovost @lukeskyscraper
      last edited by Nov 18, 2022, 8:41 AM

      @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 Nov 18, 2022, 9:22 AM Reply Quote 1
      • C
        ChrisJenk @kprovost
        last edited by Nov 18, 2022, 9:22 AM

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

        K 1 Reply Last reply Nov 18, 2022, 10:04 AM Reply Quote 1
        • K
          kprovost @ChrisJenk
          last edited by Nov 18, 2022, 10:04 AM

          @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 Nov 18, 2022, 5:13 PM Reply Quote 1
          • L
            lukeskyscraper @kprovost
            last edited by Nov 18, 2022, 5:13 PM

            @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...

            A 1 Reply Last reply Nov 18, 2022, 6:09 PM Reply Quote 0
            • D
              djrobx @kprovost
              last edited by Nov 18, 2022, 5:35 PM

              @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
              • A
                artooro @lukeskyscraper
                last edited by Nov 18, 2022, 6:09 PM

                @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 Nov 18, 2022, 6:15 PM Reply Quote 0
                • S
                  stephenw10 Netgate Administrator
                  last edited by Nov 18, 2022, 6:15 PM

                  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 Nov 18, 2022, 6:15 PM

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

                    A 1 Reply Last reply Nov 18, 2022, 6:18 PM Reply Quote 0
                    • A
                      artooro @lukeskyscraper
                      last edited by Nov 18, 2022, 6:18 PM

                      @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 M 2 Replies Last reply Nov 18, 2022, 6:50 PM Reply Quote 2
                      • S
                        stephenw10 Netgate Administrator
                        last edited by Nov 18, 2022, 6:21 PM

                        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 Nov 18, 2022, 6:50 PM

                          @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
                          • M
                            mardacs27 @artooro
                            last edited by Nov 21, 2022, 4:05 AM

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

                            1 Reply Last reply Reply Quote 0
                            • G Gertjan referenced this topic on Nov 21, 2022, 7:51 AM
                            • S
                              stephenw10 Netgate Administrator
                              last edited by Nov 21, 2022, 2:04 PM

                              Yes, it will work on any amd64 device, they all share the same 22.05 kernel.

                              1 Reply Last reply Reply Quote 1
                              • S stephenw10 referenced this topic on Dec 19, 2022, 1:47 PM
                              • S
                                sandie
                                last edited by sandie Jan 15, 2023, 11:39 AM Jan 15, 2023, 11:20 AM

                                Hello colleagues,
                                I am skim-reading this thread. Is this problem (https://redmine.pfsense.org/issues/13408) resolved in 23.01 (I am Plus with 7100-DT)? I was affected by discussed problem too and so far reboots always helped (we do not change rules very often).
                                I did not check much, but prior last reboot/problem I can confirm that /tmp/rules.debug was quite large file (non-empty / 346 lines in my case). Status / Filter Reload was bringing errors at the time of "problem", until router rebooted.
                                Did I understand correctly that for 22.05 Plus there is kernel fix that should manually be applied? I think I can live little longer with reboots, but would like to confirm that it was fixed in 23.01.
                                Sorry for bringing this thread from ashes.
                                BTW. I am not using Captive Portal and 6to4 tunnels too.
                                Kind regards
                                Pawel

                                1 Reply Last reply Reply Quote 0
                                • S
                                  stephenw10 Netgate Administrator
                                  last edited by Jan 15, 2023, 1:35 PM

                                  There was a test kernel that contained the fix for 22.05 but at this point it's better to test 23.01 if you can. If you're running ZFS you can always roll back the BE snap to 22.05 if required.

                                  1 Reply Last reply Reply Quote 0
                                  96 out of 102
                                  • First post
                                    96/102
                                    Last post
                                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                    This community forum collects and processes your personal information.
                                    consent.not_received