]> git.ipfire.org Git - people/ms/network.git/blobdiff - src/network
reset: Destroy all IPsec VPN connections
[people/ms/network.git] / 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}"