mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:31 +02:00
pptp
This commit is contained in:
parent
00142f088b
commit
90d6652f7d
20
pptp/Dockerfile
Normal file
20
pptp/Dockerfile
Normal 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
4
pptp/chap-secrets
Normal file
@ -0,0 +1,4 @@
|
||||
# Secrets for authentication using CHAP
|
||||
# client server secret IP addresses
|
||||
|
||||
username * password *
|
7
pptp/fig.yml
Normal file
7
pptp/fig.yml
Normal file
@ -0,0 +1,7 @@
|
||||
pptp:
|
||||
image: vimagick/pptp:latest
|
||||
ports:
|
||||
- "1723:1723"
|
||||
volumes:
|
||||
- ./chap-secrets:/etc/ppp/chap-secrets
|
||||
restart: always
|
Loading…
Reference in New Issue
Block a user