Skip to content

support VLANs in TAP mode

Antonio Quartulli openvpn-devel 1 version In review

Get series with b4
b4 am [email protected]...

Versions newest first

  1. v1 Latest9 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9maddr: create helper function to populate maddr object from eth_addrsrc/openvpn/mroute.c+12 -81 reply
2/9VLAN: add basic VLAN tagging supportsrc/openvpn/Makefile.am src/openvpn/errlevel.h src/openvpn/multi.c +6 more+268 -614 replies
3/9maddr: export VLAN ID from client context to maddr objectsrc/openvpn/mroute.c src/openvpn/mroute.h src/openvpn/multi.c+49 -192 replies
4/9VLAN: filter multicast and client-to-client unicast trafficsrc/openvpn/multi.c+9 -21 reply
5/9is_ipv_X: add support for parsing IP header inside a 802.1q framesrc/openvpn/proto.c+32 -101 reply
6/9VLAN: implement support for forwarding only pre-tagged VLAN packetssrc/openvpn/multi.c src/openvpn/options.c src/openvpn/options.h +2 more+252 -31 reply
7/9VLAN: allow forwarding tagged and untagged packets on the server TAP devicesrc/openvpn/options.c src/openvpn/options.h src/openvpn/vlan.c+27 -31 reply
8/9VLAN: add documentation to manpagedoc/openvpn.8+98 -13 replies
9/9VLAN: allow user to avoid compiling VLAN handling codeconfigure.ac src/openvpn/Makefile.am src/openvpn/mroute.c +5 more+126 -91 reply

Reviews trailers per patch

8 of 9 patches have a Reviewed-by or Acked-by.

PatchGert DoeringLev Stipakov
1/9A-b
2/9A-b A-b
3/9A-b
4/9A-b
5/9A-b
6/9A-b
7/9A-b
8/9A-b
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Openvpn-devel] [PATCH 0/9] support VLANs in TAP mode

This patchset is the restyled, adjusted and (partly) re-worked version of the patchset that can be found in this GitHub PR
https://github.com/OpenVPN/openvpn/pull/76
originally authored by Fabian Knittel.

The status of this new patchset is tracked here:
https://community.openvpn.net/openvpn/ticket/6#comment:5

These new patches have already gone through a first round of review by Gert and are now being posted on the mailing list for broader scrutinity.

In a nutshell, this new feature allows to assign each client to a VLAN (like if it was a host plugged into a switch, with OpenVPN server being the switch). This will ensure proper isolation between clients on different VLANs.
On top of that, depending on the configuration, clients can be bridged with different networks on the server side, thanks to the VLAN tagging applied to their outgoing packets (more is explained in the additional manpage content).

A specific document explaining more in details how this feature can be useful in common setups is planned to be drafted after the patchset has been merged.

Feedback is welcome!

Regards,

Antonio Quartulli (9):
maddr: create helper function to populate maddr object from eth_addr
VLAN: add basic VLAN tagging support
maddr: export VLAN ID from client context to maddr object
VLAN: filter multicast and client-to-client unicast traffic
is_ipv_X: add support for parsing IP header inside a 802.1q frame
VLAN: implement support for forwarding only pre-tagged VLAN packets
VLAN: allow forwarding tagged and untagged packets on the server TAP
device
VLAN: add documentation to manpage
VLAN: allow user to avoid compiling VLAN handling code

 configure.ac            |  12 ++
 doc/openvpn.8           |  99 +++++++++++-
 src/openvpn/Makefile.am |   4 +
 src/openvpn/errlevel.h  |   2 +
 src/openvpn/mroute.c    |  66 +++++---
 src/openvpn/mroute.h    |  13 +-
 src/openvpn/multi.c     |  47 +++++-
 src/openvpn/multi.h     |   2 +
 src/openvpn/options.c   |  99 ++++++++++++
 src/openvpn/options.h   |  13 ++
 src/openvpn/proto.c     |  42 +++--
 src/openvpn/proto.h     |  25 +++
 src/openvpn/vlan.c      | 337 ++++++++++++++++++++++++++++++++++++++++
 src/openvpn/vlan.h      | 131 ++++++++++++++++
 14 files changed, 852 insertions(+), 40 deletions(-)
 create mode 100644 src/openvpn/vlan.c
 create mode 100644 src/openvpn/vlan.h
Signature · 1 line
2.23.0