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

    How to Block computer all websites except for one website..?

    Scheduled Pinned Locked Moved pfSense Packages
    3 Posts 3 Posters 3.5k 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.
    • P
      parengpogi
      last edited by

      Hi i need to know how to block one computer which is connected to my network and i already have installed pfsense with squid package installed on it.
      What i want to do is to block this computer accessing from any website or internet site except for one website only. Please anyone can help me with this concern. Hope somebody could help

      Thanks guys

      1 Reply Last reply Reply Quote 0
      • N
        Nachtfalke
        last edited by

        You could do an nslookup for the one site you want to allow.
        If this sites IP is 60.70.80.90 and the Hosts IP is 192.168.0.100 you could add this rule on your LAN interface:

        Block * 192.168.0.100 * ! 60.70.80.90 * * none

        Block all from Host 192.168.0.100 which ist NOT 60.70.80.90  as destination

        1 Reply Last reply Reply Quote 0
        • Cry HavokC
          Cry Havok
          last edited by

          Take a look at the SquidGuard package, combined with Squid it is almost certainly what you're after.

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