知乎專欄 | 多維度架構 | 微信號 netkiller-ebook | QQ群:128659835 請註明“讀者” |
過程 43.13. install l2tpd
install
# apt-get install l2tpd
/etc/xl2tpd/xl2tpd.conf
# cp /etc/xl2tpd/xl2tpd.conf /etc/xl2tpd/xl2tpd.conf.original # vim /etc/xl2tpd/xl2tpd.conf [global] port = 1701 auth file = /etc/xl2tpd/l2tp-secrets [lns default] ip range = 192.168.3.200-192.168.3.250 local ip = 192.168.3.9 require chap = yes refuse pap = yes require authentication = yes name = vpn.example.com pppoptfile = /etc/ppp/options.l2tpd.lns
/etc/ppp/options.l2tpd.lns
vim /etc/ppp/options.l2tpd.lns ipcp-accept-local ipcp-accept-remote ms-dns 208.67.222.222 ms-dns 208.67.220.220 ms-wins 192.168.3.4 noccp auth crtscts idle 1800 mtu 1410 mru 1410 nodefaultroute debug lock proxyarp connect-delay 5000
/etc/xl2tpd/l2tp-secrets
vim /etc/xl2tpd/l2tp-secrets neo * chen *
start
/etc/init.d/xl2tpd start