Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7169

Wireguard and Ubuntu 22.04. Forcing traffic from port 25 over VPN [closed]

$
0
0

So Im hosting a server in a docker container which is a client in a VPN network. I Cant send any egress traffic out of port (say ummm 52) through the host. That box is a client to a wireguard server. If i set up the client config:

[Peer]AllowedIPs = 0.0.0.0/0, ::/0

Then i can egress port 52, no problem. If I change that to say:

[Peer]AllowedIPs = 10.8.0.0/24

Then the server doesnt know it should send traffic from ANY ip using port 52 for egress out of that VPN instead of the local machine. Im using Ubuntu 22.04 for this on the docker host. What is the best way to get around this? (Forward any traffic trying to egress over port 52 through the VPN)

To add to this, I'm decent with ubuntu/networking/firewalls but when it comes to iptables or any complex routing like this im a total newb.


Viewing all articles
Browse latest Browse all 7169

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>