[GH-ISSUE #200] Reach another Docker Image through VPN only. #183

Closed
opened 2026-03-02 07:44:35 +03:00 by kerem · 2 comments
Owner

Originally created by @MaskedUserXYZ on GitHub (Aug 5, 2020).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/200

Hi, I have another Docker Image runs as "mail-server" and I want to make that Image accessible through VPN only, in the same while I want to make sure that it sends/receives emails.

in general, if I have an application runs on the VPN server network, can I make it accessible through VPN only?

I think the following could be the solution:

  1. runs the Mail Server Image(1) on the same VPN Image(2) network.
  2. redirect the traffic of (1) to pass through (2) (by editing the routing table I think).
  3. connect to the VPN, use exposed ports to access to (1).
Originally created by @MaskedUserXYZ on GitHub (Aug 5, 2020). Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/200 Hi, I have another Docker Image runs as "mail-server" and I want to make that Image **accessible through VPN only**, in the same while I want to make sure that it sends/receives emails. in general, if I have an application runs on the VPN server network, can I make it accessible through VPN only? I think the following could be the solution: 1. runs the Mail Server Image(1) on the same VPN Image(2) network. 2. redirect the traffic of (1) to pass through (2) (by editing the routing table I think). 3. connect to the VPN, use exposed ports to access to (1).
kerem closed this issue 2026-03-02 07:44:35 +03:00
Author
Owner

@hwdsl2 commented on GitHub (Aug 6, 2020):

@MaskedUserXYZ Hello! Similar questions were asked before in this repo. Due to Docker's network isolation among containers on the same host, unfortunately I am not aware of a working solution for your use case.

<!-- gh-comment-id:669648220 --> @hwdsl2 commented on GitHub (Aug 6, 2020): @MaskedUserXYZ Hello! Similar questions were asked before in this repo. Due to Docker's network isolation among containers on the same host, unfortunately I am not aware of a working solution for your use case.
Author
Owner

@MaskedUserXYZ commented on GitHub (Aug 6, 2020):

No problem, I will do the work by my self.
I'm looking to know, does it possible or not?
Thank you.

<!-- gh-comment-id:669650402 --> @MaskedUserXYZ commented on GitHub (Aug 6, 2020): No problem, I will do the work by my self. I'm looking to know, does it possible or not? Thank you.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-ipsec-vpn-server#183
No description provided.