mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-25 17:45:55 +03:00
[PR #277] [MERGED] feat: allow to specify static IP addresses #480
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?
📋 Pull Request Information
Original PR: https://github.com/hwdsl2/docker-ipsec-vpn-server/pull/277
Author: @wolasss
Created: 2/12/2022
Status: ✅ Merged
Merged: 3/4/2022
Merged by: @hwdsl2
Base:
master← Head:master📝 Commits (3)
b513fe0feat: allow to specify additional users ip addressesfac6815feat: support additional IP for ipsec/xauth0320b69fix: VPN_ADDL_IP_ADDRS parameter handling📊 Changes
1 file changed (+12 additions, -2 deletions)
View changed files
📝
run.sh(+12 -2)📄 Description
This PR introduces optional static IP addresses that work both in l2tp and ipsec-xauth.
This feature request has been brought up many times: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/32, https://github.com/hwdsl2/docker-ipsec-vpn-server/pull/222 https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/159 https://github.com/hwdsl2/setup-ipsec-vpn/issues/508
This feature is very much needed as one cannot easily build own Dockerfile based on this image because all of the configurations are done in
run.shscript that is being run on CMD. Therefore, in the child Dockerfile, it is impossible to extend this configuration script - one has to copy the whole repository which is a hassle (for instance keeping it up to date).With this PR, the user can specify
VPN_ADDL_IP_ADDRSin addition toVPN_ADDL_USERSandVPN_ADDL_PASSWORDS. It works the same, for example:adduser1will be assigned 192.168.42.3,adduser2is assigned 192.168.42.4 andadduser3is assigned a dynamic IP address from the pool. Note, that the users with dynamic IP addresses should be stated at the end of the list (this should be stated in the docs).Please let me know what do you think if you like it I can:
VPN_ADDL_IP_ADDRSparameter validation🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.