-
Notifications
You must be signed in to change notification settings - Fork 117
-
Simple situation.
I have a private network with subnet 192.168.1.0/24 inside this subnet I have some servers, for example file server with IP address 192.168.1.12 and database server with ip 192.168.1.14
I have a working OpenVPN configuration server, and it works fine, when I initialize the connection from my local machine to this server. I can easily access any host inside the remote network 192.168.1.0/24.
The question:
I have multiple docker containers in the same docker network, here is a part of my docker-compose file
networks: network1: driver: bridge
One of these containers is this docker-openvpn-client which successfully connects to the remote network.
How can I tell other containers, that whenever they need to access some service from the network subnet 192.168.1.0/24, they should route traffic through the docker-openvpn-client ?
Beta Was this translation helpful? Give feedback.