L2TP.note
1、配置l2tp Server
apt install xl2tpd ppp
vim /etc/xl2tpd/xl2tpd.conf
cd /etc/ppp
cp options options.l2tpd.lns
vim options.l2tpd.lns
cd /etc/ppp/
vim chap-secrets
systemctl restart xl2tpd2、配置client
apt install xl2tpd pppvim /etc/xl2tpd/xl2tpd.conf
vim /etc/ppp/options.l2tpd.client
# 连接
echo "c CLI" > /var/run/xl2tpd/l2tp-control
ip a