aboutsummaryrefslogtreecommitdiffstats
path: root/package/firewall/files/reflection.hotplug
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-09-04 15:49:13 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-09-04 15:49:13 +0000
commitca5bf9e291d7ba8cbd6bd287cec22298809fba81 (patch)
tree7b12789be106bf1f7688b2f3926cfb00d23c13cf /package/firewall/files/reflection.hotplug
parent3e747a7f7534d1c7a5ac1b8e58b99a2585cac0c9 (diff)
downloadupstream-ca5bf9e291d7ba8cbd6bd287cec22298809fba81.tar.gz
upstream-ca5bf9e291d7ba8cbd6bd287cec22298809fba81.tar.bz2
upstream-ca5bf9e291d7ba8cbd6bd287cec22298809fba81.zip
firewall: - handle NAT reflection in firewall hotplug, solves synchronizing issues on boot - introduce masq_src and masq_dest options to limit zone masq to specific ip ranges, supports multiple subnets and negation
SVN-Revision: 22888
Diffstat (limited to 'package/firewall/files/reflection.hotplug')
-rw-r--r--package/firewall/files/reflection.hotplug2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/firewall/files/reflection.hotplug b/package/firewall/files/reflection.hotplug
index af88fe0243..dc6780a720 100644
--- a/package/firewall/files/reflection.hotplug
+++ b/package/firewall/files/reflection.hotplug
@@ -2,7 +2,7 @@
. /etc/functions.sh
-if [ "$ACTION" = "ifup" ] && [ "$INTERFACE" = "wan" ]; then
+if [ "$ACTION" = "add" ] && [ "$INTERFACE" = "wan" ]; then
local wanip=$(uci -P/var/state get network.wan.ipaddr)
iptables -t nat -F nat_reflection_in 2>/dev/null || {