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

    Question about the hosts file

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 2 Posters 1.9k 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.
    • W
      WarDave
      last edited by

      I have put a lot of ad/malware sites in the /etc/hosts file example

      127.0.0.1 foxnews.adsonar.com

      I saved that to the /ect/hosts file and reopened the file and the info is still listed. But I can pull up the site with out any issues. What Im I doing wrong?

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

        I guess the dns forwarder doesn't use the hostsfile but builds it's own cache and forwards requests that don't have a hit in his cache to the upstream dns servers. The next version of pfSense will have a feature to add blocklists as aliases ( http://pfsense.com/~sullrich/pics/SampleAlias.PNG ). This way you can block these items by adding a firewallrule that is using this alias. There is no time for the release of the version that will have this feature yet.

        1 Reply Last reply Reply Quote 0
        • W
          WarDave
          last edited by

          Thanks for the answer and the alternative solution.

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