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.
    • RonpfSR
      RonpfS
      last edited by

      Yeah I figured out it would have been better to disable pfBlockerNG before saving the old config.

      No I don't have the DHCP registration ticked nor Static DHCP.

      I am having trouble with the Suppression List.

      Do I need to create a rule with pfBlockerNGSuppress to permit traffic or is this done by pfBlockerNG. If this is the case, I don't see any rules generated that let the traffic pass.

      Adding an IP to the suppression list doesn't seems to let it pass.

      2.4.5-RELEASE-p1 (amd64)
      Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
      Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

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

        @RonpfS:

        Do I need to create a rule with pfBlockerNGSuppress to permit traffic or is this done by pfBlockerNG. If this is the case, I don't see any rules generated that let the traffic pass.

        Adding an IP to the suppression list doesn't seems to let it pass.

        The suppresion alias does not need to be referenced to a rule. Please read the description for "Suppression" in the General tab…

        "Do not use the pfBlockerNGSuppress Alias in a Firewall Rule. This alias is used during the cron download process only."

        There are more details on how to suppress, in the Alerts Tab, when you hover-over the Lists Column.

        "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
        • RonpfSR
          RonpfS
          last edited by

          I read it  ;)

          However the suppression only seems to happen when you do a force reload, not when you click on the suppress icon

          IBlock_Badpeer       47283      47283      195706 
           Suppression IBlock_Ads: 50.31.164.0/24
           Suppression IBlock_Ads: 50.31.164.0/24
           Suppression IBlock_Ads: 50.31.164.0/24
           Suppression IBlock_Ads: 50.31.164.0/24
           Suppression IBlock_Ads: 50.31.164.0/24
          IBlock_Ads           3217       3211       195955   
          

          This take a few minutes to get online suppression results  :-\

          2.4.5-RELEASE-p1 (amd64)
          Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
          Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

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

            @RonpfS:

            However the suppression only seems to happen when you do a force reload, not when you click on the suppress icon

            Check your pfBlockerNGSuppress alias and remove all of the single /32 addresses in 50.31.164.x and just use a single /24

            "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
            • SoloamS
              Soloam
              last edited by

              Hello all, I have my rules now allowing and not blocking, as we should do, I just have one question. Should I add a default reject all to the end of my LAN interfaces? Since I only allow, the traffic that does not match my allow rules will be blocked by default by pfsense, making my browser (for example) wait for a timeout (for example blocked IP's). If I add a reject all to the end of my rules, the request on the browser will be a lot faster, returning a rejected error.

              Thank you all

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

                Thank you so much for the great tools, it works great so far two weeks now no complains.
                i have a request, can we use the DNSBL to block Microsoft Telemtry ?

                1 Reply Last reply Reply Quote 0
                • H
                  Hugovsky
                  last edited by

                  http://someonewhocares.org/hosts/

                  search near the bottom. There might be more lists out there.

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

                    @Jamerson:

                    Thank you so much for the great tools, it works great so far two weeks now no complains.
                    i have a request, can we use the DNSBL to block Microsoft Telemtry ?

                    https://raw.githubusercontent.com/WindowsLies/BlockWindows/master/hostslist
                    Taken from project - https://github.com/WindowsLies/BlockWindows

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

                      @f34rinc:

                      @Jamerson:

                      Thank you so much for the great tools, it works great so far two weeks now no complains.
                      i have a request, can we use the DNSBL to block Microsoft Telemtry ?

                      https://raw.githubusercontent.com/WindowsLies/BlockWindows/master/hostslist
                      Taken from project - https://github.com/WindowsLies/BlockWindows

                      those are domains, I have plenty of them :)
                      can those be blocked using DNSBL ?

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

                        @Jamerson:

                        can those be blocked using DNSBL ?

                        Yes it can

                        1 Reply Last reply Reply Quote 0
                        • RonpfSR
                          RonpfS
                          last edited by

                          Is-it normal that during boot, Resolver start twice?

                          
                          Configuring WAN interface...done.
                          Configuring LAN interface...Starting DNS Resolver...done.
                          Starting DHCPv6 service...done.
                          done.
                          Configuring CARP settings...done.
                          Configuring OpenVPN settings...done.
                          Configuring firewall......done.
                          Starting PFLOG...done.
                          Setting up gateway monitors...done.
                          Synchronizing user settings...done.  
                          Starting webConfigurator...done.
                          Configuring CRON...done
                          Starting DNS resolver...done.
                          Starting NTP time client....done.
                          Starting DCHP service....done.
                          Starting DHCPv6 service...done.
                          Configuring firewall......done.
                          
                          

                          and when I access the Webconfigurator, resolver and ntp are both stopped.

                          I added Unbound under Service Watchdog and unbound start within 5 min of bootup.

                          Strange output from starting pfBlockerNG :

                          
                          Starting package pfBlockerNG...            ?done.
                          
                          

                          2.4.5-RELEASE-p1 (amd64)
                          Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                          Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

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

                            @f34rinc:

                            @Jamerson:

                            can those be blocked using DNSBL ?

                            Yes it can

                            just post them on the block domain DNS feed ?

                            1 Reply Last reply Reply Quote 0
                            • B
                              Bummer
                              last edited by

                              Hey all!

                              This is just what the doctor ordered! Thans BBcan177, great job!

                              I have a dumb question. I was looking over the default settings and had a question about the below. If you're going to protect against spam, wouldn't you select "Inbound" as the default instead of "Outbound"? I want to prevent stuff from coming in to the network. I know I'm missing something here, just don't know what it is.

                              DNSBL IP Firewall Rule Settings:
                              Select Deny outbound or as per your requirements
                              select Enable logging

                              Thanks!

                              1 Reply Last reply Reply Quote 0
                              • H
                                Hugovsky
                                last edited by

                                All connections are initiated from inside to outside direction, so, you should block what starts the connection. Unless you have open ports from the internet to your network.

                                1 Reply Last reply Reply Quote 0
                                • B
                                  Bummer
                                  last edited by

                                  Thanks for the replyl Hugovsky. But I'm still confused.

                                  My mail server is inside my network and is clean. It would seem to me you'd want to block what is coming in from the outside to the ports opened on the mail server, etc.

                                  Sorry, I can be dense at times.

                                  1 Reply Last reply Reply Quote 0
                                  • H
                                    Hugovsky
                                    last edited by

                                    Best way to do that is to make an alias and use it with the nat rule that forwards to your server. Remember: the firewall is already blocking everything you don't allow.

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

                                      @Jamerson:

                                      @f34rinc:

                                      @Jamerson:

                                      can those be blocked using DNSBL ?

                                      Yes it can

                                      just post them on the block domain DNS feed ?

                                      You can add domains to the custom list at the bottom of any Alias, or create a new 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
                                      • BBcan177B
                                        BBcan177 Moderator
                                        last edited by

                                        @RonpfS:

                                        I added Unbound under Service Watchdog and unbound start within 5 min of bootup.

                                        Don't use Service Watchdog with DNSBL as that will interfere with how DNSBL updates.

                                        "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
                                        • RonpfSR
                                          RonpfS
                                          last edited by

                                          I tried to find out why unbound dies silently on bootup

                                          I did a fresh install, disabling all package before saving the config, bring the config back, normal pkg installation went smoothly.

                                          I enabled all packages except pfBlockerNG and DNSBL , rebooted 2-3 times and unbound is present on reboot.

                                          I enabled pfBlockerNG, DNSBL, on first reboot unbound was alive
                                          After 2-3 reboot it kept dying on reboot.
                                          Watching the services status, I could see it running until DNSBL start, then it dies.
                                          I went thru the /var/log files, no error is logged !

                                          Once it is started it keeps running fine.

                                          So I only put unbound in Service Watchdog, not DNSBL, is this ok?
                                          Now unbound restart 1 or 2 minutes after it dies.

                                          2.4.5-RELEASE-p1 (amd64)
                                          Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                                          Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

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

                                            No don't use Service Watchguard for either.

                                            Do you have any of the Unbound DHCP registration checkboxes enabled? If so, disable those.

                                            "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
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.