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

      Well things change over time. IP changes so we need to keep updating, MaxMind changed the format, then pfBlockerNG had to adapt.
      At the same time pfsense changes. So things can break from time to time.

      Keep in mind that Open Source projects like pfsense are developed by people on their free time. So time and resources are limited.

      In the case of pfBlockerNG 2.1, there was a dozen users without issue till this month's MaxMind update. Users ranged from 1gb to 16gb (32-64bit) boxes.

      Even then, in a few hours, BBcan177 (traveling) was finding solutions while busting his data plan :o.

      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
      • QinnQ
        Qinn
        last edited by

        @haleakalas good that you solved it. On the part of the "leave this system alone" part I cannot agree, security requires maintenance. That's why I prefer open source software, because:

        1. It's open.
        2. It's maintained (thumbs up to everyone here!!!)

        The problem IMHO with (commercial) software development is that you never get the chance to do it right, things like cleaning up code, education etc. cost money and thus are not allowed or have a limited lifespan, which invokes insecure systems. That's why I never ever used an router/WiFi provided by the ISP, but millions do and I think that they contribute highly to the Internets instability, but that's just my two cents  ;)

        Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
        Firmware: Latest-stable-pfSense CE (amd64)
        Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

        1 Reply Last reply Reply Quote 0
        • P
          PF64
          last edited by

          @f34rinc:

          @PF64:

          I have a huge issue with the last update as well. It eats memory like a banshee in a matter of minutes!

          Are you using the new DNSBL TLD feature?

          I believe I had that turned on, I can't check now because after trying to re-install the package it doesn't show on the menu anymore even though it installs successfully. Apparently there is bad code in this update since it went from working fine to a lot of issues. I'd think 16Gb of RAM is more than enough.

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

            The is an issue with MaxMind GeoIP mostly on i386 https://forum.pfsense.org/index.php?topic=116307

            There is also an issue with the pkg manager.

            What do you see in pfblockerng.log system.log, what does the installation log looks like ?

            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
            • QinnQ
              Qinn
              last edited by

              Hi there I could use some help on the following settings:

              Looking at the setup here => https://forum.pfsense.org/index.php?topic=102470.15 I still don't grasp what I should select at "DNSBL Firewall Rule" I have  2 NIC's; WAN and LAN with 2 VLAN's should I select te VLAN's also now only LAN is selected here and what about loopback and what will it bring?

              Second is there any use when using DNSBL to ad list on the IP4 tab?

              and thirdly with the "DNSBL IP Firewall Rule Settings:"setting here select outbound is suggested as default it's disabled, why?

              Thanks for any explanation and your time!

              Cheers Qinn

              Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
              Firmware: Latest-stable-pfSense CE (amd64)
              Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

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

                Add me to the list of users with new problems using pfBlockerNG. They also appeared after the pfSense update to the newest version and involve the same memory errors. I increased the number of table entries allowed by a factor of 2. It worked for a while, then the problem reappeared. I'm usjng a J1900 based supermicro motherboard with 8GB ram. I've been using pfSense about 1.5 years. Errorlogs were forwarded to pfsense.

                I also suspect it has to do with geoblocking. I have now disabled all country blocking and use only a few malware lists.  I like pfBlockerNG for the outbound protection.


                Edit: this may be helpful: CPU usage was much higher with country blocking on the updated version with geoblocking. With geoblocking removed, cpu usage is very low again.


                For my education, I would appreciate it if someone could offer answers to a few questions below.

                1. I use OpenVPN and have a couple of servers available. One is bridged so I can access my home network from out of the house and feel secure. I also use remote desktop through it. It is safer than remote TeamViewer (using their servers) this way. The other is routed for simple pass through over public wifi.

                Question: Does OpenVPN protect the ports well enough? I use certificates, multiple passwords, and each device uses it's own certificate, and the name on the certificate match match the userid. the config file names have been changed to hide the device name. I assume this is about as safe as you can get. Is pfBlockerNG country blocking overkill in this instance?

                1. Regarding SPI, assuming someone tries to hack my ip 123.44.55.12:4321 which happens to be open because a browser just sent out a request on port 4321. Am I at risk and in need on country blocking, or will SPI protect that port because it is not a specific response to the browser request? I see hundreds of attempted hacks daily using pfBlockerng geoblocking.

                I also use Snort and have managed to get all the false positives out of the way. It seems to catch a lot. I have no idea if it is serious stuff it stops or just noise. I purchased a one year oinkcode.

                If the answer to both indicate  safety, then all I need concern myself with is malware site list blocking. I can only assume country blocking uses a tremendous amount of resources

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

                  @Qinn:

                  Hi there I could use some help on the following settings:

                  Looking at the setup here => https://forum.pfsense.org/index.php?topic=102470.15 I still don't grasp what I should select at "DNSBL Firewall Rule" I have  2 NIC's; WAN and LAN with 2 VLAN's should I select te VLAN's also now only LAN is selected here and what about loopback and what will it bring?

                  I don't have VLAN, but 2 LANs, I selected both and loopback.

                  @Qinn:

                  Second is there any use when using DNSBL to ad list on the IP4 tab?

                  and thirdly with the "DNSBL IP Firewall Rule Settings:"setting here select outbound is suggested as default it's disabled, why?

                  Thanks for any explanation and your time!

                  Cheers Qinn

                  The DNSBL feeds contain IPs, so it put those in an Alias. If you don't want to block IP, you can keep the Firewall Rule "disabled" and no rules will be created.

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

                    PFBlockerNG 2.1.1_2 Memory Errors

                    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
                    • M
                      Mithrondil
                      last edited by

                      Is there a patch comming anytime soon to fix this?

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

                        Hi Everyone,

                        I just wanted to share another source of feeds that you can pull in. Register for free at https://otx.alienvault.com. Once you get logged in start searching the pulses for ipv4 or domain etc to pull the lists you want. When you hit the download page click download, right click CSV; this is the feed you want to load into your DNSBL.

                        Also note that IOCs can contain file hashes and other types of data not useful to pfblockerng. In that case you can click "create pulse", copy the CSV feed you want to include, and follow the wizard through to remove any of the IOCs that cant be read by pfblockerng.

                        Edit: Ah nevermind, these don't parse clean

                        local-data: "'domain','akamaitechnologysupport.com','' 60 IN A 10.10.10.1"
                        
                        1 Reply Last reply Reply Quote 0
                        • RonpfSR
                          RonpfS
                          last edited by

                          @Mithrondil:

                          Is there a patch comming anytime soon to fix this?

                          In a week or two.

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

                            @JscoLP:

                            Hi Everyone,

                            I just wanted to share another source of feeds that you can pull in. Register for free at https://otx.alienvault.com. Once you get logged in start searching the pulses for ipv4 or domain etc to pull the lists you want. When you hit the download page click download, right click CSV; this is the feed you want to load into your DNSBL.

                            Also note that IOCs can contain file hashes and other types of data not useful to pfblockerng. In that case you can click "create pulse", copy the CSV feed you want to include, and follow the wizard through to remove any of the IOCs that cant be read by pfblockerng.

                            Edit: Ah nevermind, these don't parse clean

                            local-data: "'domain','akamaitechnologysupport.com','' 60 IN A 10.10.10.1"
                            

                            When BBcan177 return from vacation, he will look at this.

                            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
                            • S
                              senser
                              last edited by

                              Is it possible to use DNSBL on a transparent firewall (none of the NIC's has an IP except for the Bridge itself (10.1.0.10))? I am asking because I tried and I can't seem to access the VIP at 172.16.15.14. I guess NAT does not work with bridges.. hmm, any help appreciated. I'd really like to use DNSBL! Thanks!

                              We use the mighty pf, we cannot be fooled.

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

                                @senser:

                                Is it possible to use DNSBL on a transparent firewall (none of the NIC's has an IP except for the Bridge itself (10.1.0.10))? I am asking because I tried and I can't seem to access the VIP at 172.16.15.14. I guess NAT does not work with bridges.. hmm, any help appreciated. I'd really like to use DNSBL! Thanks!

                                What are the choice available DNSBL Listening Interface ?
                                Did you look at the    Firewall / NAT / Port Forward tab?

                                Nat.JPG
                                Nat.JPG_thumb

                                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
                                • S
                                  senser
                                  last edited by

                                  @RonpfS:

                                  What are the choice available DNSBL Listening Interface ?
                                  Did you look at the    Firewall / NAT / Port Forward tab?

                                  My choice for the listening interface is LAN and BRIDGE. Tried both but no dice. The Port Forward tab lookes similar to yours (technically the same) when I enable DNSBL.

                                  We use the mighty pf, we cannot be fooled.

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

                                    No clue, no bridge here.
                                    Did you look at all posts in this thread and the pfBlockerNG thread to see if people had the same issues?

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

                                      Can you ping the VIP ?
                                      Can you access http://172.16.15.14
                                      Are all clients DNS using pfsense with DNSBL ?
                                      Anything in the Systems Log or Firewall Logs, pfblockerNG log files ?

                                      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
                                      • S
                                        senser
                                        last edited by

                                        @RonpfS:

                                        No clue, no bridge here.
                                        Did you look at all posts in this thread and the pfBlockerNG thread to see if people had the same issues?

                                        No, not yet.

                                        @RonpfS:

                                        Can you ping the VIP ?
                                        Can you access http://172.16.15.14
                                        Are all clients DNS using pfsense with DNSBL ?
                                        Anything in the Systems Log or Firewall Logs, pfblockerNG log files ?

                                        Can't ping or access it. I think it's because bridges usually don't do NAT and I don't think that there is a way to create the functionality DNSBL needs (services on port 80/443). but without using NAT. Please tell me I am wrong. :)

                                        We use the mighty pf, we cannot be fooled.

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

                                          I found a way to use DNSBL on my transparent bridge! :D
                                          I configure DNSBL to listen on LAN at 10.10.10.1 as usual. But then (because I never get a reply from 10.10.10.1) I just reject all connections to "This Firewall" on ports 8081 and 8443.
                                          I won't get any stats or 1x1 gifs but web sites load fast and without ads. :)

                                          We use the mighty pf, we cannot be fooled.

                                          1 Reply Last reply Reply Quote 0
                                          • P
                                            ProxyMoron
                                            last edited by

                                            Hey all,
                                            I'm trying to set up PFBlockerNG with GeoIP to block everything apart from my country by only PERMITTING my country, rather than selecting everything apart from my country and blocking inbound.

                                            So under GeoIP i have selected <mycountry>under Top 20 and then Permit Inbound

                                            This creates a permit rule under floating rules but i think im confusing myself as to what is happening here.

                                            I have a web server running on the WAN, for which i have a WAN rule that permits any source to port 80 and 443.  If there is a floating rule that allows UK IP's is that not allowing all UK IP's / Ports into my network? At what point does the float rule come into it?

                                            What i want is for the firewall to check if the source is from the UK, if not block, then if its destined for port 80 or 443, if not block.

                                            So under General - Rule Order should i select:-

                                            pfB_Pass/Match | pfSense Pass/Match | pfB_Block/Reject | pfSense Block/Reject

                                            or (leaning to this one)

                                            pfSense Pass/Match | pfB_Pass/Match | pfB_Block/Reject | pfSense Block/Reject

                                            Thinking it will match on 80 or 443 then match on UK.

                                            Or something else, am i going about this the correct way? I kind of expected a blocking rule somewhere for ! <mycountry>Sorry - getting my head in a right pickle here.  ;D</mycountry></mycountry>

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