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

    Howto block all except certain web site

    Scheduled Pinned Locked Moved Firewalling
    4 Posts 4 Posters 1.3k 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.
    • B
      browndawg74
      last edited by

      I have a computer lab that I want to block all sites except certain site?

      1 Reply Last reply Reply Quote 0
      • K
        kejianshi
        last edited by

        Thats called white listing.

        http://doc.pfsense.org/index.php/SquidGuard_package

        http://skear.hubpages.com/hub/URL-Filtering-How-To-Configure-SquidGuard-in-pfSense

        1 Reply Last reply Reply Quote 0
        • B
          BenKenobe
          last edited by

          Don't know that you necessarily need another app. Why not identify the remote sites IP range and then add a 'block if not' rule to the LAN adapter.

          Identify the range simply by pinging from a command prompt, you can put the result into a who is IP search to get the full range although the single IP returned should be sufficient.

          1 Reply Last reply Reply Quote 0
          • P
            phil.davis
            last edited by

            You can use the URL domain in rules, e.g. www.allowedsite.com
            Then pfSense will find (and recheck every 5 minutes) the corresponding IP address(es) and put them in a table in pf. That way if the site does change its IP address, or have multiple addresses, that will be coped with.

            As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
            If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

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