[GH-ISSUE #85] Force what IP address can be used #74

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

Originally created by @pdwonline on GitHub (Jul 20, 2018).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/85

My VPN is hosted on a server in a network that is segmented in a semi public building. This means that the there are different routes to my server

When I start the VPN server, it will determine the IP addres automatically as seen in the log:

Trying to auto discover IP of this server

IPsec VPN server is now ready for use!
Connect to your new VPN with these details:
Server IP: xxx.yyy.xxx.yyy

I need to force this IP address to be different, however, I could not determine a setting for it..

Originally created by @pdwonline on GitHub (Jul 20, 2018). Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/85 My VPN is hosted on a server in a network that is segmented in a semi public building. This means that the there are different routes to my server When I start the VPN server, it will determine the IP addres automatically as seen in the log: Trying to auto discover IP of this server ================================================ IPsec VPN server is now ready for use! Connect to your new VPN with these details: Server IP: xxx.yyy.xxx.yyy I need to force this IP address to be different, however, I could not determine a setting for it..
kerem closed this issue 2026-03-02 07:11:32 +03:00
Author
Owner

@hwdsl2 commented on GitHub (Jul 23, 2018):

@pdwonline Hello! Append this line in your vpn.env file:

VPN_PUBLIC_IP=YOUR_DESIRED_PUBLIC_IP

Then remove and recreate the Docker container using instructions from the README [1].

[1] https://github.com/hwdsl2/docker-ipsec-vpn-server#update-docker-image

<!-- gh-comment-id:406952404 --> @hwdsl2 commented on GitHub (Jul 23, 2018): @pdwonline Hello! Append this line in your `vpn.env` file: ``` VPN_PUBLIC_IP=YOUR_DESIRED_PUBLIC_IP ``` Then remove and recreate the Docker container using instructions from the README [1]. [1] https://github.com/hwdsl2/docker-ipsec-vpn-server#update-docker-image
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#74
No description provided.