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

    Block access to LAN, allow access to Internet only

    Scheduled Pinned Locked Moved Firewalling
    4 Posts 4 Posters 511 Views 4 Watching
    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.
    • T Offline
      tomaszf
      last edited by

      Hello.

      I woud to like create rule to block access to all hosts in lan form one specific host.
      Hovever this host should have internet access.

      I tried add rule:
      bf31cdcb-9a7c-4c4f-81af-bcce5f2fae88-image.png
      But this not working (host still can connect to other host in lan).

      It is possible?

      Best regards,
      Tomasz

      JKnottJ GertjanG 2 Replies Last reply Reply Quote 0
      • johnpozJ Online
        johnpoz LAYER 8 Global Moderator
        last edited by

        clients on lan do not talk to pfsense to talk to other devices on lan... So NO not possible to block lan client A from talking to lan client B.

        That would be done at the switch level with say private vlans.

        Or create another network/vlan and put the clients you don't want talking to each other on different vlans - then pfsense can do what you want.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 25.07 | Lab VMs 2.8, 25.07

        1 Reply Last reply Reply Quote 0
        • JKnottJ Offline
          JKnott @tomaszf
          last edited by

          @tomaszf

          If all the hosts are within the same subnet, there is nothing pfSense can do to block them, as the traffic will not pass through it.

          PfSense running on Qotom mini PC
          i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
          UniFi AC-Lite access point

          I haven't lost my mind. It's around here...somewhere...

          1 Reply Last reply Reply Quote 0
          • GertjanG Offline
            Gertjan @tomaszf
            last edited by

            A question back :

            @tomaszf said in Block access to LAN, allow access to Internet only:

            It is possible?

            This :

            3326edbc-06d6-43b3-a265-049fd33f8d3a-image.png

            (sorry, French Windows version - not my fault)

            has been there since Windows Vista .... and you still didn't get it ? (I'm sure Apple asks the same question on initial connect)
            Look up what it means and why Windows is asking that question when you connect to a new network **, if you want it to be a private, public or company network ? The answer is very related to your question.

            The thing is : the user of the device can choose what he want to "see" on your LAN.
            You, on the other side, as the admin of that LAN network, can only enforce non inter client connection by using smart switches, separate networks (LAN's or VLAN) or some tricks with ebtables ( a cousin of iptables ) that exists in some AP's.

            ** and how does it know that it's a "new network" ? ;)

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

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