diff --git a/Dockerfile b/Dockerfile index 16577fe..1eed0db 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM ubuntu:14.04.3 RUN apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get -y upgrade \ && DEBIAN_FRONTEND=noninteractive apt-get -y install strongswan iptables uuid-runtime \ - && rm -rf /var/lib/apt/lists/* # cache busted 20151028.1 + && rm -rf /var/lib/apt/lists/* # cache busted 20151128.1 RUN rm /etc/ipsec.secrets diff --git a/bin/start-vpn b/bin/start-vpn index 8cab985..64c4013 100755 --- a/bin/start-vpn +++ b/bin/start-vpn @@ -32,5 +32,8 @@ iptables -t nat -A POSTROUTING -s 10.8.0.0/16 -o eth0 -j MASQUERADE SHARED_SECRET="123$(openssl rand -base64 32 2>/dev/null)" [ -f /etc/ipsec.secrets ] || echo ": PSK \"${SHARED_SECRET}\"" > /etc/ipsec.secrets +# hotfix for https://github.com/gaomd/docker-ikev2-vpn-server/issues/7 +rm -f /var/run/starter.charon.pid + # http://wiki.loopop.net/doku.php?id=server:vpn:strongswanonopenvz /usr/sbin/ipsec start --nofork