added line to start-vpn to adjust dns settings as required; fixes #5

This commit is contained in:
Andrew Davidson 2019-06-04 23:50:59 -04:00
parent 0446e53e4d
commit e9d3a90275
Signed by: amd
GPG key ID: 17AF8F2A49CF25C6

View file

@ -39,6 +39,11 @@ SHARED_SECRET="123$(openssl rand -base64 32 2>/dev/null)"
# hotfix for https://github.com/gaomd/docker-ikev2-vpn-server/issues/7
rm -f /var/run/starter.charon.pid
# Allow DNS changes https://github.com/amdavidson/vpn-server/issues/5
if [ -n $DNS ]; then
sed -i "s/dns = .*/dns = $DNS/" /etc/strongswan.conf
fi
service ndppd start
# http://wiki.loopop.net/doku.php?id=server:vpn:strongswanonopenvz
/usr/sbin/ipsec start --nofork