]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
ipsecctrl: Reload IPsec block rules after connection is deleted
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 5 Apr 2017 09:33:49 +0000 (10:33 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 5 Apr 2017 09:33:49 +0000 (10:33 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/misc-progs/ipsecctrl.c

index 7499e94c9a7f384e6d0fd809203d32163cb84e96..204753640a5bea3f42f783d3bcae3f05cad9b82c 100644 (file)
@@ -173,6 +173,9 @@ void turn_connection_off (char *name) {
 
        // Reload, so the connection is dropped.
        ipsec_reload();
+
+       // Reload the IPsec block chain
+       safe_system("/usr/lib/firewall/ipsec-block >/dev/null");
 }
 
 int main(int argc, char *argv[]) {