[GH-ISSUE #183] VPN access to docker host -> get home network IP #168

Closed
opened 2026-03-02 07:44:25 +03:00 by kerem · 1 comment
Owner

Originally created by @lukasvlcekcz on GitHub (Apr 17, 2020).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/183

Hi,
first of all I would like to thank you for this docker image.
I have a server with a public IPv4: 173.xxx.xxx.xxx and a home network with a public IPv4: 89.xxx.xxx.xxx.
After connecting in VPN I get: 173.xxx.xxx.xxx.
However, if I access a website hosted on my server via VPN, I see that I am accessing from home IP 89.xxx.xxx.xxx.
Can this behavior be modified to have an IP server - 173.xxx.xxx.xxx?
Thank you for answer.

Originally created by @lukasvlcekcz on GitHub (Apr 17, 2020). Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/183 Hi, first of all I would like to thank you for this docker image. I have a server with a public IPv4: 173.xxx.xxx.xxx and a home network with a public IPv4: 89.xxx.xxx.xxx. After connecting in VPN I get: 173.xxx.xxx.xxx. However, if I access a website hosted on my server via VPN, I see that I am accessing from home IP 89.xxx.xxx.xxx. Can this behavior be modified to have an IP server - 173.xxx.xxx.xxx? Thank you for answer.
kerem closed this issue 2026-03-02 07:44:25 +03:00
Author
Owner

@hwdsl2 commented on GitHub (May 16, 2020):

@LukasVlcek Hello! It looks like you are trying to access a website hosted in another Docker container on your Docker host which also hosts the IPsec VPN container. Due to Docker's isolation and routing between containers, I am not sure about your use case.

<!-- gh-comment-id:629580091 --> @hwdsl2 commented on GitHub (May 16, 2020): @LukasVlcek Hello! It looks like you are trying to access a website hosted in another Docker container on your Docker host which also hosts the IPsec VPN container. Due to Docker's isolation and routing between containers, I am not sure about your use case.
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#168
No description provided.