Strongswan.note
1、L-BR-GW:
# 安装软件包:
apt install -y strongswan
# 安装附件包:
apt install -y libstrongswan-extra-pluginsvim /etc/swanctl/swanctl.conf

结尾括号


结尾括号:


结尾4个括号:


结尾两个括号
在发起端配置(只写一端,两端都写可能导致建立出现问题):


start_action = start //启动时自动连接
dpd_action = restart //定期检测,检测到对端掉线自动重连在两端读取配置:
swanctl --load-all
读取之后因为配置了start_action 就会自动连接
如果没有配置start_action,就需要使用:
swanctl --initiate -c net