L2TP.note

noteId: EBBA66110B96499998C34A6CFC53F871 · 原始路径:/ALL/Linux - A模块/服务配置/VPN合集(openvpn、l2tp、wireguard)/L2TP(UDP 1701)/L2TP.note · 图片:6 · 附件待处理:0

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 xl2tpd
2、配置client
apt install xl2tpd ppp
vim /etc/xl2tpd/xl2tpd.conf
vim /etc/ppp/options.l2tpd.client
 
# 连接
echo "c CLI" > /var/run/xl2tpd/l2tp-control
ip a