1. apt install xl2tpd
2. nano /etc/xl2tpd/xl2tpd.conf
[global]
port = 1701
;auth file = /etc/xl2tpd/l2tp-secrets
;debug state = yes
[lns default]
ip range = 192.168.11.100-192.168.11.200
local ip = 192.168.11.1
require chap = yes
;require mschap = yes
refuse pap = yes
require authentication = yes
name = l2tpd
pppoptfile = /etc/ppp/options.xl2tpd
length bit = yes
;challenge = yes
3. nano /etc/ppp/options.xl2tpd
+mschap-v2
+mschap
ipcp-accept-local
ipcp-accept-remote
noccp
auth
mtu 1280
mru 1280
proxyarp
lcp-echo-failure 4
lcp-echo-interval 30
connect-delay 5000
ms-dns 8.8.8.8
ms-dns 8.8.4.4
4. /etc/init.d/xl2tpd restart
文章標籤
全站熱搜
