Navigation

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

    VLAN on WAN but no VLAN on LAN?

    General pfSense Questions
    5
    8
    966
    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.
    • D
      DennisT last edited by

      Can I set up pfsense to VLAN (EG 10) on the WAN port but not use VLAN on the LAN port?  Essentially pfsense translates all outgoing packets from the LAN to VLAN and incoming drop the VLAN (EG 10).

      1 Reply Last reply Reply Quote 0
      • bingo600
        bingo600 LAYER 8 last edited by

        Does your ISP send data on "vlan 10" , or do you just need extra "ethernet" interfaces on the pfsense box ?
        And you would prob. need a vlan capable switch, in order to do this.

        But if you have a vlan capable switch, you could prob. run pfSense with only 1 pysical lan port on the psSense box.
        I would expect that even the WAN port on pfSense could be a tagged vlan , but am a pfSense beginner.

        The vlan capable switch could map each pfSense vlan tagged vlan, to a physical untagged port on the switch.

        As an untagged (switch) port has the vlan tag removed , anything you put in the switch port would see the port as a regular ethernet interface.

        /Bingo

        If you find my answer useful - Please give the post a 👍 - "thumbs up"

        pfSense+ 22.05 (ZFS)

        QOTOM-Q355G4 Quad Lan.
        CPU  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
        LAN  : 4 x Intel 211, Disk  : 250G EVO870 Sata SSD

        1 Reply Last reply Reply Quote 0
        • NogBadTheBad
          NogBadTheBad last edited by

          Do you mean a one armed router AKA router on a stick ?

          Andy

          1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

          1 Reply Last reply Reply Quote 0
          • jahonix
            jahonix last edited by

            @DennisT:

            VLAN on the WAN port but not use VLAN on the LAN port

            Yes.
            VLANs are additional interfaces you create on top of an existing HW interface.

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

              I tried it…
              Have 2 WANs.

              1 PPPoE
              1 DHCP

              Created 2 vlans on 1 NIC, tagged port on switch and plugged in cable to it from pfsense WAN. Then I created 2 untagged ports on different VLANs on same switch and plugged in 2 cables from my modem. I made these 2 untagged ports members of correct VLANs for WAN.

              It did work but not well unfortunatley. On idle line I got random packet loss, high latency and pppoe disconnects...

              Dunno..

              1 Reply Last reply Reply Quote 0
              • D
                DennisT last edited by

                It's a somewhat "special" configuration.  The WAN interface connects to an upstream switch that has to be vlan'd (I used 10 as an example).  Internet is through that switch but I have no management access to it.  They will assign me a public IP and pass all incoming/outgoing data through it.  The LAN port is connected to the network I'll manage.  I'd rather not use vlan on that network as I'm not certain all devices will be vlan capable and as it isn't really needed it would be just an additional thing to manage.

                The hardware I'm using is the Netgate SG-2220.

                So I take all I need to do is assign a VLAN to the WAN interface and no vlan to the LAN interface?  The SG-2220 will then strip the tagging on all LAN traffic and add tagging on all WAN traffic?  Are there any considerations for VPN traffic I should be aware of?

                1 Reply Last reply Reply Quote 0
                • jahonix
                  jahonix last edited by

                  You didn't get it yet.

                  When creating a VLAN you create a new interface. The parent interface just tells you on which plug, kind of.
                  You have to choose this newly created interface as your WAN interface then.
                  Think of pfSense as an onion. Outside are interfaces, inside is routing et al. Once a packet is inside pfSense does not care about VLAN IDs anymore, just interfaces. If it sends a packet to your WAN then the outer shell tagges it with the VLAN ID bit you assigned when creating a VLAN interface (or strips it on an incoming packet).

                  Having said that, VLANs are only supported from VLAN capable, aka managed, switches. Is your upstream WAN switch capable of doing so and someone else has management access to it?

                  1 Reply Last reply Reply Quote 0
                  • D
                    DennisT last edited by

                    Thanks for the feedback.

                    Yes, the upstream switch is VLAN capable and I have no management access to it.  I've used VLAN in the past on another network but that was on Cisco switches and internal to the network (no firewall involvement).  Looks like I need to play with the interfaces area of pfsense a little to develop a feel for it.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post