From a43f5b5038a93c52b5d45bcbcff78adb6410c43c Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 8 Oct 2010 12:11:55 +0000 Subject: firewall: insert SNAT and DNAT rules according to the order of the configuration file (#8052) SVN-Revision: 23318 --- package/firewall/files/lib/core_rule.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/firewall/files/lib/core_rule.sh') diff --git a/package/firewall/files/lib/core_rule.sh b/package/firewall/files/lib/core_rule.sh index a0de3ba8bb..9443eef8cf 100644 --- a/package/firewall/files/lib/core_rule.sh +++ b/package/firewall/files/lib/core_rule.sh @@ -53,7 +53,7 @@ fw_load_rule() { fw_get_negation dest_spec '-d' "${rule_dest_ip:+$rule_dest_ip/$rule_dest_ip_prefixlen}" local rule_pos - eval 'rule_pos=$((++FW__RULE_COUNT_'$mode'_'$chain'))' + eval 'rule_pos=$((++FW__RULE_COUNT_'${mode#G}'_'$chain'))' [ "$rule_proto" == "tcpudp" ] && rule_proto="tcp udp" for rule_proto in $rule_proto; do -- cgit v1.2.3