aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-09-04 17:49:14 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-09-04 17:49:14 +0000
commit3ae9a34f6d34e14bbd22d4c55a37e72db75f7ba5 (patch)
tree724c38ab43f06a76f4581ab4fbbbdfe2af560bc5 /package
parent4d644e43c4f19a70d3fa6e09aeb3bb7d6c364cf8 (diff)
downloadupstream-3ae9a34f6d34e14bbd22d4c55a37e72db75f7ba5.tar.gz
upstream-3ae9a34f6d34e14bbd22d4c55a37e72db75f7ba5.tar.bz2
upstream-3ae9a34f6d34e14bbd22d4c55a37e72db75f7ba5.zip
[package] firewall: add option to disable NAT reflection
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22908 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/firewall/files/reflection.hotplug4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/firewall/files/reflection.hotplug b/package/firewall/files/reflection.hotplug
index dc6780a720..6b1cd60f28 100644
--- a/package/firewall/files/reflection.hotplug
+++ b/package/firewall/files/reflection.hotplug
@@ -53,6 +53,10 @@ if [ "$ACTION" = "add" ] && [ "$INTERFACE" = "wan" ]; then
local proto
config_get proto "$cfg" proto
+ local reflection
+ config_get_bool reflection "$cfg" reflection 1
+ [ "$reflection" == 1 ] || return
+
local epmin epmax extport
config_get extport "$cfg" src_dport
[ -n "$extport" ] || return