mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-26 10:05:48 +03:00
[GH-ISSUE #291] Change VPN subnets! #268
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 @alkolexx on GitHub (May 8, 2022).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/291
Hello!
It is very necessary to change vpn addressing of subnets 192.168.42.* and 192.168.43.* docker solution... Can this be done using .env file or are there other ways?
@hwdsl2 commented on GitHub (May 8, 2022):
@alkolexx Hello! Advanced users may specify custom subnet(s) in the
envfile, see examples below. You must re-create the Docker container after modifying theenvfile.VPN_L2TP_LOCALis the VPN server's internal VPN IP for IPsec/L2TP mode.VPN_L2TP_POOLandVPN_XAUTH_POOLare the pools of auto-assigned IP addresses for VPN clients.Note that if you specify
VPN_XAUTH_POOLin theenvfile, and IKEv2 is already set up in the Docker container, you must manually edit/etc/ipsec.d/ikev2.confinside the container and replacerightaddresspool=192.168.43.10-192.168.43.250with the same value asVPN_XAUTH_POOL, before re-creating the Docker container. Otherwise, IKEv2 may stop working.