mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-06-06 23:26:17 +02:00
update
This commit is contained in:
parent
06c2a33fc6
commit
a11198bb80
@ -2,12 +2,12 @@
|
|||||||
# Dockerfile for pptpd
|
# Dockerfile for pptpd
|
||||||
#
|
#
|
||||||
|
|
||||||
FROM debian:jessie
|
FROM alpine
|
||||||
MAINTAINER kev<noreply@datageek.info>
|
MAINTAINER kev<noreply@datageek.info>
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apk update \
|
||||||
&& apt-get install -y iptables pptpd \
|
&& apk add iptables ppp pptpd \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
COPY pptpd.conf /etc/
|
COPY pptpd.conf /etc/
|
||||||
COPY chap-secrets /etc/ppp/
|
COPY chap-secrets /etc/ppp/
|
||||||
@ -16,4 +16,7 @@ COPY pptpd-options /etc/ppp/
|
|||||||
EXPOSE 1723
|
EXPOSE 1723
|
||||||
|
|
||||||
CMD iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE \
|
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
19
pptpd/Dockerfile.debian
Normal 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
|
@ -1,6 +1,8 @@
|
|||||||
pptpd
|
pptpd
|
||||||
=====
|
=====
|
||||||
|
|
||||||
|
[](https://imagelayers.io/?images=vimagick/pptpd:latest)
|
||||||
|
|
||||||
The Point-to-Point Tunneling Protocol is a method for implementing virtual private networks.
|
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.
|
PPTP uses a control channel over TCP and a GRE tunnel operating to encapsulate PPP packets.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user