aboutsummaryrefslogtreecommitdiffstats
path: root/package/firewall/files/reflection.hotplug
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-09-28 11:11:11 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-09-28 11:11:11 +0000
commita1a31f183184bd6a0363d5d78319aafb92f55ba8 (patch)
treeaa244a065190d76845a471481affd2c50b725852 /package/firewall/files/reflection.hotplug
parent6a335579b8e63886c2beed4aee72ab2f335a7d2e (diff)
downloadupstream-a1a31f183184bd6a0363d5d78319aafb92f55ba8.tar.gz
upstream-a1a31f183184bd6a0363d5d78319aafb92f55ba8.tar.bz2
upstream-a1a31f183184bd6a0363d5d78319aafb92f55ba8.zip
firewall: don't setup nat reflection if negations are used
SVN-Revision: 23142
Diffstat (limited to 'package/firewall/files/reflection.hotplug')
-rw-r--r--package/firewall/files/reflection.hotplug3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/firewall/files/reflection.hotplug b/package/firewall/files/reflection.hotplug
index 027d2ed8b1..b3b5e5ecce 100644
--- a/package/firewall/files/reflection.hotplug
+++ b/package/firewall/files/reflection.hotplug
@@ -82,6 +82,9 @@ if [ "$ACTION" = "add" ] && [ "$INTERFACE" = "wan" ]; then
[ "$proto" = tcpudp ] && proto="tcp udp"
+ [ "${inthost#!}" = "$inthost" ] || return 0
+ [ "${exthost#!}" = "$exthost" ] || return 0
+
local p
for p in ${proto:-tcp udp}; do
case "$p" in