Steve1985 Posted January 8 Share Posted January 8 I am using several containers with a VPN (wireguard) server to mask my public IP. This works great. However i wanted to add a reverse proxy to my setup and stumbled across using container names to configure this. Sounds good. But some containers use wg0 network and others use a different network. I have tried adding a second network with docker network connect my-net my-nginx That does work the containers can now ping each other on their container name. However it no longer uses the VPN server's IP for outgoing connections. Is there a way to use 2 docker networks together but still have the VPN IP address as the public IP of that container? So for example: nzbget uses both wg0 and <customerdockernetwork> as its network while routing traffic over the VPN and using the external IP of the VPN. After hours of fiddling tweaking and reading posts and watching youtube i am stuck on this. Hope someone can point me in the right direction Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.