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

    PfBlockerNG v2.0 w/DNSBL

    Scheduled Pinned Locked Moved pfBlockerNG
    1.1k Posts 192 Posters 1.9m 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.
    • BBcan177B
      BBcan177 Moderator
      last edited by

      From your original screenshot: How can you have both src and dst with a 192.168.1.x address range?  Are you double Natting? WAN/LAN should be in separate IP ranges…

      "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
      • R
        robwalker5561
        last edited by

        Shouldn't be anything too complicated going on … at least not by design, I probably misconfigured something:

        192.168.1.6 is a box on the LAN

        192.168.1.1 is the gateway's LAN interface (a /24), its WAN is 192.168.209.14 which is NAT'd because that is all the modem exposes

        The rules configuration is:

        @BBcan177:

        From your original screenshot: How can you have both src and dst with a 192.168.1.x address range?  Are you double Natting? WAN/LAN should be in separate IP ranges…

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

          Is this alert repeating? It says "no match" in the pic… So maybe it was being blocked previously. Clear the Firewall logs, and see if it re-appears...

          "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
          • Y
            yea
            last edited by

            Hi

            Using the latest version of pfsense and pfblockerng, when setting to allow an ipv4 rule, it generates an auto rule. I thought, when using the advanced inbound rules that this would modify the auto rule. Instead, it just appears to ignore these settings and create a default auto open rule for dest/port - though it correctly retains the src. Also, when modifying the auto rule every subsequent modification to the pfblocker rule rewrites and resets the auto rule.

            Is this by design?

            Thanks (fantastic package btw!)

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

              @yea:

              I thought, when using the advanced inbound rules that this would modify the auto rule.

              Is this by design?

              Thanks (fantastic package btw!)

              Thanks!

              See here:
              https://forum.pfsense.org/index.php?topic=102470.msg612027#msg612027

              Change the protocol settings. :)

              "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
              • Y
                yea
                last edited by

                Apologies. I was entering addresses manually, not as the notes said. When using aliases it works perfectly.

                1 Reply Last reply Reply Quote 0
                • R
                  robwalker5561
                  last edited by

                  Interesting … I put things back the way they were (as far as I can tell) and I can't reproduce the problem now ... so all good

                  Thanks for your help!

                  @BBcan177:

                  Is this alert repeating? It says "no match" in the pic… So maybe it was being blocked previously. Clear the Firewall logs, and see if it re-appears...

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

                    I just made acquaintance with a certain Latina, the sister of that other Latina. Might be introducing you to her shortly  8)

                    ( ;D ;D ;D ).

                    BB, could you please look at the attached pic? This doesn't make sense, does it? This is Comodo firewall alerting because Java (used by my media indexing program) wants to go to your 10.10.10.1. Why would it want to do that?

                    We also had the 10.10.10.1 and NTP server, and I think something is weird. DNS Resolver –- EDIT, see second screenshot, wanted to make a pic of DNS resolver and now MRT.exe also wants to do 'stuff' at 10.10.10.1.

                    Something is wrong. Obviously must be something on my side, but what?

                    ( :-* )

                    BB_weird_.jpg
                    BB_weird_.jpg_thumb
                    BB_weird2_.jpg
                    BB_weird2_.jpg_thumb

                    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

                      Btw, BB, prollally this is why suddenly this media manager now is DEAD SLOW, when for the past two years it was BLAZINGLY fast.

                      Can you PLEASE PLEASE PLEASE (please  :P ) suggest a solution and/or workaround? Because now every movie lookup takes 2 minutes, it used to take a second. This is not good for my heart, and you know about my heart  :-*

                      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

                        Hey Mr J… Take it easy with your heart and those Latinas :)

                        I see that you have multiple VLANs. In the DNSBL tab, there is an option to create a Floating Permit rule. Please check that option and select all of the LAN segments (vlans etc) that need to access the DNSBL VIP... I think the reason why your devices might be slow, is that they can't get to the DNSBL VIP address. That is most likely the issue with your time out (Slowness)...

                        For the "Three Amigo" issue... Take a look at the Alerts tab in the "DNSBL" section, and it will list whats being blocked by DNSBL... You can click the Suppression Icon if for any FPs... However, this issue might be related to my first comment...

                        "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
                        • R
                          rattis
                          last edited by

                          Like this plugin, first and only one I'm using so far but I'm having a problem.

                          Some of the feeds block properly, while some do not. At first I thought this was just Easylist, but I just found another.

                          I did flush the dns cache on the windowd box first

                          chrisj@bikatol ~
                          $ ns
                          Default Server:  pfbox.localdomain
                          Address:  192.168.1.254
                          
                          > 188server.com
                          Non-authoritative answer:
                          Server:  pfbox.localdomain
                          Address:  192.168.1.254
                          
                          Name:    188server.com
                          Address:  95.211.219.66
                          
                          > zypenetwork.com
                          Non-authoritative answer:
                          Server:  pfbox.localdomain
                          Address:  192.168.1.254
                          
                          Name:    zypenetwork.com
                          Address:  69.89.31.176
                          
                          > www188.nebraskacb.mcarder.chefpa.mggschmitt.dorystarla.com
                          Server:  pfbox.localdomain
                          Address:  192.168.1.254
                          
                          Name:    www188.nebraskacb.mcarder.chefpa.mggschmitt.dorystarla.com
                          Address:  10.10.10.1
                          

                          From pfbox cli

                          [2.3-RELEASE][admin@pfSense.localdomain]/root: grep 188server.com /var/unbound/pfb_dnsbl.conf
                          local-data: "188server.com 60 IN A 10.10.10.1"
                          
                          grep 188server.com /var/unbound/pfb_dnsbl.conf
                          local-data: "188server.com 60 IN A 10.10.10.1"
                          
                          grep 188server.com /var/db/pfblockerng/dnsblorig/*
                          /var/db/pfblockerng/dnsblorig/EasyListElements.orig:||188server.com^$third-party
                          /var/db/pfblockerng/dnsblorig/EasyListFeeds.orig:||188server.com^$third-party
                          
                          grep 188server.com /var/db/pfblockerng/dnsbl/*
                          /var/db/pfblockerng/dnsbl/EasyListElements.txt:local-data: "188server.com 60 IN A 10.10.10.1"
                          
                          [2.3-RELEASE][admin@pfSense.localdomain]/root: grep zypenetwork.com /var/unbound/pfb_dnsbl.conf
                          local-data: "zypenetwork.com 60 IN A 10.10.10.1"
                          
                          grep zypenetwork.com /var/db/pfblockerng/dnsblorig/*
                          /var/db/pfblockerng/dnsblorig/EasyListElements.orig:||zypenetwork.com^$third-party
                          /var/db/pfblockerng/dnsblorig/EasyListFeeds.orig:||zypenetwork.com^$third-party
                          
                          grep zypenetwork.com /var/db/pfblockerng/dnsbl/*
                          /var/db/pfblockerng/dnsbl/EasyListElements.txt:local-data: "zypenetwork.com 60 IN A 10.10.10.1"
                          
                          [2.3-RELEASE][admin@pfSense.localdomain]/root: grep www188.nebraskacb /var/unbound/pfb_dnsbl.conf
                          local-data: "www188.nebraskacb.mcarder.chefpa.mggschmitt.dorystarla.com 60 IN A 10.10.10.1"
                          
                          grep www188.nebraskacb /var/db/pfblockerng/dnsblorig/*
                          /var/db/pfblockerng/dnsblorig/hpHosts.orig:127.0.0.1    www188.nebraskacb.mcarder.chefpa.mggschmitt.dorystarla.com
                          
                          grep www188.nebraskacb /var/db/pfblockerng/dnsbl/*
                          /var/db/pfblockerng/dnsbl/hpHosts.txt:local-data: "www188.nebraskacb.mcarder.chefpa.mggschmitt.dorystarla.com 60 IN A 10.10.10.1"
                          
                          

                          When I thought it was just EasyList I did a: LIST ACTION disabled -> force update -> LIST ACTION enable. All are showing unbound.

                          Opps: grabed the wrong one above (second Easylist should have been frm my MDS.txt list)

                          Name:    zzz.hudconnecthome.org
                          Address:  95.46.98.60

                          tail -n 1 /var/db/pfblockerng/dnsbl/MDS.txt
                          local-data: "zzz.hudconnecthome.org 60 IN A 10.10.10.1"

                          grep zzz.hudconnecthome.org  /var/db/pfblockerng/dnsblorig/*
                          /var/db/pfblockerng/dnsblorig/MDL.orig:127.0.0.1  zzz.hudconnecthome.org
                          /var/db/pfblockerng/dnsblorig/MDS.orig:zzz.hudconnecthome.org

                          p.s. BBcan177 I was the guy on twitter talking about it on Sunday April 17th

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

                            @rattis:

                            Like this plugin, first and only one I'm using so far but I'm having a problem.

                            Some of the feeds block properly, while some do not. At first I thought this was just Easylist, but I just found another.

                            p.s. BBcan177 I was the guy on twitter talking about it on Sunday April 17th

                            Hey… welcome!

                            If you ping those domains from the pfSense box do they all resolve to the DNSBL VIP address?

                            Either your desktop has other DNS servers defined or the browser is bypassing the DNS server... what browser are you using? Ensure that the desktops only have pfSense set as its DNS Server. Might also need to exit and reopen the browser...

                            Flush the Browser DNS cache, and also flush the OS cache...  Another option might be to create a Reject rule in the LAN interface to block any outgoing port 53 other than from the pfSense Box itself...

                            "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
                            • R
                              rattis
                              last edited by

                              @BBcan177:

                              @rattis:

                              Like this plugin, first and only one I'm using so far but I'm having a problem.

                              Some of the feeds block properly, while some do not. At first I thought this was just Easylist, but I just found another.

                              p.s. BBcan177 I was the guy on twitter talking about it on Sunday April 17th

                              Hey… welcome!

                              If you ping those domains from the pfSense box do they all resolve to the DNSBL VIP address?

                              Either your desktop has other DNS servers defined or the browser is bypassing the DNS server... what browser are you using? Ensure that the desktops only have pfSense set as its DNS Server. Might also need to exit and reopen the browser...

                              Flush the Browser DNS cache, and also flush the OS cache...  Another option might be to create a Reject rule in the LAN interface to block any outgoing port 53 other than from the pfSense Box itself...

                              already have the re-direct rule in place, it's been catching my chromecasts. (learned that by reading this and other threads / reddit, which was an awesome trick to learn btw).

                              Only working DNS server is the pfSense Box (cygwin):

                              chrisj@bikatol ~
                              $ ipconfig /all | grep -i "DNS Servers"
                                 DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                 DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                 DNS Servers . . . . . . . . . . . : 192.168.1.254
                              

                              The 2 ipv6 ones are the equiv of the 169 addresses Microsoft used to use for ipv4. Even when I ran the windows hotfix to disable ipv6, the problem remained.

                              Testing in Cygwin for NSlookup and IE for the sites (because Chrome and Fire Fox have ad blockers already). Also using Chrome on my Android phone.

                              Ping from pfSense gets the 10.10.10.1 addresses like expected. However even after flushing DNS again the clients still go to the actual ip addresses.

                              [2.3-RELEASE][admin@pfSense.localdomain]/root: ping 188server.com
                              PING 188server.com (10.10.10.1): 56 data bytes
                              64 bytes from 10.10.10.1: icmp_seq=0 ttl=64 time=0.169 ms
                              64 bytes from 10.10.10.1: icmp_seq=1 ttl=64 time=0.115 ms
                              64 bytes from 10.10.10.1: icmp_seq=2 ttl=64 time=0.149 ms
                              ^C
                              --- 188server.com ping statistics ---
                              3 packets transmitted, 3 packets received, 0.0% packet loss
                              round-trip min/avg/max/stddev = 0.115/0.144/0.169/0.022 ms
                              [2.3-RELEASE][admin@pfSense.localdomain]/root:
                              
                              

                              Same from windows client with flush:

                              C:\Users\chrisj>ipconfig /flushdns
                              
                              Windows IP Configuration
                              
                              Successfully flushed the DNS Resolver Cache.
                              
                              C:\Users\chrisj>ping 188server.com
                              
                              Pinging 188server.com [69.162.80.55] with 32 bytes of data:
                              Reply from 69.162.80.55: bytes=32 time=47ms TTL=50
                              
                              1 Reply Last reply Reply Quote 0
                              • BBcan177B
                                BBcan177 Moderator
                                last edited by

                                @rattis:

                                Ping from pfSense gets the 10.10.10.1 addresses like expected. However even after flushing DNS again the clients still go to the actual ip addresses.

                                [2.3-RELEASE][admin@pfSense.localdomain]/root: ping 188server[.]com
                                PING 188server[.]com (10.10.10.1): 56 data bytes
                                64 bytes from 10.10.10.1: icmp_seq=0 ttl=64 time=0.169 ms
                                64 bytes from 10.10.10.1: icmp_seq=1 ttl=64 time=0.115 ms
                                64 bytes from 10.10.10.1: icmp_seq=2 ttl=64 time=0.149 ms
                                ^C
                                --- 188server.com ping statistics ---
                                3 packets transmitted, 3 packets received, 0.0% packet loss
                                round-trip min/avg/max/stddev = 0.115/0.144/0.169/0.022 ms
                                [2.3-RELEASE][admin@pfSense.localdomain]/root:
                                
                                

                                Same from windows client with flush:

                                C:\Users\chrisj>ipconfig /flushdns
                                
                                Windows IP Configuration
                                
                                Successfully flushed the DNS Resolver Cache.
                                
                                C:\Users\chrisj>ping 188server[.]com
                                
                                Pinging 188server.com [69.162.80.55] with 32 bytes of data:
                                Reply from 69.162.80.55: bytes=32 time=47ms TTL=50
                                

                                Ya you can see that the pfSense has no issue in resolving that domain to 10.10.10.1

                                What does a tracert 188server[.]com    (kinda dangerous to post those domains as-is  :) )

                                What happens if you clear out those two IPv6 DNS settings?

                                "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
                                • BBcan177B
                                  BBcan177 Moderator
                                  last edited by

                                  The following PR #107 for pfBlockerNG has been merged for pfSense 2.3 only:

                                  pfBlockerNG v2.0.10 - Changelog:

                                  • Cosmetic Improvements to the Widget.

                                  • Add "Gateway Groups" to "Custom Gateway" Advanced In/Outbound Firewall customizations.

                                  • Advanced Outbound Firewall Rule customizations:

                                    • Switched "Custom Port" option from "Source" to "Destination" port.

                                    • Fix issue with "Custom Protocol".

                                  • Added a patch to fix an issue with 4 missing Countries in the MaxMind Database.
                                    MaxMind is aware of the issue. (Countries = Africa - SS, N.America - BQ,CW,SX)

                                  • Other under-the-hood improvements.

                                  (Note - Double check all of your firewall Rules after this update!)

                                  "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
                                  • R
                                    rattis
                                    last edited by

                                    Good news, and I gives me something to look at / test. I just tried ping from my android phone, and did an nslookup on my old netbook.

                                    both are reporting 10.10.10.1 for 188server[.]com.

                                    After more testing on my primary system, trying different browsers (I have 2 versions of Firefox installed, 1 chrome, 1 ie, 1 edge) I got the same result regardless of what was turned on.

                                    Turns out my problem was my AV software. Avast has an option called SecureDNS which prevents dns "hijacking" so the address your going to is really the address Avast has in their DNS Servers. It's done over a tunnel so it was never caught by Wireshark or others.

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

                                      @BBcan177:

                                      Hi robwalker5561,

                                      Run these commands and it will show if there is a loopback address (Won't be the first time that IBlock does this :) ):

                                      grep "127\.0\.0\." /var/db/pfblockerng/deny/*
                                      grep "127\.0\.0\." /var/db/pfblockerng/dnsbl/*
                                      grep "127\.0\.0\." /var/db/aliastables/*
                                      

                                      If it finds a loopback, then enable "Suppression" in the General Tab, and run a "Force Reload" to clear it out…

                                      I am get a loopback address in a list but there is now Suppress option next to the ip address. How do i suppress this rule?

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

                                        It shows "no match" in the list column, so that IP is not currently in any list. Enable "Suppression" in the General Tab, and run a "Force Reload". If it's not repeating then just ignore.

                                        As a note, when you enable Suppression, it will also filter out any RFC1918 and loopback addresses along with the whitelisted IPs in the pfBlockerNGSuppress Alias.

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

                                          BBCAN,

                                          Hey- thanks for all of your hard work with this package!  I'm setting up a 2nd PFsense box for a client and I'm wanting to copy over my 'pfblockerNG' config.  Is there an easy way to do it other than doing it all by hand?

                                          thanks

                                          Jamie

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

                                            Hello , i find issue opening somewebsites , ie when i try to open it takes long time when pfblockerNG is enabled

                                            i uploaded a Picture of tata docomo site , showing slow load time and ping showing some connections are redirected to 10.x.x.x  but its waiting there

                                            when this happens do i need to manually whitelist all those domains

                                            note sure if this crash is related to above error but

                                            
                                            					Crash report begins.  Anonymous machine information:
                                            
                                            amd64
                                            10.3-RELEASE
                                            FreeBSD 10.3-RELEASE #6 05adf0a(RELENG_2_3_0): Mon Apr 11 18:52:07 CDT 2016     root@ce23-amd64-builder:/builder/pfsense-230/tmp/obj/builder/pfsense-230/tmp/FreeBSD-src/sys/pfSense
                                            
                                            Crash report details:
                                            
                                            PHP Errors:
                                            [20-Apr-2016 09:34:31 Asia/Kolkata] PHP Stack trace:
                                            [20-Apr-2016 09:34:31 Asia/Kolkata] PHP   1\. {main}() /usr/local/www/pfblockerng/pfblockerng_update.php:0
                                            [20-Apr-2016 09:34:31 Asia/Kolkata] PHP   2\. pfb_cron_update() /usr/local/www/pfblockerng/pfblockerng_update.php:425
                                            [20-Apr-2016 09:34:31 Asia/Kolkata] PHP   3\. header() /usr/local/www/pfblockerng/pfblockerng_update.php:90
                                            [20-Apr-2016 09:36:02 Asia/Kolkata] PHP Stack trace:
                                            [20-Apr-2016 09:36:02 Asia/Kolkata] PHP   1\. {main}() /usr/local/www/pfblockerng/pfblockerng_update.php:0
                                            [20-Apr-2016 09:36:02 Asia/Kolkata] PHP   2\. pfb_cron_update() /usr/local/www/pfblockerng/pfblockerng_update.php:425
                                            [20-Apr-2016 09:36:02 Asia/Kolkata] PHP   3\. header() /usr/local/www/pfblockerng/pfblockerng_update.php:90
                                            [20-Apr-2016 09:37:35 Asia/Kolkata] PHP Stack trace:
                                            [20-Apr-2016 09:37:35 Asia/Kolkata] PHP   1\. {main}() /usr/local/www/pfblockerng/pfblockerng_update.php:0
                                            [20-Apr-2016 09:37:35 Asia/Kolkata] PHP   2\. pfb_cron_update() /usr/local/www/pfblockerng/pfblockerng_update.php:419
                                            [20-Apr-2016 09:37:35 Asia/Kolkata] PHP   3\. header() /usr/local/www/pfblockerng/pfblockerng_update.php:90
                                            
                                            
                                            
                                            Alias	Count	Packets	Updated	 
                                            pfB_DNSBLIP	37930	0	Apr 20 09:59	  (2)
                                            pfB_PS_v4	944	0	Apr 20 09:50	  (2)
                                            pfB_Top_v4	4524	695	Apr 20 09:50	  (2)
                                            pfB_Top_v6	630	0	Apr 20 09:50	  (2)
                                            pfB_adserverlist	10883	9	Apr 20 09:50	  (2)
                                            DNSBL_PrivacyFraudDNSGroup	95896	0	Apr 20 9:55	
                                            DNSBL_MalwareExploitDNSGroup	178126	0	Apr 20 9:57	
                                            DNSBL_SPAMDNSGroup	6689	0	Apr 20 9:57	
                                            DNSBL_MaliciousDNSGroup	20831	0	Apr 20 9:58	
                                            DNSBL_BambenekConsultingDNSGroup	732404	0	Apr 20 9:59	
                                            DNSBL_EasyList	4837	0	Apr 20 9:59	
                                            DNSBL_DNDBL	83273	0	Apr 20 9:54	
                                            Logging is disabled 
                                            

                                            2.3-RC (amd64)
                                            built on Mon Apr 04 17:09:32 CDT 2016
                                            FreeBSD 10.3-RELEASE
                                            Intel(R) Core(TM)2 Duo CPU E4500 @ 2.20GHz

                                            darkstat 3.1.2_1
                                            Lightsquid 3.0.3_1
                                            mailreport 3.0_1
                                            pfBlockerNG 2.0.9_1  
                                            RRD_Summary 1.3.1_2
                                            snort 3.2.9.1_9  
                                            squid 0.4.16_1  
                                            squidGuard 1.14_1
                                            syslog-ng 1.1.2_2

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