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.7m 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

      @pfBasic:

      Im not sure what im supposed to be picking up from that? No DNS forwarder? I've never used DNS Forwarder so I really dont know what is implied by that? It also says that you can use the DNS forwarding mode of DNS Resolver, but implies that if I use forwarding mode then i'll use my ISP's DNS, whereas if i leave it in resolver mode i'll use the root DNS (don't know what that is?).

      Im using DNS resolver, not forwarder, and not using forwarding mode, but my queries are still going through my ISP DNS.

      Check the hosts DNS configuration to see what DNS server they use.

      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
      • P
        pfBasic Banned
        last edited by

        All clients will use the pfsense DNS resolver, that you can configure in forwarding mode to use your ISP DNS server, but by default, why not use the pfsense DNS Resolver in Root mode without having to rely on an external DNS server.

        OK, awesome, thank-you. This is what I must be doing wrong. As far as I thought, I am using the DNS resolver (not using forwarded, forwarding mode not turned on, and I've removed all entries in general setup & dhcp for alternative DNS servers).
        But whenever I run dnsleaktest.com, I still get my ISP's DNS server?

        What am I doing wrong? How can I run DNS off of pfsenses internal DNS?

        I didn't even know pfsense did this natively, I thought if I wanted to use an internal DNS server then I had to set up and run the whole thing on a real or virtual machine, which I dont know how to do.

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

          yup pfsense has a DNS Resolver  ;)

          So now you have to check your hosts/device DNS configuration.

          If they get DNS server configuration from a DHCP server, then configure the DHCP server to send pfsense ip.

          @ :

          Leave blank to use the system default DNS servers: this interface's IP if DNS Forwarder or Resolver is enabled, otherwise the servers configured on the System / General Setup page.

          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
          • P
            pfBasic Banned
            last edited by

            awesome, i got it working as its meant to be, thank you for sticking with my ignorant line of questioning!

            One last question, how does the "root server" resolve the DNS lookups? as in what tells my pfsense box the ip address that google.com resolves to?

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

              https://en.wikipedia.org/wiki/Domain_Name_System
              https://en.wikipedia.org/wiki/Root_name_server

              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

                A PR has been merged for pfBlockerNG. v2.1.1_6
                  https://github.com/pfsense/FreeBSD-ports/pull/253

                Fixes:

                • EasyList has recently changed the format of the feed. DNSBL parser has been updated.
                • Fix XMLRPC Sync setting that handles the Sync of the General settings to remote hosts.
                • Fix DNSBL Certificate creation for pfSense 2.4

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

                  @BBcan177:

                  A PR has been merged for pfBlockerNG. v2.1.1_6
                    https://github.com/pfsense/FreeBSD-ports/pull/253

                  Fixes:

                  • EasyList has recently changed the format of the feed. DNSBL parser has been updated.
                  • Fix XMLRPC Sync setting that handles the Sync of the General settings to remote hosts.
                  • Fix DNSBL Certificate creation for pfSense 2.4

                  Hello, thanks for all your work on this. I just wanted to report that I'm seeing the following in system -> pkg manager -> installed, even after reinstalling the package.

                  http://imgur.com/a/I3mep

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

                    @mk6032:

                    I just wanted to report that I'm seeing the following in system -> pkg manager -> installed, even after reinstalling the package.

                    http://imgur.com/a/I3mep

                    Yes. And the point of the report is exactly what?

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

                      @doktornotor:

                      @mk6032:

                      I just wanted to report that I'm seeing the following in system -> pkg manager -> installed, even after reinstalling the package.

                      http://imgur.com/a/I3mep

                      Yes. And the point of the report is exactly what?

                      Please review the linked image. There are two points :

                      1. "Package is configured but not (fully) installed" (even after reinstallation)
                      2. "Newer version available" (without the update option)

                      Regards,
                      Matt

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

                        @mk6032:

                        Please review the linked image. There are two points :

                        1. "Package is configured but not (fully) installed" (even after reinstallation)
                        2. "Newer version available" (without the update option)

                        Regards,
                        Matt

                        That is the Legend for the Package Manager  ::)

                        So now look a the pfBlockerNG line and interpreting the legend the status of the package is "Current"

                        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
                          mk6032
                          last edited by

                          @RonpfS:

                          That is the Legend for the Package Manager  ::)

                          So now look a the pfBlockerNG line and interpreting the legend the status of the package is "Current"

                          Ah, my bad! The lack of a separator there as opposed to the ones above it is a bit confusing ( http://imgur.com/a/lwSFx ).

                          Regards,
                          Matt

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

                            @mk6032:

                            @RonpfS:

                            That is the Legend for the Package Manager  ::)

                            So now look a the pfBlockerNG line and interpreting the legend the status of the package is "Current"

                            Ah, my bad! The lack of a separator there as opposed to the ones above it is a bit confusing ( http://imgur.com/a/lwSFx ).

                            Regards,
                            Matt

                            LOL, ok… https://redmine.pfsense.org/issues/7203

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

                              @doktornotor:

                              LOL, ok… https://redmine.pfsense.org/issues/7203

                              Maybe just add "Legend : "

                              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
                              • D
                                doktornotor Banned
                                last edited by

                                @RonpfS:

                                @doktornotor:

                                LOL, ok… https://redmine.pfsense.org/issues/7203

                                Maybe just add "Legend : "

                                Yeah I tried and that looked even worse than now. Leaving this to someone else.

                                1 Reply Last reply Reply Quote 0
                                • R
                                  Redyr Banned
                                  last edited by

                                  Hello,

                                  Regarding Adaway,

                                  https://adaway.org/hosts.txt

                                  Although the list is downloaded:

                                  [ Adaway ] Downloading update .. 200 OK. completed ..

                                  I got this error:

                                  [ pfB_Adaway Adaway ] List Error ]

                                  Please advise

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

                                    I assume that Adaway is also the name of the Alias?

                                    Do you have anything in the custom list at the bottom of this alias? I think that's the part that's not parsing properly. Anything in a custom list must be formatted properly.

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

                                      @BBcan177:

                                      I assume that Adaway is also the name of the Alias?

                                      Do you have anything in the custom list at the bottom of this alias? I think that's the part that's not parsing properly. Anything in a custom list must be formatted properly.

                                      The name of the alias is Adaway, and I don't have anything in the custom list.

                                      I've changed the name of the alias, and the label like this:

                                      Adaway_list ] Downloading update .. 200 OK. completed ..
                                      [ pfB_Adaway1 Adaway_list ] List Error ]

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

                                        It looks like you added this list to the IPv4 tab when it's a domain based list and should only be used in the DNSBL tab.

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

                                          @BBcan177:

                                          It looks like you added this list to the IPv4 tab when it's a domain based list and should only be used in the DNSBL tab.

                                          I removed it from IPV4, sorry to bother you with this.

                                          Thank you

                                          1 Reply Last reply Reply Quote 0
                                          • Y
                                            yodaphone
                                            last edited by

                                            @BBcan177:

                                            Here are more DNSBL Feeds that can be used in pfBlockerNG.
                                            (Copy and paste URLS as plain text)

                                            1. Create a new alias for these.
                                              These are not necessarily ADvert domains. So I named mine "Malicious"

                                            malc0de
                                            https://malc0de.com/bl/BOOT

                                            I get this error for malc0de. all other lists are fine

                                            [ DNSBL_Malicious - malc0de ] Download FAIL [ 02/21/17 01:21:47 ]
                                              Firewall and/or IDS are not blocking download.

                                            Set up exactly the way you have described.

                                            I'm on 2.3.3 RC

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