2015-06-27 18:32:24 +08:00
|
|
|
#
|
|
|
|
# Dockerfile for pptpd
|
|
|
|
#
|
|
|
|
|
2015-06-28 17:14:56 +08:00
|
|
|
FROM alpine
|
2015-06-27 18:32:24 +08:00
|
|
|
MAINTAINER kev<noreply@datageek.info>
|
|
|
|
|
2015-06-28 17:14:56 +08:00
|
|
|
RUN apk update \
|
|
|
|
&& apk add iptables ppp pptpd \
|
|
|
|
&& rm -rf /var/cache/apk/*
|
2015-06-27 18:32:24 +08:00
|
|
|
|
2015-06-28 11:42:35 +08:00
|
|
|
COPY pptpd.conf /etc/
|
|
|
|
COPY chap-secrets /etc/ppp/
|
2015-06-28 11:12:07 +08:00
|
|
|
COPY pptpd-options /etc/ppp/
|
2015-06-27 18:32:24 +08:00
|
|
|
|
2015-06-28 12:36:09 +08:00
|
|
|
EXPOSE 1723
|
|
|
|
|
2015-06-28 11:53:23 +08:00
|
|
|
CMD iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE \
|
2015-06-28 17:14:56 +08:00
|
|
|
&& pptpd \
|
2015-06-29 03:57:52 +08:00
|
|
|
&& syslogd -n -O /dev/stdout
|