1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:36 +02:00
This commit is contained in:
kev 2015-06-28 17:14:56 +08:00
parent 06c2a33fc6
commit a11198bb80
3 changed files with 29 additions and 5 deletions

View File

@ -2,12 +2,12 @@
# Dockerfile for pptpd
#
FROM debian:jessie
FROM alpine
MAINTAINER kev<noreply@datageek.info>
RUN apt-get update \
&& apt-get install -y iptables pptpd \
&& rm -rf /var/lib/apt/lists/*
RUN apk update \
&& apk add iptables ppp pptpd \
&& rm -rf /var/cache/apk/*
COPY pptpd.conf /etc/
COPY chap-secrets /etc/ppp/
@ -16,4 +16,7 @@ COPY pptpd-options /etc/ppp/
EXPOSE 1723
CMD iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE \
&& pptpd --fg
&& syslogd \
&& pptpd \
&& sleep 0.1 \
&& tail -f /var/log/messages

19
pptpd/Dockerfile.debian Normal file
View File

@ -0,0 +1,19 @@
#
# Dockerfile for pptpd
#
FROM debian:jessie
MAINTAINER kev<noreply@datageek.info>
RUN apt-get update \
&& apt-get install -y iptables pptpd \
&& rm -rf /var/lib/apt/lists/*
COPY pptpd.conf /etc/
COPY chap-secrets /etc/ppp/
COPY pptpd-options /etc/ppp/
EXPOSE 1723
CMD iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE \
&& pptpd --fg

View File

@ -1,6 +1,8 @@
pptpd
=====
[![](https://badge.imagelayers.io/vimagick/pptpd:latest.svg)](https://imagelayers.io/?images=vimagick/pptpd:latest)
The Point-to-Point Tunneling Protocol is a method for implementing virtual private networks.
PPTP uses a control channel over TCP and a GRE tunnel operating to encapsulate PPP packets.