mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 21:42:04 +02:00
[package] firewall: fix chain selection logic, option dest must be ignored for notrack targets
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23143 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
889cf1f8c3
commit
43c3b75619
@ -36,16 +36,15 @@ fw_load_rule() {
|
|||||||
|
|
||||||
local table=f
|
local table=f
|
||||||
local chain=input
|
local chain=input
|
||||||
if [ "$rule_target" == "NOTRACK" ]; then
|
local target="${rule_target:-REJECT}"
|
||||||
|
if [ "$target" == "NOTRACK" ]; then
|
||||||
table=r
|
table=r
|
||||||
chain="zone_${rule_src}_notrack"
|
chain="zone_${rule_src}_notrack"
|
||||||
elif [ -n "$rule_src" ]; then
|
else
|
||||||
chain="zone_${rule_src}${rule_dest:+_forward}"
|
[ -n "$rule_src" ] && chain="zone_${rule_src}${rule_dest:+_forward}"
|
||||||
|
[ -n "$rule_dest" ] && target="zone_${rule_dest}_${target}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local target="${rule_target:-REJECT}"
|
|
||||||
[ -n "$dest" ] && target="zone_${rule_dest}_${target}"
|
|
||||||
|
|
||||||
local mode
|
local mode
|
||||||
fw_get_family_mode mode ${rule_family:-x} $rule_src I
|
fw_get_family_mode mode ${rule_family:-x} $rule_src I
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user