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

    Best Way How To: Block Lan machine from accessing internet?

    Scheduled Pinned Locked Moved Firewalling
    8 Posts 6 Posters 13.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.
    • S Offline
      sierradump
      last edited by

      I have a machine on my LAN that should NEVER be allowed to access the internet.ย  What is the best way to accomplish this?

      The machine should NEVER be allowed to send any traffic out the WAN, and NEVER be allowed to receive traffic from the WAN.

      Would appreciate a quick rundown of what I need to do to accomplish this.ย  Thanks!

      1 Reply Last reply Reply Quote 0
      • jimpJ Offline
        jimp Rebel Alliance Developer Netgate
        last edited by

        It should be an easy matter of adding a block rule to the top of your LAN tab.

        Block <any proto="">from <that lan="" ip="">to *

        If it can't go out, it won't be able to get anything back in.</that></any>

        Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • M Offline
          Monoecus
          last edited by

          As Jimp said: Block the IP address of this machine on the LAN Tab and add a block to this machine's IP on the WAN Tab.

          For even more security, put this machine on a separate LAN/VLAN and disallow traffic from this machine to other machines on your network that have access to the internet to prevent circumvention of your blocks. It is needless to say that your machine definitely should have a static IP address that cannot be changed by any users of this machine.

          In case you really need this machine to access other computers on your network, allow only the Ports that this machine needs to access. Be especially careful with Telnet or SSH protocol, as this can be used to circumvent your block by using another machine on your network. Same holds for p2p software like Skype or bittorrent. Don't install such software on this machine.

          However, the best security you get by unplugging the machine from your network :-)

          1 Reply Last reply Reply Quote 0
          • B Offline
            Bern
            last edited by

            How about just removing its default gateway in its own TCP/IP settings?

            1 Reply Last reply Reply Quote 0
            • D Offline
              djamp42
              last edited by

              What about in A DHCP environment, like a hotel, airport, ect.

              It would be cool to have some kinda of MAC to IP Address tracking, so a mac address could be added to the firewall, and no matter what IP address it got, would still be blocked.

              You can do this manually, but is not very efficient.

              Adam

              1 Reply Last reply Reply Quote 0
              • jimpJ Offline
                jimp Rebel Alliance Developer Netgate
                last edited by

                The problem with tracking my MAC is that is can also be spoofed, and if the person really wants to, they could stick a cheap broadband router in front of their PC and really change the MAC.

                I thought someone said MAC filtering might be coming in 2.0, but don't quote me on that one.

                Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • P Offline
                  Perry
                  last edited by

                  What about in A DHCP environment, like a hotel, airport, ect.

                  As you probably would give them some Internet access.
                  low level restriction = OpenDNS
                  next level = Squidguard
                  next level = add a untangle box
                  next level = just give them a switch :D cnr

                  /Perry
                  doc.pfsense.org

                  1 Reply Last reply Reply Quote 0
                  • jimpJ Offline
                    jimp Rebel Alliance Developer Netgate
                    last edited by

                    Captive portal can also help in a Hotel/Airport/Hotspot environment as well

                    Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

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