support VLANs in TAP mode
Get series with b4
b4 am [email protected]...Versions newest first
- v1 Latest9 patches 19 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | maddr: create helper function to populate maddr object from eth_addrsrc/ | +12 | 1 reply | |
| 2/9 | VLAN: add basic VLAN tagging supportsrc/ src/ src/ +6 more | +268 | 14 replies | |
| 3/9 | maddr: export VLAN ID from client context to maddr objectsrc/ src/ src/ | +49 | 2 replies | |
| 4/9 | VLAN: filter multicast and client-to-client unicast trafficsrc/ | +9 | 1 reply | |
| 5/9 | is_ipv_X: add support for parsing IP header inside a 802.1q framesrc/ | +32 | 1 reply | |
| 6/9 | VLAN: implement support for forwarding only pre-tagged VLAN packetssrc/ src/ src/ +2 more | +252 | 1 reply | |
| 7/9 | VLAN: allow forwarding tagged and untagged packets on the server TAP devicesrc/ src/ src/ | +27 | 1 reply | |
| 8/9 | VLAN: add documentation to manpagedoc/ | +98 | 3 replies | |
| 9/9 | VLAN: allow user to avoid compiling VLAN handling codeconfigure.ac src/ src/ +5 more | +126 | 1 reply |
Reviews trailers per patch
8 of 9 patches have a Reviewed-by or Acked-by.
| Patch | Gert Doering | Lev Stipakov |
|---|---|---|
| 1/9 | A-b | |
| 2/9 | A-b | A-b |
| 3/9 | A-b | |
| 4/9 | A-b | |
| 5/9 | A-b | |
| 6/9 | A-b | |
| 7/9 | A-b | |
| 8/9 | A-b | |
| 9/9 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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