diff options
author | Daniel Dickinson <crazycshore@gmail.com> | 2011-07-07 08:54:29 +0000 |
---|---|---|
committer | Daniel Dickinson <crazycshore@gmail.com> | 2011-07-07 08:54:29 +0000 |
commit | c8531fca5dc1869914ec319a6ecc66e7accfebaa (patch) | |
tree | b72e7e8ae8bda87d2e03f8d98095c3e3c587caa4 | |
parent | 0d8b0e937de3440836666cee85be4b0b44fbb59b (diff) | |
download | upstream-c8531fca5dc1869914ec319a6ecc66e7accfebaa.tar.gz upstream-c8531fca5dc1869914ec319a6ecc66e7accfebaa.tar.bz2 upstream-c8531fca5dc1869914ec319a6ecc66e7accfebaa.zip |
firewall: fix wrong variable names for protocol command line parameter - were missed during r27500
SVN-Revision: 27507
-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 \ |