diff --git a/pptp/Dockerfile b/pptp/Dockerfile new file mode 100644 index 0000000..3520c14 --- /dev/null +++ b/pptp/Dockerfile @@ -0,0 +1,20 @@ +# +# Dockerfile for VPN (PPTP) +# + +FROM debian:jessie +MAINTAINER kev + +RUN apt-get update && \ + apt-get install -y iptables pptpd && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + +RUN echo "localip 192.168.128.1" >> /etc/pptpd.conf && \ + echo "remoteip 192.168.128.100-200" >> /etc/pptpd.conf + +EXPOSE 1723 + +CMD iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE && \ + pptpd --fg + diff --git a/pptp/chap-secrets b/pptp/chap-secrets new file mode 100644 index 0000000..bf2b248 --- /dev/null +++ b/pptp/chap-secrets @@ -0,0 +1,4 @@ +# Secrets for authentication using CHAP +# client server secret IP addresses + +username * password * diff --git a/pptp/fig.yml b/pptp/fig.yml new file mode 100644 index 0000000..8f536a9 --- /dev/null +++ b/pptp/fig.yml @@ -0,0 +1,7 @@ +pptp: + image: vimagick/pptp:latest + ports: + - "1723:1723" + volumes: + - ./chap-secrets:/etc/ppp/chap-secrets + restart: always