• 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 18.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.
  • F
    Flole
    last edited by Aug 19, 2022, 3:49 PM

    I believe the "real" errors can be seen in dmesg now, you should at least save the dmesg output somewhere in case it's needed.

    A 1 Reply Last reply Aug 19, 2022, 4:02 PM Reply Quote 0
    • A
      artooro @Flole
      last edited by Aug 19, 2022, 4:02 PM

      @flole in dmesg right now all I'm seeing is pf: wire key attach failed on all messages. Not sure whether it's related at all.
      If it's still helpful I can write some more code to capture it at the time of incident.

      1 Reply Last reply Reply Quote 0
      • D
        djrobx
        last edited by Aug 20, 2022, 4:52 AM

        This is happening to me too on 22.05. Same "busy" message:

        /root: pfctl -Fa
        pfctl: pfctl_clear_eth_rules: Device busy

        Mine popped up when trying to modify OpenPVN client settings.

        Mine's as close to a virgin install as you can get on self-supplied hardware (2.6.0->22.01->22.05). It ran most of the day on 22.01 with no problem, then I upgraded to latest.

        No custom packages, have not touched the file system other than to load one script back in.

        1 Reply Last reply Reply Quote 0
        • A
          artooro @kprovost
          last edited by Aug 23, 2022, 9:57 PM

          @kprovost is it possible to get the kernel patch for armv7 (for the SG-3100) as most installs I have exhibiting the issue are using that platform.

          K 1 Reply Last reply Aug 24, 2022, 2:36 PM Reply Quote 0
          • K
            kprovost @artooro
            last edited by Aug 24, 2022, 2:36 PM

            @artooro Here's a kernel for the 3100. https://people.freebsd.org/~kp/kernel-3100.tar.bz2

            I have NOT tested this kernel as I don't have a 3100. Be careful to ensure you don't break your device.

            A 1 Reply Last reply Aug 26, 2022, 8:54 PM Reply Quote 0
            • A
              artooro @kprovost
              last edited by Aug 26, 2022, 8:54 PM

              @kprovost after installing this kernel patch I was able to observe a collision of pf syscalls and it did not end up in a locked state like it did previously.
              So far I'd say this patch is doing the job.

              1 Reply Last reply Reply Quote 2
              • D
                djrobx @kprovost
                last edited by Aug 26, 2022, 9:32 PM

                @kprovost I have also been running with the kernel patch. It seems to have resolved the problem for me as well.

                1 Reply Last reply Reply Quote 1
                • F
                  Flole
                  last edited by Aug 27, 2022, 1:18 AM

                  Is this intended as "proper" fix or just as a temporary workaround? Or asked differently: Will this be merged like this or will there be a different fix? Is there a diff available somewhere so I can see what was changed?

                  K 1 Reply Last reply Aug 28, 2022, 7:32 AM Reply Quote 0
                  • S
                    stephenw10 Netgate Administrator
                    last edited by Aug 27, 2022, 1:32 PM

                    Right now these are test kernels just prove we have found the issue. Now that appears to be the case we will merge it and look at what we can do in existing 22.05 installs.

                    Steve

                    M 1 Reply Last reply Nov 17, 2022, 5:12 PM Reply Quote 0
                    • K
                      kprovost @Flole
                      last edited by Aug 28, 2022, 7:32 AM

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

                      A 1 Reply Last reply Sep 2, 2022, 6:44 PM Reply Quote 3
                      • A
                        artooro @kprovost
                        last edited by Sep 2, 2022, 6:44 PM

                        @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 Sep 3, 2022, 8:23 AM Reply Quote 0
                        • K
                          kprovost @artooro
                          last edited by Sep 3, 2022, 8:23 AM

                          @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 Nov 8, 2022, 1:41 PM Reply Quote 2
                          • B
                            bblacey @kprovost
                            last edited by Nov 8, 2022, 1:41 PM

                            @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 Nov 8, 2022, 2:51 PM Reply Quote 0
                            • K
                              kprovost @bblacey
                              last edited by Nov 8, 2022, 2:51 PM

                              @bblacey I don't believe so, no.

                              1 Reply Last reply Reply Quote 0
                              • M
                                mardacs27 @stephenw10
                                last edited by Nov 17, 2022, 5:12 PM

                                @stephenw10

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

                                1 Reply Last reply Reply Quote 0
                                • S
                                  stephenw10 Netgate Administrator
                                  last edited by Nov 17, 2022, 6:26 PM

                                  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 Nov 18, 2022, 1:31 AM Reply Quote 1
                                  • 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
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received