From 9faa312dbb3391ffb97516802331d86da2b2ee6b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 13 Mar 2013 15:46:30 +0000 Subject: firewall3: update to git head * Adds support for emitting hotplug events when creating and clearing zones (fixes miniupnpd) * Make NAT reflection direction configurable * Map init script stop action to flush * Map init script reload action to reload * Respect init script disabled state in hotplug handler SVN-Revision: 35998 --- package/network/config/firewall3/files/firewall.hotplug | 2 ++ package/network/config/firewall3/files/firewall.init | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'package/network/config/firewall3/files') diff --git a/package/network/config/firewall3/files/firewall.hotplug b/package/network/config/firewall3/files/firewall.hotplug index dbb98cd..34f3afe 100644 --- a/package/network/config/firewall3/files/firewall.hotplug +++ b/package/network/config/firewall3/files/firewall.hotplug @@ -2,6 +2,8 @@ [ "$ACTION" = ifup ] || exit 0 +/etc/init.d/firewall enabled || exit 0 + fw3 -q network "$INTERFACE" >/dev/null || exit 0 logger -t firewall "Reloading firewall due to ifup of $INTERFACE ($DEVICE)" diff --git a/package/network/config/firewall3/files/firewall.init b/package/network/config/firewall3/files/firewall.init index 8c1dbd9..64e3a8c 100755 --- a/package/network/config/firewall3/files/firewall.init +++ b/package/network/config/firewall3/files/firewall.init @@ -13,9 +13,13 @@ start() { } stop() { - fw3 stop + fw3 flush } restart() { fw3 restart } + +reload() { + fw3 reload +} -- cgit v1.1