You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.
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 ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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 address192.168.1.12
and database server with ip192.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
fileOne 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 thedocker-openvpn-client
?Beta Was this translation helpful? Give feedback.
All reactions