Vlan Tag on all connected Openvpn Users

  • Hi guys, my first post here - i already searched and did not really find something useful (at least to me).

    I configured pfsense (2.3) with an openvpn server - everything works fine.

    The ip Pool is:
    The "accessible network" of the OpenVPN config are:

    However, i would like add a VLAN tag to every requests made by a client ( TO the accessible network at

    My setup has 3 NICs

    • em0 (wan),
    • em1(lan just for the web view)
    • em2 (this should be the vlan tagged one with openvpn))

    I gave em2 an interface with static ipv4 configuration.
    I created a VLAN Tag for em2

    I saw that OpenVPN server does create a virtual interface (or port?) (at the assign interfaace tab), but i really do not know how to use it.

    As i mentioned, i want OpenVPN to be "connected" to the em2, vlan tagged interface.

    Any ideas or documentation on how to do that?

    Thank you in advance

  • i think this will need some more detail….

    remember vlans are layer2 / ip is layer3. mixing them generally isn't done / can't be done / serves no purpose

  • updated this, hope the setup is and my intention is clearer now.

  • LAYER 8 Netgate

    You cannot put on an interface and use to give to OpenVPN clients. Those subnets overlap.

    If you, for example, assign the IP address to a host on em2 and it has traffic for it is going to think it's on the same subnet and not send the traffic back to the firewall to be forwarded to the OpenVPN client.

    To tag traffic on a pfSense interface, you must first create a VLAN on the interface Interfaces > (assign), VLANs tab, then assign the interface to VLAN XXX on em2 in Interfaces > (assign). Then connect em2 to a switch port or device that expects traffic tagged on VLAN XXX.

Log in to reply