1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:15 +02:00
This commit is contained in:
kev 2015-05-03 21:57:07 +08:00
parent 69bd91cf9e
commit 9512950aca
2 changed files with 5 additions and 4 deletions

View File

@ -2,7 +2,7 @@
# Dockerfile for VPN (PPTP)
#
FROM debian:jessie
FROM ubuntu:14.04
MAINTAINER kev<noreply@datageek.info>
RUN apt-get update && \
@ -10,8 +10,9 @@ RUN apt-get update && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN echo "localip 192.168.128.1" >> /etc/pptpd.conf && \
echo "remoteip 192.168.128.100-200" >> /etc/pptpd.conf
RUN echo "localip 10.99.99.1" >> /etc/pptpd.conf && \
echo "remoteip 10.99.99.100-200" >> /etc/pptpd.conf && \
echo "ms-dns 8.8.8.8" >> /etc/ppp/pptpd-options
EXPOSE 1723

View File

@ -4,5 +4,5 @@ pptp:
- "1723:1723"
volumes:
- ./chap-secrets:/etc/ppp/chap-secrets
cap_add: NET_ADMIN
privileged: true
restart: always