Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

How to allow other docker containers to access private network subnet via docker-openvpn-client? #89

Unanswered
beeyev asked this question in Q&A
Discussion options

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 ?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /