2015-06-27 12:32:24 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for pptpd
|
|
|
|
#
|
|
|
|
|
2015-06-28 11:14:56 +02:00
|
|
|
FROM alpine
|
2017-05-08 01:05:07 +02:00
|
|
|
MAINTAINER kev <noreply@easypi.pro>
|
2015-06-27 12:32:24 +02:00
|
|
|
|
2016-06-28 11:28:49 +02:00
|
|
|
RUN apk add --no-cache iptables ppp pptpd
|
2015-06-27 12:32:24 +02:00
|
|
|
|
2018-03-15 15:31:37 +02:00
|
|
|
COPY ./data/pptpd.conf /etc/
|
|
|
|
COPY ./data/chap-secrets /etc/ppp/
|
|
|
|
COPY ./data/pptpd-options /etc/ppp/
|
2015-06-27 12:32:24 +02:00
|
|
|
|
2015-06-28 06:36:09 +02:00
|
|
|
EXPOSE 1723
|
|
|
|
|
2016-02-23 09:52:04 +02:00
|
|
|
CMD set -xe \
|
|
|
|
&& iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE \
|
2015-06-28 11:14:56 +02:00
|
|
|
&& pptpd \
|
2015-06-28 21:57:52 +02:00
|
|
|
&& syslogd -n -O /dev/stdout
|