apt-get install xl2tpd ppp lsof
service xl2tpd restart
#debug
tail -f /var/log/syslog
.
vim /etc/xl2tpd/xl2tpd.conf
[lns default]
ip range = 192.168.88.100-200
local ip = 192.168.88.1
require chap = yes
refuse pap = yes
require authentication = yes
name = LinuxVPNserver
ppp debug = yes
pppoptfile = /etc/ppp/options.xl2tpd
length bit = yes
.
.
vim /etc/ppp/options.xl2tpd
ipcp-accept-local
ipcp-accept-remote
ms-dns 8.8.8.8
noccp
auth
idle 1800
mtu 1410
mtu 1410
nodefaultroute
debug
proxyarp
connect-delay 5000