From f5f9014d7af0bdfd433318243fa6e598dca02c46 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 4 Aug 2017 21:23:50 +0000 Subject: [PATCH] reset: Destroy all IPsec VPN connections Signed-off-by: Michael Tremer --- src/network | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/network b/src/network index 109c106..03c3386 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}" -- 2.47.3