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

    VPN and Vlan

    Scheduled Pinned Locked Moved OpenVPN
    4 Posts 3 Posters 628 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.
    • J
      Joeseph
      last edited by

      Hello,
      First I'm new to networking. My setup is my ISP's modem (bridged) -> pfsense (QOTOM Mini PC) -> Managed switch (TP-Link TL-SG108E) -> PCs, TV etc..

      I managed to setup as per instructions provided from PIA for VPN but failing to successful create firewall rules to send VPN to only a couple of PCs and rest have no VPN for gaming/work. Only have it set for whole network.

      Also, I'm trying and unsuccessfully create vlans for basically the same purpose, have 2pcs on one network, work laptop, 1 in living room, TV and later on to a Wifi box.
      I followed several guides on youtube and online and even though I learned alot in the progress (factory resets galore lol), I still can't seem to find that perfect guide. Meanwhile trying to keep it secure as I'm sure I have peeping toms.
      Any advice or links to good guides would be appreciated.

      J 1 Reply Last reply Reply Quote 0
      • J
        Jarhead @Joeseph
        last edited by

        @joeseph As far as the vpn, just search this forum. Been discussed many, many times and you'll find all the answers you'll need.

        Vlans, what exactly are you having a problem with? You didn't really give any details.

        1 Reply Last reply Reply Quote 0
        • J
          Joeseph
          last edited by

          @jarhead

          Vlans, what exactly are you having a problem with? You didn't really give any details.

          Thank you for replying..

          In the switch, on the 802.1Q, I'm selecting port 2 and 3 giving them VLAN ID: 10. Then link them together in the 802.1Q VLAN PVID tab. Untagged or tagged.
          To my understanding I need to set my vlan to 10 in each PC. In windows NIC properties, advanced, Vlan ID value of 10. Correct? Do I need to reboot? like I said, can't find any step by step documentation.

          Screenshot from 2022-12-21 23-46-09.png Screenshot from 2022-12-21 23-46-36.png

          the otherT 1 Reply Last reply Reply Quote 0
          • the otherT
            the other @Joeseph
            last edited by

            @joeseph hey,
            You do not need to set each client' s network configuration.
            If you set (on your switch) ports 2 and 3 to belong to vlan 10, that should be enough.

            So configure all your vlans in pfsense, put them on your switch. Clients are put on your untagged switch access ports. Then use a trunk connection between pfsense and switch, here all vlans are tagged except vlan 1 (default).

            Do not use vlan 1 as a prodductive vlan, it only carries neccessary packets for your network infrastructure but should not carry any productive data.

            Port 1 (to pfsense as trunk) : vlan 1 untagged, others tagged
            Port 2 (to client 1): vlan 10 untagged
            Port 3 (to client in let's say vlan 30): vlan 30 untagged
            Etc.

            the other

            pure amateur home user, no business or professional background
            please excuse poor english skills and typpoz :)

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