- [ -n "$rule_src" ] && {
- [ -z "$rule_dest" ] && {
- chain=zone_${rule_src}
- } || {
- chain=zone_${rule_src}_forward
- }
- }
+ local target="${rule_target:-REJECT}"
+ if [ "$target" == "NOTRACK" ]; then
+ table=r
+ chain="zone_${rule_src}_notrack"
+ else
+ [ -n "$rule_src" ] && chain="zone_${rule_src}${rule_dest:+_forward}"
+ [ -n "$rule_dest" ] && target="zone_${rule_dest}_${target}"
+ fi