[package] firewall: add option to disable NAT reflection

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22908 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Jo-Philipp Wich 2010-09-04 17:49:14 +00:00
parent 4d644e43c4
commit 3ae9a34f6d
1 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,10 @@ if [ "$ACTION" = "add" ] && [ "$INTERFACE" = "wan" ]; then
local proto local proto
config_get proto "$cfg" proto config_get proto "$cfg" proto
local reflection
config_get_bool reflection "$cfg" reflection 1
[ "$reflection" == 1 ] || return
local epmin epmax extport local epmin epmax extport
config_get extport "$cfg" src_dport config_get extport "$cfg" src_dport
[ -n "$extport" ] || return [ -n "$extport" ] || return