Question

How to connect to another container in the same Docker network with VPN server

Posted 2 days ago 82 views
UbuntuDockerVPN

Hello. I’m building a VPN tunnel with a VPN server running on a Docker container on top of an Ubuntu Droplet. I have other containers running in the same Docker network (network_mode: bridge) of the VPN server container. I wanted to limit the access so that only VPN clients can have access to the other containers in the same Docker network with the VPN server container. Which IP address or subnet should I allow in the DigitalOcean Firewall? I tried allowing the public IP of the Ubuntu server but still can’t access the other container somehow. I’d appreciate if anyone can help or give hints about this matter. Thank you!

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!