Hi Everyone,
I have a server on which I have a number of lxd networks. I’ve been looking at ways to route traffic from networks through specific interfaces, such that networks can use different VPN servers. I’m currently using WireGuard to connect to the VPN servers, so the setup would look something like the following:
| | | |
| | | |
| | | |
| | | |
| | | |
+-------------+-----------------------------------------------------------------------------+
| | | | |
| | | | |
+-------------+ | | | |
| | +---+----+ +---+---+ +---+---+ +----+---+
| host | | eth0 | | wg0 | | wg1 | | wg2 |
| | +---^----+ +---^---+ +---^---+ +----^---+
+-------------+ | | | |
| | | | |
| | | | |
+-------------+-----------------------------------------------------------------------------+
| | | |
+--------------+ + +-----------+ +------------------------+
lxdbr0 lxdbr1 lxdbr2 lxdbr3
+----------------------+ +------------------------+ +-------------------------+ +---------------------------+
| | | | | | | |
| 10.0.0.0/24 | | 10.0.1.0/24 | | 10.0.2.0/24 | | 10.0.3.0/24 |
| | | | | | | |
| | | | | | | |
| | | | | | | |
+----------------------+ +------------------------+ +-------------------------+ +---------------------------+
I’ve tried to implement this using the default private and managed network, and have looked into the other network options, but haven’t yet found a way to get this working using lxd’s builtin functionality. Any help would be greatly appreciated.
P.S.
This is my first post on the forum, and while I have read the instructions to starting a discussion, let me know if I can improve the post, such that others who might be interested might find this useful as well.