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

    Client needs internet access but no local network access

    Scheduled Pinned Locked Moved Firewalling
    6 Posts 6 Posters 1.2k 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
      WhiteIntel
      last edited by

      Hello,
      what is the easiest way to give one specific client internet access but prevent any other traffic with other clients on the LAN?
      greetings

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        A managed switch and private VLAN.  Your issue is at layer 2 (switch) not at layer 3 (pfSense/router).

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • M
          muswellhillbilly
          last edited by

          You can tick 'Deny unknown cilents' in your DHCP settings and set the MAC address of the specific client you want to have access in the bottom part of the same config page. Then just create a single rule to only allow that one IP out in your firewall rules.

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            muswellhillbilly reread the OP question.  Pfsense has NO control over a client to talking to other clients on that segment.  Pfsense as layer 3 router/firewall only comes into play when the client wants OFF the segment they are on.

            As Derelict stated if you need to control what client can do with other clients on that segment.. Say your client A is 192.168.1.14/24 and you don't want him talking to 192.168.1.15/24 then private vlans on your switch could solve that problem.

            Or you would have to firewall at the host level to prevent communication between them, or you would have to put the 1 host you want to just have internet on its own vlan that is different than the other clients - then pfsense could control the traffic.

            Other option would be hate to say it but a bridge.  Where the 1 client you want to isolate is on a different interface than the normal 192.168.1.0/24 and pfsense could then firewall that traffic.  Private vlans wold be the way to do this - what switch do you have OP?

            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 24.11 | Lab VMs 2.8, 24.11

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

              In other words, PFSense can filter among broadcast domains but cannot filter within one.

              1 Reply Last reply Reply Quote 0
              • R
                robi
                last edited by

                @Derelict:

                A managed switch and private VLAN.  Your issue is at layer 2 (switch) not at layer 3 (pfSense/router).

                Or an extra network card in pfSense for those specific clients.

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