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

    pfBlockerNG 3.2.0_5 - how to block single or multiple domain without feeds ?

    pfBlockerNG
    3
    5
    615
    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.
    • C
      Cabrinisamuele
      last edited by

      Hello everyone ! I'm trying to use pfblocker ! using the "feeds" everything works fine ! but if I just want to block one or two domains ( for example"lastampa.it or youtube.com") of my choice (without the "feeds") is it possible? ... searching the netgate forum posts doesn't seem simple an option! thank you all

      GertjanG 1 Reply Last reply Reply Quote 0
      • Cool_CoronaC
        Cool_Corona
        last edited by

        Wouldnt it be great if you could use DNS to redirect an entire domain like youtube to pornhub via unbound??

        Or simply block ASN numbers like typing it in and the rest will sort itself out?

        C 1 Reply Last reply Reply Quote 0
        • GertjanG
          Gertjan @Cabrinisamuele
          last edited by

          @Cabrinisamuele said in pfBlockerNG 3.2.0_5 - how to block single or multiple domain without feeds ?:

          (without the "feeds")

          Noop.
          You have to enter DNSBL somewhere.

          The most easy way is : do what pfBlockerNG proposes you to do :

          a0e8afc3-cd06-4734-8473-222946fb5d88-image.png

          Use the console access to create a file named /var/db/pfblockerng/test.list, and enter :

          0.0.0.0 lastampa.it
          0.0.0.0 youtube.com
          

          and then set up this list as shown in the image.
          Why "/var/db/pfblockerng/test.list" ? Read the blue information text.

          When doing a force reload I saw :

          [ LocalListFile ]		 Downloading update [ 06/19/23 08:46:20 ] ..
            Whitelist: youtube.com|
            ----------------------------------------------------------------------
            Orig.    Unique     # Dups     # White    # TOP1M    Final                
            ----------------------------------------------------------------------
            2        2          0          1          0          1                    
            ----------------------------------------------------------------------
          

          which means the file was used - and one entry (youtube) was whitelisted so not used.
          Yes, I've whitelisted youtube.com ... I can't risk of having youtube being blocked, as that would make me sleep in the dog house.

          A small test afterwards :

          C:\Users\Gauche>nslookup lastampa.it
          Serveur :   pfSense.my-network.tld
          Address:  2a01:dead:beef:a6dc::1
          
          Réponse ne faisant pas autorité :
          Nom :    lastampa.it
          Address:  0.0.0.0
          

          So : 👍

          Blocking 'youtube' isn't an easy thing to do. Many have tried, and doing so, learned why and how it all works, to abandon as it is to much ongoing work.

          The sledge hammer solution, blocking by ASN will probably also block google.com, gmail, whatsapp etc.

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          C 1 Reply Last reply Reply Quote 0
          • C
            Cabrinisamuele @Cool_Corona
            last edited by

            @Cool_Corona
            Yes it could be :-)

            1 Reply Last reply Reply Quote 0
            • C
              Cabrinisamuele @Gertjan
              last edited by

              @Gertjan
              Thanks for your help :-)

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