Report this

What is the reason for this report?

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

Posted on August 2, 2020

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!



This textbox defaults to using Markdown to format your answer.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.