public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH 1/2] location: Restart IPsec after firewall was restarted
@ 2020-07-28 17:18 Michael Tremer
  2020-07-28 17:18 ` [PATCH 2/2] core148: Do not update the location database straight away Michael Tremer
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Tremer @ 2020-07-28 17:18 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 725 bytes --]

strongswan creates rules in iptables which are being dropped when
the firewall is being restarted.

Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
---
 src/scripts/convert-to-location | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/scripts/convert-to-location b/src/scripts/convert-to-location
index 9149b854d..428a91d34 100755
--- a/src/scripts/convert-to-location
+++ b/src/scripts/convert-to-location
@@ -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.
-- 
2.20.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-28 17:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-28 17:18 [PATCH 1/2] location: Restart IPsec after firewall was restarted Michael Tremer
2020-07-28 17:18 ` [PATCH 2/2] core148: Do not update the location database straight away Michael Tremer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox