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

    Using only vlans no lan

    Scheduled Pinned Locked Moved L2/Switching/VLANs
    6 Posts 4 Posters 905 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.
    • R
      rhvw
      last edited by

      Hello, I was wondering if it’s recommended to only configure vlans tied to an interface directly? Or is it more appropriate to create vlans with the parent being lan?

      I ask because I watched this video:
      link text

      I’ve heard it’s best practice not to mix untagged and tagged traffic, but so many examples/tutorials use lan as the parent interface.

      The video author stated that sometimes without a lan configured that this may make certain things more difficult as it’s “highly integrated in pfsense”

      Any help is much appreciated
      Thank you
      Rip

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

        @rhvw

        Having both tagged and untagged frames on the same wire is quite common and is main feature of VLANs. For example, I have my guest WiFi VLAN on the same interface and cable as the main WiFi. In offices, it's common to have VoIP phones on a VLAN on the same connection as the main LAN. The purpose of VLANs is to have multiple virtual networks over a single physical network.

        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...

        R 1 Reply Last reply Reply Quote 0
        • R
          rhvw @JKnott
          last edited by

          Would only tagged vlans on a trunk port be considered more secure?

          Are there any complications with not configuring a lan (untagged) with respect to installing certain packages?

          Thanks

          H 1 Reply Last reply Reply Quote 0
          • H
            heper @rhvw
            last edited by heper

            @rhvw

            the world is filled with bullshit ....

            vlans don't provide security

            if someone has physical access to a switch, then all security is lost anyhow

            R 1 Reply Last reply Reply Quote 0
            • R
              rhvw @heper
              last edited by

              Sorry I wasn’t clear, is mixing tagged and untagged more susceptible to vlan hopping?

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

                @rhvw said in Using only vlans no lan:

                is mixing tagged and untagged more susceptible to vlan hopping?

                No... But it could be more open to mistakes being made in the config I guess..

                Tagged and Untagged traffic would only ever be on a port that is uplink to some device that would be handling the vlans. Another switch, another router, an AP.. Some VM host, etc.

                It what scenario would you have anything but 1 vlan untagged traffic going to an end use device? If you were doing that - then sure the end device could get on any vlan they wanted that was allowed on the port.

                The ability to hop vlans amost always comes down to a mis configuration.. If you setup your switch/AP correctly.. And there is no underlaying issue with the switch/ap - it not very likely to be able to hop vlans.

                In a correctly configured an functioning switch. If I put port X in vlan Y.. The user tagging traffic would not be allowed by the switch port, so it would/should not be possible for the user to hop to a different vlan.. Only untagged traffic should be allowed into that switch port, and it would be on vlan Y.

                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
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.