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

    PfBlockerNG

    Scheduled Pinned Locked Moved pfBlockerNG
    1.2k Posts 211 Posters 2.1m 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.
    • M
      Mr. Jingles
      last edited by

      @cyberbot:

      Thank you for the package much appreciate it .
      after applying the settings on the pfBlockerNG my internet stops working,
      i've followed this video for the setup but after i enable pfBlockerNG the internet stops working

      https://www.youtube.com/watch?v=vgM5JRo575U
      

      I scrolled through that vid but, and sorry to sound like I do ( ;D ) but that is the usual useless non-tuto, of which you can find a zillion; they never even show it works. They'd better of going out walking the dog than wasting their - and all the other populants of this earth - time.

      That aside: do you have any floating rules generated in the firewall? What do your firewall logs show you?

      Your much better of reading this (yes, long, I know  :-[ ) thread, where BB has added tons of information.

      If you don't want to waste so much time reading this thread, remember this: BB wasted his time answering in this thread  ;D

      6 and a half billion people know that they are stupid, agressive, lower life forms.

      1 Reply Last reply Reply Quote 0
      • M
        Mr. Jingles
        last edited by

        **To all, just a kind informational note:

        rumor has it BB is currently quite busy with extremely important stuff, so expect some delays in him answering here.**

        6 and a half billion people know that they are stupid, agressive, lower life forms.

        1 Reply Last reply Reply Quote 0
        • J
          Jamerson
          last edited by

          i am having the same issue can't get the internet working after the pfblockerNG is enabled.
          Firewall rules from the LAN are allowed to everything,
          from the WAN is as usually allowing the OPENVPN.

          1 Reply Last reply Reply Quote 0
          • C
            cyberbot
            last edited by

            @Mr.:

            @cyberbot:

            Thank you for the package much appreciate it .
            after applying the settings on the pfBlockerNG my internet stops working,
            i've followed this video for the setup but after i enable pfBlockerNG the internet stops working

            https://www.youtube.com/watch?v=vgM5JRo575U
            

            I scrolled through that vid but, and sorry to sound like I do ( ;D ) but that is the usual useless non-tuto, of which you can find a zillion; they never even show it works. They'd better of going out walking the dog than wasting their - and all the other populants of this earth - time.

            That aside: do you have any floating rules generated in the firewall? What do your firewall logs show you?

            Your much better of reading this (yes, long, I know  :-[ ) thread, where BB has added tons of information.

            If you don't want to waste so much time reading this thread, remember this: BB wasted his time answering in this thread  ;D
            [/quote]

            thank you for your answer.
            there is no particular firewall rules to block the internet. everything works fine untill the pfblocker is activated and stops things working.

            1 Reply Last reply Reply Quote 0
            • F
              f34rinc
              last edited by

              @shadowset:

              I have a couple questions:

              Can PFBlockerNG work with lists in p2p.gz format? I didn't see it listed in the IPv4/IPv6 tabs.

              Also can PFBlockerNG use snort lists for IP blocking?

              Thanks.

              Can you link me to the .gz list in question?

              Yes pfBlockerNG can use snort's IP lists

              @Jamerson:

              i am having the same issue can't get the internet working after the pfblockerNG is enabled.
              Firewall rules from the LAN are allowed to everything,
              from the WAN is as usually allowing the OPENVPN.

              Do you have OpenVPN Interface selected from the General tab in pfBlockerNG ?

              1 Reply Last reply Reply Quote 0
              • J
                Jamerson
                last edited by

                @f34rinc:

                @shadowset:

                I have a couple questions:

                Can PFBlockerNG work with lists in p2p.gz format? I didn't see it listed in the IPv4/IPv6 tabs.

                Also can PFBlockerNG use snort lists for IP blocking?

                Thanks.

                Can you link me to the .gz list in question?

                Yes pfBlockerNG can use snort's IP lists

                @Jamerson:

                i am having the same issue can't get the internet working after the pfblockerNG is enabled.
                Firewall rules from the LAN are allowed to everything,
                from the WAN is as usually allowing the OPENVPN.

                Do you have OpenVPN Interface selected from the General tab in pfBlockerNG ?

                no i don't have openvpn interface selected
                on the Interface/Rules Configuration
                i have inbound firewall rules and outbound firewall rules.
                inbound = WAN  Action Block
                outbound = LAN Action  Reject

                Thank you

                1 Reply Last reply Reply Quote 0
                • F
                  f34rinc
                  last edited by

                  Did that fix your problem Jamerson?

                  1 Reply Last reply Reply Quote 0
                  • T
                    thehasty
                    last edited by

                    pfBlockerNG  Firewall  1.09
                    2.2.3-RELEASE  (amd64)
                    FreeBSD 10.1-RELEASE-p13

                    Hello,

                    I am using custom inbound IPv4 lists (spamhaus, DShield, etc) set to Deny_Inbound with a custom port alias set up. When I look at the alerts, it shows entries for ports that I do not have specified to block.

                    My alias smtp_ports has the value "25, 465, 587" and I see Alerts like this:
                    Jul 12 05:27:36 WAN pfB_DShield
                    (96) TCP-S Icon Reverse Resolve with DNS  94.102.52.27:49717 my_server_ip_here:902 NL dshield

                    Obviously port 902 is not within my alias parameters, so I am thinking something is wrong here. Either it is truly blocking all ports from the IPs on the lists and ignoring my specified ports, or it is just showing false alerts.

                    Please advise.

                    Thank you!

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

                      @thehasty:

                      I am using custom inbound IPv4 lists (spamhaus, DShield, etc) set to Deny_Inbound with a custom port alias set up. When I look at the alerts, it shows entries for ports that I do not have specified to block.

                      When using "Adv. Inbound Settings", you need to set the "Custom Protocol" setting. If you use "any" it will act on all ports, suggest to use "TCP/UDP" or as required.

                      "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
                      • T
                        thehasty
                        last edited by

                        @BBcan177:

                        When using "Adv. Inbound Settings", you need to set the "Custom Protocol" setting. If you use "any" it will act on all ports, suggest to use "TCP/UDP" or as required.

                        Thank you, I've set custom protocol to tcp/ip for all of my ipv6 lists and top25. Seems odd to me that is a requirement.

                        Thanks again! I will report back if I encounter any other issues.

                        1 Reply Last reply Reply Quote 0
                        • C
                          cyberbot
                          last edited by

                          @f34rinc:

                          Did that fix your problem Jamerson?

                          no still waiting for some answers,
                          whenever i activate the pfBlockerNG the internet stops working.

                          1 Reply Last reply Reply Quote 0
                          • F
                            fragged
                            last edited by

                            @cyberbot:

                            @f34rinc:

                            Did that fix your problem Jamerson?

                            no still waiting for some answers,
                            whenever i activate the pfBlockerNG the internet stops working.

                            We need to see rules.debug or a screenshot of the rules created to give you any information.

                            1 Reply Last reply Reply Quote 0
                            • T
                              taryezveb
                              last edited by

                              Just wanted to add, also having issues with pfBlockerNG, but only after a reboot. Which just noticed, because the UPS needs new batteries. Power here is terrible and has gone out several times. Each time after pfSense reboots can not connect to the internet and sometimes even to pfSense.

                              Guessing this a new issue, since did not notice this before. Either with the recent change to pfSense made with the 2.2.3 update or with the pfBlockerNG 1.09 update. Both happened about the same time. Before those updates everything worked fine, but had not rebooted since the 2.2.2 update. So it is possible that is not the cause.

                              After connecting to pfSense and unchecking the Enable/Disable checkbox[to disable] and then saving; internet comes back up. After that checking the Enable/Disbable checkbox[to enable] and then saving. And forcing an update, cron and reload; pfBlockerNG works fine after that.

                              Note, if it matters: the few times I remembered to ping a site[7) Ping host], did not get any packet loss. Before doing the above. Also the Floating Rules are present before doing the above.

                              Using the defaults for many of the options and just have a few IPV4 lists. Nothing shows in the logs that would be helpful.

                              Thanks

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

                                Hi cyberbot/taryezveb,

                                Are you running a Nano version/Ramdisk or a full installation of pfSense?

                                On reboot is there a delay in the Reboot process? ie - Stuck on "Loading Firewall … " in the pfSense boot console screen?

                                After pfSense Boots, does the widget show entries in the packet column? or is it all blank?

                                When you hover-over the Firewall Rules for pfBNG, does each Firewall rule popup a table showing the IP addresses?

                                Run the following commands when there are issues, and report back with the output.

                                /sbin/pfctl -vvsTables | grep -A4 'pfB_'
                                    ls -lah /var/db/aliastables/*

                                "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
                                • D
                                  dzeanah
                                  last edited by

                                  Is it appropriate to offer a bounty here?

                                  I'd like to pledge $100 to add the following feature: block TOR exit nodes.  I personally like TOR, but my forum is getting attacks  from the TOR network that average more than one every eight seconds.  Right now I'm going to the following URL and manually updating the list of nodes that can access my site as a custom list:

                                  https://check.torproject.org/cgi-bin/TorBulkExitList.py?ip=[my server's IP address]&port=

                                  I'd love to be able to simply check TOR the way I can flag a country within pfBlockerNG to deal with the problem instead.

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    Mr. Jingles
                                    last edited by

                                    @Derek:

                                    Is it appropriate to offer a bounty here?

                                    I'd like to pledge $100 to add the following feature: block TOR exit nodes.  I personally like TOR, but my forum is getting attacks  from the TOR network that average more than one every eight seconds.  Right now I'm going to the following URL and manually updating the list of nodes that can access my site as a custom list:

                                    https://check.torproject.org/cgi-bin/TorBulkExitList.py?ip=[my server's IP address]&port=

                                    I'd love to be able to simply check TOR the way I can flag a country within pfBlockerNG to deal with the problem instead.

                                    It's always appropriate to throw beer or coffee to BB  ;D

                                    If you are in a hurry, I noticed, for me Snort/Suricata are also blocking TOR nodes. So you could perhaps use that until (and if) BB finds time to fulfill your request.

                                    6 and a half billion people know that they are stupid, agressive, lower life forms.

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

                                      There are three IP lists that contain 'Tor Exit Nodes' that can be used in pfBNG without any code changes :

                                      (gz)    http://list.iblocklist.com/?list=togdoptykrlolpddwbvz&fileformat=p2p&archiveformat=gz
                                      (txt)    https://torstatus.blutmagie.de/ip_list_exit.php/Tor_ip_list_EXIT.csv
                                      (html)  https://rules.emergingthreats.net/open/suricata/rules/tor.rules

                                      "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
                                      • D
                                        dzeanah
                                        last edited by

                                        Thanks for that BB.  I'd been trying https://www.dan.me.uk/torlist/ and was seeing Download FAIL messages.  I'll tinker a bit more.

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          taryezveb
                                          last edited by

                                          @BBcan177:

                                          Hi cyberbot/taryezveb,

                                          Are you running a Nano version/Ramdisk or a full installation of pfSense?

                                          Full install here.

                                          @BBcan177:

                                          On reboot is there a delay in the Reboot process? ie - Stuck on "Loading Firewall … " in the pfSense boot console screen?

                                          None that can recall. pfSense boots normally, will verify again tho. Once the new monitor arrives, since the previous one failed and do not have any at the moment. Not much luck with hardware lately :)

                                          @BBcan177:

                                          After pfSense Boots, does the widget show entries in the packet column? or is it all blank?

                                          It is all blank, will verify again tho.

                                          @BBcan177:

                                          When you hover-over the Firewall Rules for pfBNG, does each Firewall rule popup a table showing the IP addresses?

                                          Will report back on this, did not think to try that.

                                          @BBcan177:

                                          Run the following commands when there are issues, and report back with the output.

                                          /sbin/pfctl -vvsTables | grep -A4 'pfB_'
                                              ls -lah /var/db/aliastables/*

                                          Will do. Not sure when I can report back, whether forced by power outage or just by rebooting. Need to find the right time to do this, if not forced too. Some people here complain when they can not connect to the internet; I'd rather avoid that if possible ;)

                                          Also having another issue with an alias, that fails to load. Do not think this is the cause of or related to the reboot issue. Since pfBlockerNG keeps on working regardless after it is restarted as explained before. Can supply some details of that now or would it be better to deal with one issue at a time?

                                          Thank You

                                          1 Reply Last reply Reply Quote 0
                                          • F
                                            fragged
                                            last edited by

                                            @Derek:

                                            Thanks for that BB.  I'd been trying https://www.dan.me.uk/torlist/ and was seeing Download FAIL messages.  I'll tinker a bit more.

                                            For this particular list I ended up setting a cron job on one of my RaspberryPi's to fetch the list on schedule and then fetch it from the Pi to pfBlockerNG.

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