ipsec ikev1.note

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

1、server
apt install strongswan -y
vim /etc/ipsec.conf
man ipsec.conf   #可以查看模板
vim /etc/ipesc.secrets
systemctl restart strongswan-starter
2、client
apt install strongswan
vim /etc/ipsec.conf
vim /etc/ipsec/secrets
 
systemctl restart strongswan-starter
echo "c CLI" | tee /var/run/xl2tpd/l2tp-control
ipsec up CLI