From a11198bb80dbb4a54d72977a29adfb64da9e1b2c Mon Sep 17 00:00:00 2001 From: kev Date: Sun, 28 Jun 2015 17:14:56 +0800 Subject: [PATCH] update --- pptpd/Dockerfile | 13 ++++++++----- pptpd/Dockerfile.debian | 19 +++++++++++++++++++ pptpd/README.md | 2 ++ 3 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 pptpd/Dockerfile.debian diff --git a/pptpd/Dockerfile b/pptpd/Dockerfile index 3ec6dc6..3f631da 100644 --- a/pptpd/Dockerfile +++ b/pptpd/Dockerfile @@ -2,12 +2,12 @@ # Dockerfile for pptpd # -FROM debian:jessie +FROM alpine MAINTAINER kev -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 diff --git a/pptpd/Dockerfile.debian b/pptpd/Dockerfile.debian new file mode 100644 index 0000000..3ec6dc6 --- /dev/null +++ b/pptpd/Dockerfile.debian @@ -0,0 +1,19 @@ +# +# Dockerfile for pptpd +# + +FROM debian:jessie +MAINTAINER kev + +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 diff --git a/pptpd/README.md b/pptpd/README.md index 560aa32..a960730 100644 --- a/pptpd/README.md +++ b/pptpd/README.md @@ -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.