如题我想请教大家,如何通过 hotplug iface 实现当 wan 口已经连接的状态下实现 ipsec 的自动拨号脚本。
ipsec 的执行命令如下,如能赐教不甚感谢!!!
/etc/init.d/ipsec enable
/etc/init.d/xl2tpd enable
/etc/init.d/ipsec restart
/etc/init.d/xl2tpd restart
ipsec restart
ipsec up L2TP-PSK
ipsec statusall
echo "c strong-vpn" > /var/run/xl2tpd/l2tp-control
ipsec 的执行命令如下,如能赐教不甚感谢!!!
/etc/init.d/ipsec enable
/etc/init.d/xl2tpd enable
/etc/init.d/ipsec restart
/etc/init.d/xl2tpd restart
ipsec restart
ipsec up L2TP-PSK
ipsec statusall
echo "c strong-vpn" > /var/run/xl2tpd/l2tp-control