diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-09-28 11:11:11 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-09-28 11:11:11 +0000 |
commit | 96be565c54dfee0b6116f89b8e365a8020f10525 (patch) | |
tree | f6c18a02b362e2c42bd0c42452f678b646bc6eeb | |
parent | 5baf4fe290301a7ac39a3a82df4e91446c6d726d (diff) | |
download | upstream-96be565c54dfee0b6116f89b8e365a8020f10525.tar.gz upstream-96be565c54dfee0b6116f89b8e365a8020f10525.tar.bz2 upstream-96be565c54dfee0b6116f89b8e365a8020f10525.zip |
[package] firewall: don't setup nat reflection if negations are used
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23142 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/firewall/files/reflection.hotplug | 3 |
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 |