Initial commit.
This commit is contained in:
commit
7fb644d3e7
11
Dockerfile
Normal file
11
Dockerfile
Normal 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
12
options.l2tpd
Normal 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
4
route.sh
Normal 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
12
xl2tpd.conf
Normal 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
|
Loading…
Reference in New Issue
Block a user