mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
add pptpd
This commit is contained in:
parent
d993e7ddad
commit
e1c8eb764e
@ -1,21 +0,0 @@
|
||||
#
|
||||
# Dockerfile for VPN (PPTP)
|
||||
#
|
||||
|
||||
FROM ubuntu:14.04
|
||||
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 10.99.99.1" >> /etc/pptpd.conf && \
|
||||
echo "remoteip 10.99.99.100-200" >> /etc/pptpd.conf && \
|
||||
echo "ms-dns 8.8.8.8" >> /etc/ppp/pptpd-options
|
||||
|
||||
EXPOSE 1723
|
||||
|
||||
CMD iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE && \
|
||||
pptpd --fg
|
||||
|
@ -1,4 +0,0 @@
|
||||
# PPTP VPN
|
||||
|
||||
This is still a work in progress, a successful connection has not been made.
|
||||
|
23
pptpd/Dockerfile
Normal file
23
pptpd/Dockerfile
Normal file
@ -0,0 +1,23 @@
|
||||
#
|
||||
# Dockerfile for pptpd
|
||||
#
|
||||
|
||||
FROM alpine
|
||||
MAINTAINER kev<noreply@datageek.info>
|
||||
|
||||
RUN apk add -U iptables \
|
||||
ppp \
|
||||
pptpd \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
RUN echo "username * password *" >> /etc/ppp/chap-secrets \
|
||||
&& echo "localip 10.10.10.1" >> /etc/pptpd.conf \
|
||||
&& echo "remoteip 10.10.10.2-254" >> /etc/pptpd.conf \
|
||||
&& echo "ms-dns 8.8.8.8" >> /etc/ppp/pptpd-options \
|
||||
&& echo "ms-dns 8.8.4.4" >> /etc/ppp/pptpd-options
|
||||
|
||||
EXPOSE 1723
|
||||
|
||||
CMD iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE \
|
||||
&& pptpd --fg --logwtmp
|
||||
|
10
pptpd/README.md
Normal file
10
pptpd/README.md
Normal file
@ -0,0 +1,10 @@
|
||||
pptpd
|
||||
=====
|
||||
|
||||
This is still a work in progress, a successful connection has not been made.
|
||||
|
||||
You must open the following ports:
|
||||
|
||||
- To allow PPTP tunnel maintenance traffic, open `1723/tcp`.
|
||||
- To allow PPTP tunneled data to pass through router, open `Protocol 47`.
|
||||
|
Loading…
Reference in New Issue
Block a user