2015-06-27 12:32:24 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for pptpd
|
|
|
|
#
|
|
|
|
|
2015-06-28 04:18:47 +02:00
|
|
|
FROM debian:jessie
|
2015-06-27 12:32:24 +02:00
|
|
|
MAINTAINER kev<noreply@datageek.info>
|
|
|
|
|
2015-06-28 04:21:57 +02:00
|
|
|
RUN apt-get update \
|
2015-06-28 05:42:35 +02:00
|
|
|
&& apt-get install -y iptables pptpd \
|
2015-06-28 04:18:47 +02:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2015-06-27 12:32:24 +02:00
|
|
|
|
2015-06-28 05:42:35 +02:00
|
|
|
COPY pptpd.conf /etc/
|
|
|
|
COPY chap-secrets /etc/ppp/
|
2015-06-28 05:12:07 +02:00
|
|
|
COPY pptpd-options /etc/ppp/
|
2015-06-27 12:32:24 +02:00
|
|
|
|
2015-06-28 06:36:09 +02:00
|
|
|
EXPOSE 1723
|
|
|
|
|
2015-06-28 05:53:23 +02:00
|
|
|
CMD iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE \
|
|
|
|
&& pptpd --fg
|