ipsec-interfaces: Apply static routes (again) after creating IPsec interfaces
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 18 Mar 2019 15:24:56 +0000 (15:24 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 18 Mar 2019 15:25:48 +0000 (15:25 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/core/130/filelists/files
src/scripts/ipsec-interfaces

index d33ede1..b9649b9 100644 (file)
@@ -12,6 +12,7 @@ srv/web/ipfire/cgi-bin/aliases.cgi
 srv/web/ipfire/cgi-bin/ids.cgi
 srv/web/ipfire/cgi-bin/logs.cgi/ids.dat
 srv/web/ipfire/cgi-bin/logs.cgi/log.dat
+usr/local/bin/ipsec-interfaces
 usr/local/bin/suricatactrl
 usr/local/bin/update-ids-ruleset
 usr/sbin/convert-snort
index 0e43fcc..cb55fdf 100644 (file)
@@ -167,6 +167,9 @@ main() {
                log "Deleting interface ${intf}"
                ip link del "${intf}" &>/dev/null
        done
+
+       # (Re-)Apply all static routes
+       /etc/init.d/static-routes start
 }
 
 main || exit $?