1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:31 +02:00
This commit is contained in:
kev 2015-05-03 20:41:42 +08:00
parent 00142f088b
commit 90d6652f7d
3 changed files with 31 additions and 0 deletions

20
pptp/Dockerfile Normal file
View File

@ -0,0 +1,20 @@
#
# Dockerfile for VPN (PPTP)
#
FROM debian:jessie
MAINTAINER kev<noreply@datageek.info>
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

4
pptp/chap-secrets Normal file
View File

@ -0,0 +1,4 @@
# Secrets for authentication using CHAP
# client server secret IP addresses
username * password *

7
pptp/fig.yml Normal file
View File

@ -0,0 +1,7 @@
pptp:
image: vimagick/pptp:latest
ports:
- "1723:1723"
volumes:
- ./chap-secrets:/etc/ppp/chap-secrets
restart: always