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

    PfBlockerNG

    Scheduled Pinned Locked Moved pfBlockerNG
    1.2k Posts 210 Posters 1.8m 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.
    • W
      waht
      last edited by

      I am having issues with squid + pfBlockerNG

      I have squid + squidguard running with shalalist as a black list

      I added an IP for a website that I use to a custom pfBlockerNG alias.

      Put that alias in the floating rules, blocking to and from the IP's.

      The single IP I can still get to when put into my web browser….....however, if I open a command prompt and try to ping it, it is blocked.

      How can I get squid to play nice with my block list?

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        Dude. Squid issues do not go on this thread.

        1 Reply Last reply Reply Quote 0
        • W
          waht
          last edited by

          Right…..so are you saying my squid is misconfigured?

          Cause I was under the impression I did not set my firewall rules correctly if there was no blocking going on......

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

            @cjbujold:

            The issue seems to be with IP6 the IP4 are working properly but when I create an IPv6 table the first one gets created but the second or third list does not.  The folder use is /var/db/aliastables

            Thnaks

            Hi cjbujold,  I have tested adding multiple IPv6 lists to a single alias, and also tested adding multiple IPv6 Aliases and can't reproduce your issue.

            Can you post a screenshot of the issue? Your localfile shouldn't be saved to /var/db/aliastables, that is the final folder location that pfSense uses to load the tables. You should save your localfile in  ie: /var/db/pfblockerng for example.

            Thanks!

            "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
            • J
              Jamerson
              last edited by

              sorry if this questions has been asked before cant seem to find it in this thread.
              can I block adult websites with the pfBlockerNG ? because the proxy servers / filter doesn't seems to works since 2.2

              thank you

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

                Has anyone else looked at Critical Shiack's Free Threat Intel Marketplace and thought how it could be used in pfsense??  They already have 104 feeds, and doing normalization on them.  The dash board allows you to create collections from the differnet feeds which could in theroy be used with pfBlockerNG, seems like a good match.

                https://intel.criticalstack.com/

                Edit:  Just set this up on a test system and used the command line client to export the final file which combined sources from 10 different lists, example of the output.

                
                #fields	indicator	indicator_type	meta.source	meta.do_notice
                62.210.72.158	Intel::ADDR	from http://rules.emergingthreats.net/blockrules/emerging-botcc.rules via intel.criticalstack.com	F
                62.245.45.132	Intel::ADDR	from http://rules.emergingthreats.net/open/suricata/rules/compromised.rules via intel.criticalstack.com	F
                
                

                Next step of getting it into a format pfBlockerNG can import is simple, so we can make this work. But a plugin that hooks directly into criticalstack.com via an API would be a powerful tool, could then be uses in any package via aliases.

                Thoughts?
                Tony

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

                  I've looked at C.S. before, but I don't really see any current benefit to integrate it into pfBNG.

                  All of the feeds are free and can be used directly in pfBNG 'as is'. This allows greater control over the feeds and on the frequency of the updates to the Source Feeds. The de-duplication (normalization) in CS is done on a "Class" basis, versus as a whole with pfBNG. Not to mention that pfBNG can take into consideration Country/Continent blocking and further de-duplicate redundant IPs that are already being blocking by a Country/Continent blocklist. I also assume that de-duplication in CS is not done on a CIDR basis as in pfBNG and instead is de-duplicated on a 1:1 basis.

                  It should also be noted that CS formats the Feeds to be used primarily with BRO. There are also limitations/efficiency issues with large lists as is noted on the CS site. Also having CS process these free Feeds, add extra text per line, and then have pfBNG strip away the extra text to get the IP/Domain is a bit redundant when the Free Feed can be downloaded directly with pfBNG. Some of the Domain based Feeds also mix some IPs which pfBNG can process into an IP Blocklist automatically.

                  pfBNG can also make use of "Reputation" to further analyse the maliciousness of an IP range.

                  pfBNG v2.0 (expected to post a Pull Request in the next few weeks), will have DNSBL Domain name blocking via Unbound DNS.

                  Of the 104 Lists currently available in CS, most of those are listed in the Script that I have provided in this Thread previously. Some of the Sources (BBC, hpHosts for example) have listed all of their feeds individually (some Feeds provide a combined Feed URL) which exaggerates the number of Feeds available. Most of the Domain based Feeds provided in CS are also being beta tested in the DEV version of pfBNG by several beta testers. I have written a Domain parser for the 'Original' Source Feeds and to use the CS Domain based feeds, I would have to re-write the code to allow for the change in format.

                  I also prefer to deal with the 'Original' provider of Feeds instead of using a 'middleman' approach. If anything, CS can be used as a listing of Feeds that are freely available, and these can be used directly in pfBNG without the need to have the Feeds processed by CS.

                  Next steps for pfBNG will be to implement an improved method to add Source Feed URLs, instead of manually adding these one by one. I am considering some scenarios for upcoming releases.

                  "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
                  • TMilandT
                    TMiland
                    last edited by

                    @BBcan177:

                    @marcus556:

                    Yes, I've got it all worked out now very good work sir on this package.

                    As far as the AdBlock on iblock, you are right it isn't the greatest.  I have a question since your doing most of the design it seems, when 2.0 expected for one and two are the list going to be limited to only IP lists or could we say use the AdBlock plus list aka easylist?

                    Yes I am the Developer of the package .. I haven't put much development into it for the past couple weeks, since v1.0 was released.. Maybe another month or so… I want to make sure that its stable and all the tires kicked every which way by the beta testers that helped me with v1.0  :)

                    You can see some more Features in this link:
                    https://forum.pfsense.org/index.php?topic=78356.msg477682#msg477682

                    I have all of the features in the link working and will be working on Easylist next...

                    Hi, are there any progress with the easylist integration? :)

                    Regards.

                    1 Reply Last reply Reply Quote 0
                    • A
                      abujammy
                      last edited by

                      I just had a huuuuuge issue with pfBlocker and I think I'm missing a few things and I was hoping someone could help me out.

                      Firstly, how do you completely wipe out all cached lists and force pfBlocker to redownload everything?  I was getting a super weird error in the update logs about not being able to match a cidr, then it wouldn't update, then the dashboard widget showed "pf Error" where it usually shows how many firewall rules are attached to an alias list.

                      I didn't do anything weird.  All I did was update some lists.  Then all hell broke loose.  It was even reverting my firewall configuration to a previous state.  It was a complete clusterfuck and I've been trying to fix it for the last 3 hours.

                      Any help would be appreciated.  Thanks!

                      1 Reply Last reply Reply Quote 0
                      • A
                        abujammy
                        last edited by

                        Oh yeah, and where does pfBlocker keep the cached versions of the lists on disk?  I was looking for them in hopes that I could delete them and have it redownload all of them.

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

                          @abujammy:

                          Oh yeah, and where does pfBlocker keep the cached versions of the lists on disk?  I was looking for them in hopes that I could delete them and have it redownload all of them.

                          Goto the "General tab", unclick "keep settings", then unclick "Enable"… Click "Save"... all previous files are wiped. Reverse the above to re-enable...

                          "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
                            tonymorella
                            last edited by

                            @BBcan177:

                            I've looked at C.S. before, but I don't really see any current benefit to integrate it into pfBNG.

                            All of the feeds are free and can be used directly in pfBNG 'as is'. This allows greater control over the feeds and on the frequency of the updates to the Source Feeds. The de-duplication (normalization) in CS is done on a "Class" basis, versus as a whole with pfBNG. Not to mention that pfBNG can take into consideration Country/Continent blocking and further de-duplicate redundant IPs that are already being blocking by a Country/Continent blocklist. I also assume that de-duplication in CS is not done on a CIDR basis as in pfBNG and instead is de-duplicated on a 1:1 basis.

                            It should also be noted that CS formats the Feeds to be used primarily with BRO. There are also limitations/efficiency issues with large lists as is noted on the CS site. Also having CS process these free Feeds, add extra text per line, and then have pfBNG strip away the extra text to get the IP/Domain is a bit redundant when the Free Feed can be downloaded directly with pfBNG. Some of the Domain based Feeds also mix some IPs which pfBNG can process into an IP Blocklist automatically.

                            pfBNG can also make use of "Reputation" to further analyse the maliciousness of an IP range.

                            pfBNG v2.0 (expected to post a Pull Request in the next few weeks), will have DNSBL Domain name blocking via Unbound DNS.

                            Of the 104 Lists currently available in CS, most of those are listed in the Script that I have provided in this Thread previously. Some of the Sources (BBC, hpHosts for example) have listed all of their feeds individually (some Feeds provide a combined Feed URL) which exaggerates the number of Feeds available. Most of the Domain based Feeds provided in CS are also being beta tested in the DEV version of pfBNG by several beta testers. I have written a Domain parser for the 'Original' Source Feeds and to use the CS Domain based feeds, I would have to re-write the code to allow for the change in format.

                            I also prefer to deal with the 'Original' provider of Feeds instead of using a 'middleman' approach. If anything, CS can be used as a listing of Feeds that are freely available, and these can be used directly in pfBNG without the need to have the Feeds processed by CS.

                            Next steps for pfBNG will be to implement an improved method to add Source Feed URLs, instead of manually adding these one by one. I am considering some scenarios for upcoming releases.

                            Thanks for the great feedback! Missed the script post, maybe put that on the first post??

                            Tony

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

                              I am using pfblockerng and blocking all country which I don't do business with .
                              Europe is not blocked . This weekend I am away to Germany " which is not blocked "
                              Right now I am on the hotel but the connection to the server behind pfsense is blocked .
                              Why it's blocking Germany IP even i don't block Germany country on pfblockerng?
                              IP where I am connecting from is
                              62.143.80.249

                              Is this ip on a different categories ?

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

                                i also had something strange.

                                i don't have country blocking enabled at all. But PFsense did block the forums.pfsense IP. which is on the United States list from i-blocklist

                                United States:208.123.64.0-208.123.95.255

                                but i don't use that list nor do i use country block.

                                When i disabled the floating rules in pfblocker settings site worked again. when i put it on floating again it still works the site. maybe after a while it starts blocking again.

                                Edit:
                                i used a list before that had a few sites on it that i use a lot. ( probably false positive )  so i removed that list from pfblockerng. i also already cleared the files manually and disabled pfblockerng and re-enabled it but it keeps blocking sites. Like www.nvidia.com etc. But once i disabled the floating rules it works again

                                edit2:
                                i did disabled pfblockerng totally. removed all files  manually so it has to re-download all files when enabled again. restarted the system. enabled it again  ( with floating rules also enabled). so it downloaded all rules again that i have. i checked www.pfsense.org and it didnt work same for nvidia.com. When i disabled floating rules it instantly worked.

                                i have reputation also enabled. But i haven't checked any of the countries on that page and left the standard settings.

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

                                  @cyberbot:

                                  IP where I am connecting from is
                                  62.143.80.249

                                  Is this ip on a different categories ?

                                  Edit - Different version ignore previous post

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

                                    unfortunately have to disable the package
                                    its not working fine in my case,
                                    its blocking all Europe countries every its enabled to block those countries .

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      doktornotor Banned
                                      last edited by

                                      @cyberbot:

                                      its blocking all Europe countries every its enabled to block those countries .

                                      That's extremely surprising that it's doing what you told it to do…  ::) ;D If you don't want to block those, then don't block those. (Not to mention the endless explanations on this thread about defaulty deny and how NOT to (ab)use the country lists.)

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

                                        @Music:

                                        i also had something strange.

                                        i don't have country blocking enabled at all. But PFsense did block the forums.pfsense IP. which is on the United States list from i-blocklist

                                        United States:208.123.64.0-208.123.95.255

                                        but i don't use that list nor do i use country block.

                                        When i disabled the floating rules in pfblocker settings site worked again. when i put it on floating again it still works the site. maybe after a while it starts blocking again.

                                        Edit:
                                        i used a list before that had a few sites on it that i use a lot. ( probably false positive )  so i removed that list from pfblockerng. i also already cleared the files manually and disabled pfblockerng and re-enabled it but it keeps blocking sites. Like www.nvidia.com etc. But once i disabled the floating rules it works again

                                        edit2:
                                        i did disabled pfblockerng totally. removed all files  manually so it has to re-download all files when enabled again. restarted the system. enabled it again  ( with floating rules also enabled). so it downloaded all rules again that i have. i checked www.pfsense.org and it didnt work same for nvidia.com. When i disabled floating rules it instantly worked.

                                        i have reputation also enabled. But i haven't checked any of the countries on that page and left the standard settings.

                                        What i trying to do what to see if i can get the pfblocker working over VPN. if i connect to the vpn on my phone it also uses the blocklists
                                        i have enabled route all traffic over vpn.

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

                                          @doktornotor:

                                          @cyberbot:

                                          its blocking all Europe countries every its enabled to block those countries .

                                          That's extremely surprising that it's doing what you told it to do…  ::) ;D If you don't want to block those, then don't block those. (Not to mention the endless explanations on this thread about defaulty deny and how NOT to (ab)use the country lists.)

                                          i've configured it to not block europe at all !
                                          but it still blocking countries in europe
                                          Germany, Spain, UK,…... Europe filter is not selected and not enabled.

                                          1 Reply Last reply Reply Quote 0
                                          • D
                                            doktornotor Banned
                                            last edited by

                                            @cyberbot:

                                            i've configured it to not block europe at all !

                                            You told us the exact opposite earlier. Perhaps, post in some of internation forums in your native language.

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