mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
location: Restart IPsec after firewall was restarted
strongswan creates rules in iptables which are being dropped when the firewall is being restarted. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
4ddc1aea08
commit
2ae1c23f62
@@ -47,6 +47,11 @@ if [ -f "$FW_CONF_DIR/geoipblock" ]; then
|
||||
|
||||
# Regenerate firewall chains.
|
||||
/etc/init.d/firewall restart
|
||||
|
||||
# Restart IPsec for dropped iptables rules
|
||||
if grep -q "ENABLED=on" /var/ipfire/vpn/settings; then
|
||||
/etc/init.d/ipsec restart
|
||||
fi
|
||||
fi
|
||||
|
||||
# Finished.
|
||||
|
||||
Reference in New Issue
Block a user