You are not logged in.

#1 2021-03-24 11:49:49

vestingz
Member
Registered: 2020-12-03
Posts: 7

Serving content locally outside a namespace

I am running a service on a local machine from within a dedicated namespace ns1 with an wireguard interface wg0 as its only network interface, like so: https://www.wireguard.com/netns/
From wg0.conf, I have set "AllowedIPs = 0.0.0.0/0", so any connection attempt is routed via wg0, as expected.

However, I would like to reach that service from within my local network (192.168.178.0/24) without having to join the wireguard vpn (10.8.0.0/24). Obviously, because wg0 is the only interface in ns1, I cannot reach that service from my local network. My first idea was to use a veth to connect ns1 and the global namespace and then bridge the networks. That would require a special route within ns1 for 192.168.178.0/24 via veth.

To me this idea seems overly fiddly, though. Am I missing some other obvious solution here? Thanks!

Offline

Board footer

Powered by FluxBB