From: Michael Tremer Date: Fri, 4 Aug 2017 21:23:50 +0000 (+0000) Subject: reset: Destroy all IPsec VPN connections X-Git-Tag: 009~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f5f9014d7af0bdfd433318243fa6e598dca02c46;p=network.git reset: Destroy all IPsec VPN connections Signed-off-by: Michael Tremer --- diff --git a/src/network b/src/network index 109c1064..03c33868 100644 --- a/src/network +++ b/src/network @@ -1153,6 +1153,15 @@ cli_reset() { fi fi + # Destroy all IPsec VPN connections + local connection + for connection in $(ipsec_list_connections); do + ipsec_connection_destroy "${connection}" + done + + # Stop strongswan + ipsec_strongswan_autostart + local zone for zone in $(zones_get --all); do zone_destroy_now "${zone}"