Two relatively recent Open Source Mesh Overlay VPNs (WireGuard & Slack’s Nebula) only operate at Layer3 (a TUN device).
LXDBR0 as we all know is a Bridge operating at Layer2.
My use-case is to create the VPN in the Host/Server and either connect the VPN’s TEP (Tunnel End Point) or forward its traffic to LXDBR0 bridge (or a custom LXD container bridge interface).
Using a different VPN that does support a TAP Layer2 TEP (Tunnel End Point) is easy as it is simply connecting the TAP device the VPN creates as another ethernet interface to LXDBR0 (or an alternative LXD Container Bridge that I might create & use).
For VPN’s that create a TUN (Layer3) TEP I’ve so far searched for and found a number of “suggested” methods to Route -or- Forward the TUN Layer3 traffic to the LXD container bridge.
Can anyone describe what might be considered a “best” method for installing a Layer3 VPN in the Host/Server
and
either Routing -or- Forwarding traffic to/from that VPN TUN device to/from the LXD Container(s) Bridge device (LXDBR0 -or- custom Bridge).
Defining “best” probably helps. In my use-case I’d consider “best” to include:
- ease of configuration
- most traffic performant