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

    rules error

    Scheduled Pinned Locked Moved General pfSense Questions
    10 Posts 3 Posters 977 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.
    • G
      garyn
      last edited by garyn

      Hi!

      I'm getting the following error:

      There were error(s) loading the rules: /tmp/rules.debug:77: could not parse host specification - The line in question reads [77]: rdr pass on igb1 inet6 proto tcp from any to ::1010101 port 80 -> ::1 port 8081
      @ 2022-10-12 20:56:21

      rdr pass on igb1 inet6 proto tcp from any to ::1010101 port 80 -> ::1 port 8081.

      I'm on 2.6.0-RELEASE and I'm really NOT trying to narrow the solution space, but I suspect this may have something to do with pfBlockerNG-devel 3.1.0_5 as I just updated earlier this week and that seems to be about when the problem started.

      Any ideas where to look or what to update? And, any idea what impact this is having on my firewall?

      This is on a Netgate 5100.

      Thanks!!!

      G 1 Reply Last reply Reply Quote 0
      • G
        garyn @garyn
        last edited by

        @garyn Setting clearing the IPv6 DNSBL check box under firewall -> pfblockerNG -> DNSBL does not change the error.

        G 1 Reply Last reply Reply Quote 0
        • G
          garyn @garyn
          last edited by

          @garyn I have a work around:

          Firewall -> pfBlockerNG -> DNSBL and set Global Logging/Blocking Mode to DNSBL WebServer/VIP. Then, status -> services and restart everything pfblocker. Then, status -> filter reload and reload the firewall rules.

          If you're dealing with this issue, the output file that is being loaded is /tmp/rules.debug and (i think) it is being generated by the script /usr/local/pkg/pfblockerng/pfblockerng.inc. Looking at the sections that seemed to assemble the line, dnsbl_vip appeared to be involved. A BUNCH of big leaps, but resetting the global logging worked around this error and my firewall rules are now loading.

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

            This is fixed in pfBlocker-dev: https://redmine.pfsense.org/issues/12330

            Steve

            G 1 Reply Last reply Reply Quote 0
            • G
              garyn @stephenw10
              last edited by

              @stephenw10 Thanks Steve!

              How do I tell pfsense to select the dev branch? Or, if I pull the branch locally, how do I manually install?

              I looked at the commit and there are only 8 files updated and some of those are just versioning information. Alternatively, maybe I can manually grab the .inc and .sh and replace them locally?

              Gary

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

                pfBlockerNG-dev is available in the package manager as a separate package. All the recent development is done there, the package developer recommends using that. It will likely become the only pfBlockerNG package shortly.

                Steve

                G 1 Reply Last reply Reply Quote 0
                • G
                  garyn @stephenw10
                  last edited by

                  @stephenw10 Ohhh, so this error happened to me on the devel branch. I have 3.1.0_5 installed. It has the same symptoms as their original bug fix where a portion of the path was not being initialized. This error will only happen on installs that select 'Permit firewall rules' enabled and then left 'Global logging/blocking mode' defaulted to 'no global mode'. That combination may not be the best logical choice, but it also results in firewall rules failing to load.

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

                    Then add your new result onto that bug and we can set it back to open.

                    1 Reply Last reply Reply Quote 0
                    • johnpozJ
                      johnpoz LAYER 8 Global Moderator @garyn
                      last edited by

                      @garyn said in rules error:

                      I have 3.1.0_5 installed

                      But isn't _6 available - that is what I have installed on 22.05..

                      pf.jpg

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 24.11 | Lab VMs 2.8, 24.11

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

                        Mmm, that should have been merged in 3.1.0_0 though.

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