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

    pfBlockerNG-devel v3.1.0_9 / v3.1.0_15

    Scheduled Pinned Locked Moved pfBlockerNG
    54 Posts 20 Posters 20.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.
    • S
      smolka_J @SteveITS
      last edited by

      @steveits That is understood, that's why I have an alias set for Mirosoft ports for certain specific work apps and xbox live logins as well as a separate alias set for my wifi calling ports, same recommendations existed in pf 21.05 and the firewall rules as well as the IPv4 tab used to compile all of this just fine. These alias' have no http, https, DNS, or ssh ports listed in them and further verified with having WAN de-selected and had this Custom Port option enabled and alias name typed out correctly each time. Appears to me more of a PHP or XML coding issue in 22.7 config versions, and I found came about recently when repos got set to temporarily showing that pfSense 23.01 stable was available but since https://firmware.netgate.com/pkg/ was not updated at the same time to coincide, my repos config became corrupt from it landing both of my boxes in non-fixable certificate errors at boot needing to start from scratch. This is now verified on 2 different devices, one is a NG 5100, and both are freshly setup once again days ago from flash. Obviously having "all" ports open is a common sense no no to any networking hence the entire reason of having a "custom port" option for an alias. The point of this post is these errors are persistent with the correct entries filled and applied. Basically from what you are saying is that "inbound permit both" simply is not an option and therefore would not exist with these "custom options" to configure, but in reality these configuration option realistically are there and there for a reason and used to function for that reason. This exact situation is occurring on one of my boxes that does not even have a "WAN" interface configured to even select, LAN only serving only DNS as a parental locked pi-hole basically, all of which is still working fine. Also noting that each time attempting to edit or create a new IP whitelist, once each of these custom options are specified on Advanced Inbound Firewall Rule Settings and then try to save, once these errors are displayed when the page loads, scrolling back to the custom options the enable tic box does remain ticked but the fields to enter the port alias/IP alias name in becomes emptied and grayed out with the red circle with a line through it as I hover over the entry field until I un-tick the enable option and then re-select it and then the entry field becomes available to enter the alias name into again; I'm leaning toward PHP since no other pfSense configurations or functions seem to be affected, just editing or creating from the gui on the pfblockerng_category_edit.php pageregardless if its IPv4 or IPv6 whitelists

      S 1 Reply Last reply Reply Quote 0
      • S
        SteveITS Galactic Empire @smolka_J
        last edited by

        @smoke_a_j I missed that you set a port alias. Does it work with one port number instead of an alias?

        If it is a bug, then creating the pfB alias and manually creating your own rule ought to work around it.

        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
        Upvote 👍 helpful posts!

        S 1 Reply Last reply Reply Quote 0
        • S
          smolka_J @SteveITS
          last edited by

          @steveits Even just one listed in an alias does the same. pfB alias permit is a working feasible workaround with "permit both" broken, auto rule function is/was nice and safer to configure with those warnings accurately working to make sure the custom fields are in fact filled out but somehow the validation of that fact looks to be clearing the data entered instead of reading it, maybe one letter off in the code like a "W" instead of an "R"

          1 Reply Last reply Reply Quote 0
          • S
            smolka_J
            last edited by smolka_J

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • S
              smolka_J @xpxp2002
              last edited by smolka_J

              @sensei-two
              @xpxp2002
              Something that may help you with the above to make sure everything is hitting the firewalls right:

              593538fc-f7a8-4180-91d0-03583c8d9c54-image.png for NAT port forwards

              and

              77011696-4791-41d3-bf35-9d7176dc51a5-image.png for Outbound NAT

              1 Reply Last reply Reply Quote 0
              • S
                smolka_J
                last edited by

                Found my fix:
                BBcan177BBcan177 MODERATOR 12 days ago
                @bob-dig @cjbujold

                See the patch here and report back pls.

                From the Shell or pfSense GUI > Diagnostics > Command Prompt > Execute Shell Command, run this command to download the patch.

                curl -o /usr/local/www/pfblockerng/pfblockerng_category_edit.php "https://gist.githubusercontent.com/BBcan177/1a33c42d0a61f3ddd9c2f1b1d514ed83/raw"
                "Experience is something you don't get until just after you need it."

                Website: http://pfBlockerNG.com
                Twitter: @BBcan177 #pfBlockerNG
                Reddit: https://www.reddit.com/r/pfBlockerNG/new/

                1 Reply Last reply Reply Quote 0
                • M
                  matthijs
                  last edited by matthijs

                  When enabling IPv6 DNSBL I get the error "There were error(s) loading the rules: no IP address found for <My_IPv6_Prefix>::1017171 - The line in question reads [n]

                  As you can see I run the DNSBL webserver on a non default IP (default IPv4 is 10.10.10.1, and default IPv6 is ::10.10.10.1)

                  So its looking for <My_IPv6_Prefix>::1017171 , but I think this should be <My_IPv6_Prefix>::10.17.17.1 instead

                  I have the floating auto firewall rules and the DNSBL aliases correct.

                  Is this a bug? I am running version 3.1.0_9

                  Kr, Matthijs

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    smolka_J @matthijs
                    last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • S
                      smolka_J
                      last edited by

                      @matthijs I'm on the same version on 22.05. It did seem to update my alias entry as well as my IPv6 on the Firewall->Virtual IPs tab to ::10.17.17.1 when I changed my DNSBL webserver IP to 10.17.17.1 after first disabling pfBlockerNG and saving on the General tab first, adjust webserver IP setting, then re-enable on General tab and then Update tab->Force reload ALL. Any adjustments you make in pfBlocker aside from clicking to whitelist an IP or domain from the alerts tab which can effectively live load on a running config once a minutes or so, it is always best otherwise for all other settings adjustments to #1 disable pfBlocker first, #2 adjust, #3 re-enable, and then #4 force reload. Otherwise, erratic unexpected behavior will be expected, as applies with nearly any firewall/router. ANY one letter and/or number/setting variance applied to any order of rules/IP addresses/domains will shift an entire stack of one group of all of this info one row different than its original placement against the next stack/table of information the other stack is pointing to originally all in alignment now staggered. You may have to disable it, restore pfBlocker default settings to start at a fresh config sheet schematic and make this adjustment before enabling pfBlocker which in turn writes those states table/firewall entries at that point.

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        matthijs @smolka_J
                        last edited by

                        @smoke_a_j

                        Thanks for the information, I will try this and give feedback here if this method will fix the issue

                        👍

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          matthijs @matthijs
                          last edited by

                          @smoke_aJ

                          I did exactly as you descibed but the issue is still there.
                          I also updated to version to 3.1.0_11, but also with this version I got the same problem.

                          I got the weberver interface on a different physical interface then LAN. (I got it on interface DMZ1). Maybe this is the issue. ?

                          "Select the interface which DNSBL Web Server will Listen on.
                          Default: Localhost (ports 80/443) - Selected Interface should be a Local Interface only."

                          BBcan177B 1 Reply Last reply Reply Quote 0
                          • BBcan177B
                            BBcan177 Moderator @matthijs
                            last edited by

                            @matthijs try to use "localhost" as that is the default setting

                            "Experience is something you don't get until just after you need it."

                            Website: http://pfBlockerNG.com
                            Twitter: @BBcan177  #pfBlockerNG
                            Reddit: https://www.reddit.com/r/pfBlockerNG/new/

                            M 1 Reply Last reply Reply Quote 0
                            • M
                              matthijs @BBcan177
                              last edited by matthijs

                              @bbcan177 I will try, but then why is the option to select an interface there? I will test, and report back the result

                              Kr,

                              Matthijs

                              M 1 Reply Last reply Reply Quote 0
                              • M
                                mcury
                                last edited by

                                Upgraded to this version: 3.1.0_11 and everything is working for me, thanks for your hard work BBcan177, awesome tool.

                                dead on arrival, nowhere to be found.

                                1 Reply Last reply Reply Quote 0
                                • M
                                  matthijs @matthijs
                                  last edited by

                                  @BBcan177
                                  @smoke_aJ

                                  I again applied the steps as smoke_aJ suggested after a reboot. I do not see the error message for 45 minutes. It lookes like its solved now. I will keep you informed if the error message is coming back.
                                  Thanks for the help and information

                                  Kr,

                                  Matthijs

                                  M 1 Reply Last reply Reply Quote 0
                                  • M
                                    matthijs @matthijs
                                    last edited by matthijs

                                    Unfortunalty the error came back after a filter reload.

                                    Filter Reload
                                    There were error(s) loading the rules: no IP address found for <IPv6_Prefix>::1017171 - The line in question reads [3781]: @ 2023-01-21 20:30:30

                                    I will try to change the webserver interface to localhost, to be continued...

                                    M 1 Reply Last reply Reply Quote 0
                                    • M
                                      matthijs @matthijs
                                      last edited by matthijs

                                      @BBcan177 , @smoke_aj, Good news, I assigned the DNSBL webserver to localhost instead of the DMZ1 interface. Now everything is working and I am not seeing the error message again. Also after a filter reload the error stays away. So I guess as soon as you chose a physical interface (in my case LAN or DMZ1 or DMZ2) instead of localhost for the webserver, and in my case also a non default port number (8080 8443) and enabling Ipv6 the bug manifests itself. Can you replicate this behaviour ?

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