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
commite5450d5a1b84eabeec1376a4725435356a19a0d2 (patch)
tree88a17580d23ee629e53c39245958dcb5e4082ecd /package/firewall/files/reflection.hotplug
parent047f0425682a9998f012de50b538b5bcde32717f (diff)
downloadupstream-e5450d5a1b84eabeec1376a4725435356a19a0d2.tar.gz
upstream-e5450d5a1b84eabeec1376a4725435356a19a0d2.tar.bz2
upstream-e5450d5a1b84eabeec1376a4725435356a19a0d2.zip
[package] 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22888 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 || {