diff options
author | cshore <cshore@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-07-07 08:54:29 +0000 |
---|---|---|
committer | cshore <cshore@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-07-07 08:54:29 +0000 |
commit | 1dea2290d84e0fb478f2eabec3a5d7b45a0d3e8d (patch) | |
tree | 5b7d97e1129e8d9ab2ae80e3ee8d1c04847df6df | |
parent | 59e4e4f3118e48627fb696492d5f1aef76fc18f3 (diff) |
[package] firewall: fix wrong variable names for protocol command line parameter - were missed during r27500
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27507 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/firewall/files/lib/core_redirect.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/firewall/files/lib/core_redirect.sh b/package/firewall/files/lib/core_redirect.sh index a6245fad24..8d3d0b7716 100644 --- a/package/firewall/files/lib/core_redirect.sh +++ b/package/firewall/files/lib/core_redirect.sh @@ -97,7 +97,7 @@ fw_load_redirect() { fw_get_negation sm '--mac-source' "$sm" fw add $mode n $natchain $redirect_target + \ { $redirect_src_ip $redirect_dest_ip } { \ - $srcaddr $srcdaddr $redirect_proto \ + $srcaddr $srcdaddr $pr \ $srcports $srcdports \ ${sm:+-m mac $sm} \ $natopt $nataddr${natports:+:$natports} \ @@ -107,7 +107,7 @@ fw_load_redirect() { fw add $mode f ${fwdchain:-forward} ACCEPT + \ { $redirect_src_ip $redirect_dest_ip } { \ $srcaddr ${destaddr:--m conntrack --ctstate DNAT} \ - $redirect_proto \ + $pr \ $srcports $destports \ $redirect_src_mac \ $redirect_extra \ |