请参考链接: https://programmersought.com/article/79624095048/
一键安装脚本,请参考
1 |
wget https://git.io/vpnsetup-centos -O vpnsetup.sh && sudo sh vpnsetup.sh |
git.io网络不通,centos 7 8 请使用wget http://download.zhufunin.com/l2tp/vpnsetup-centos -O vpnsetup.sh && sudo sh vpnsetup.sh
ubuntu 使用wget http://download.zhufunin.com/l2tp/vpnsetup-ubuntu -O vpnsetup.sh && sudo sh vpnsetup.sh
ubuntu上的l2tp安装教程,请参考 https://linuxscriptshub.com/configure-l2tp-ipsec-vpn-ubuntu-1604/
1) 设置共享密钥的配置文件:/etc/ipsec.secrets
2) 设置用户名和密码的配置文件:/etc/ppp/chap-secrets
服务重启的命令
1 2 |
service ipsec restart service xl2tpd restart |
https://linuxscriptshub.com/authenticate-l2tp-ipsec-freeradius/
from:https://www.cnblogs.com/faberbeta/p/15071772.html