G’day
I’ve been playing around with namespaces a bit, but I can’t figure this out.
What I am trying to achieve is, to route multiple namespaces thru wireguard client which is not running inside namespace.
Whats working? I have setup veth pairs with 172.16.16.0/24 network and SNAT with nftables to my local network and this works.
Wireguard client running with “table = off” option preventing it creating routes, tunnel is up and running and “ping -I wg0 1.1.1.1” works.
What I’ve tried? SNAT with wg0 interface and different ip route combinations but I can’t make it work.
This probably isnt even best way to achieve this and would like to hear how to make this work.