Initial commit.

This commit is contained in:
yohan 2019-11-25 17:06:57 +01:00
commit 7fb644d3e7
4 changed files with 39 additions and 0 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM debian:buster
MAINTAINER yohan <783b8c87@scimetis.net>
ENV DEBIAN_FRONTEND noninteractive
ENV TZ Europe/Paris
RUN apt-get update && apt-get -y install xl2tpd
COPY xl2tpd.conf /etc/xl2tpd/
COPY options.l2tpd /etc/ppp/
COPY route.sh /etc/ppp/ip-pre-up
RUN chmod +x /etc/ppp/ip-pre-up
RUN mkdir -p /var/run/xl2tpd/
ENTRYPOINT ["/usr/sbin/xl2tpd", "-D"]

12
options.l2tpd Normal file
View File

@ -0,0 +1,12 @@
ipcp-accept-local
ipcp-accept-remote
noccp
noauth
idle 1800
mtu 1410
mru 1410
nodefaultroute
usepeerdns
debug
connect-delay 5000
logfile /dev/stdout

4
route.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
ip route change default via 172.31.1.2
ip route add 192.168.1.0/24 via 172.31.1.1 dev eth0

12
xl2tpd.conf Normal file
View File

@ -0,0 +1,12 @@
[global]
access control = no
[lac test]
lns = 192.168.1.1
require authentication = no
name = LinuxVPNserver
ppp debug = yes
length bit = yes
redial = yes
autodial = yes
pppoptfile = /etc/ppp/options.l2tpd ; ppp options file for this lac