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

    DNS custom blocklist

    Scheduled Pinned Locked Moved pfBlockerNG
    5 Posts 4 Posters 5.0k 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.
    • S
      spoiler
      last edited by

      I'm sure this is already covered, but a search didn't bring a conclusive answer to the most appropriate way to do this.

      I'm using the DNSBL feature, and have a few feeds enabled. But I would like to have a custom blocklist to block some specific domains.

      What's the ideal way to achieve this ? It seems I can either:

      • Add a DNSBL feed for the custom block list, but:
          - Do I need to specify a file in the source section ? If the feed state is OFF, does this disable this feed, or just the 'downloading' of it.
          - Could I just create a blank feed and use the Custom Block List space ?

      • Use the Custom Block List of an existing feed (but it would be nice to keep things separate from an admin point)

      • Use the IPv4 Custom list area of an existing IPv4 list and add the domain there

      What's the recommended way ?

      Thanks.

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

        @spoiler:

        • Add a DNSBL feed for the custom block list, but:
            - Do I need to specify a file in the source section ? If the feed state is OFF, does this disable this feed, or just the 'downloading' of it.

        You have to create the file on your pfsense, then you give the path in the DNSBL feed.

        @spoiler:

        • Could I just create a blank feed and use the Custom Block List space ?

        Yes
        @spoiler:

        • Use the Custom Block List of an existing feed (but it would be nice to keep things separate from an admin point)

        Also
        @spoiler:

        • Use the IPv4 Custom list area of an existing IPv4 list and add the domain there

        IPv4 list will block IPs with FW rules. DNSBL will redirect the DNS request to the VIP and will give you a 1x1Gif instead of the original HTTP URL.

        When you input FQDN in IPv4 it will resolve to IP when the feed is updated. If the DNS record is modified, the new IPs will only be picked when the IPv4 feed is updated.

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

          Thanks for the information. I added a new DNSBL list - no source defined, and the status = OFF.
          Added the target domain to the Custom Block List, did a force update and the domain is blocked :-)

          1 Reply Last reply Reply Quote 0
          • E
            EDinATL
            last edited by

            I had some particularly nasty ads popping up on my android which led me to want to manually block some ad servers via the DNSBL, so I eventually figured out how to do this today and used the method spoiler describes.  I found the process a bit confusing since the 'feeds' section would seem to be for feeds and not necessarily user defined lists.  At first I was manually editing a file in /var/unbound and mimicking the format used in pfb_dnsbl.conf which was cumbersome.  I was glad to find this method but I wish there had been kind of clue as to how to get there.  Thanks spoiler!

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

              @EDinATL:

              I had some particularly nasty ads popping up on my android which led me to want to manually block some ad servers via the DNSBL, so I eventually figured out how to do this today and used the method spoiler describes.  I found the process a bit confusing since the 'feeds' section would seem to be for feeds and not necessarily user defined lists.  At first I was manually editing a file in /var/unbound and mimicking the format used in pfb_dnsbl.conf which was cumbersome.  I was glad to find this method but I wish there had been kind of clue as to how to get there.  Thanks spoiler!

              Its not recommended to edit the /var/unbound/pfb_dnsbl.conf file as that will get overwritten on cron updates…

              The DNSBL Feeds Custom list is the easiest option to manually add Domains... You can also write the Domains to a text file accessible to the pfSense box (Local webserver) or on the pfSense box itself...  See the blue infoblock icons on the DNSBL Feed tab for more details...

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