]> git.ipfire.org Git - people/ms/network.git/commitdiff
reset: Destroy all IPsec VPN connections
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 4 Aug 2017 21:23:50 +0000 (21:23 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 4 Aug 2017 21:23:50 +0000 (21:23 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/network

index 109c10640d204d880b455954b630b4ae227523c2..03c338680f319c35fe413db0267aeda38cd3a246 100644 (file)
@@ -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}"