mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-26 01:55:53 +03:00
[GH-ISSUE #329] Domain name support for ikev2-vpn #304
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @brego81 on GitHub (Nov 29, 2022).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/329
Describe the issue
I am unable to use a domain name when setting up an ikev2-vpn server. In specific, by default the docker pick-up my server IP and there is no way to override it using environment variables.
I tried to user both VPN_DNS_NAME and VPN_PUBLIC_IP but did not worked.
Once the server is up and running I see:
While I would like to see
To Reproduce
Run the ikev2-vpn server using the default setting and try to set a domain name instead of an IP
If I try to connect using the server IP address it works, differently with the domain name doesn't
Server
Client
@hwdsl2 commented on GitHub (Nov 29, 2022):
@brego81 Hello! This is not a bug. As mentioned in the README, the VPN_DNS_NAME variable has no effect if IKEv2 is already set up in the Docker container. This variable can be used to set a DNS name for IKEv2.
What you can do is to first remove the container and the ikev2-vpn-data Docker volume:
docker rm -f ipsec-vpn-server
docker volume rm ikev2-vpn-data
Warning: These commands above will permanently delete all existing VPN data including IKEv2 certificates and keys.
After that, re-create the Docker container using instructions in the README. Be sure to specify the correct VPN_DNS_NAME in your "env" file.