[package] firewall: don't setup nat reflection if negations are used
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 28 Sep 2010 11:11:11 +0000 (11:11 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 28 Sep 2010 11:11:11 +0000 (11:11 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23142 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/firewall/files/reflection.hotplug

index 027d2ed..b3b5e5e 100644 (file)
@@ -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
This page took 0.023707 seconds and 4 git commands to generate.