mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-19 04:49:42 +02:00
[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
This commit is contained in:
parent
59e4e4f311
commit
1dea2290d8
@ -97,7 +97,7 @@ fw_load_redirect() {
|
|||||||
fw_get_negation sm '--mac-source' "$sm"
|
fw_get_negation sm '--mac-source' "$sm"
|
||||||
fw add $mode n $natchain $redirect_target + \
|
fw add $mode n $natchain $redirect_target + \
|
||||||
{ $redirect_src_ip $redirect_dest_ip } { \
|
{ $redirect_src_ip $redirect_dest_ip } { \
|
||||||
$srcaddr $srcdaddr $redirect_proto \
|
$srcaddr $srcdaddr $pr \
|
||||||
$srcports $srcdports \
|
$srcports $srcdports \
|
||||||
${sm:+-m mac $sm} \
|
${sm:+-m mac $sm} \
|
||||||
$natopt $nataddr${natports:+:$natports} \
|
$natopt $nataddr${natports:+:$natports} \
|
||||||
@ -107,7 +107,7 @@ fw_load_redirect() {
|
|||||||
fw add $mode f ${fwdchain:-forward} ACCEPT + \
|
fw add $mode f ${fwdchain:-forward} ACCEPT + \
|
||||||
{ $redirect_src_ip $redirect_dest_ip } { \
|
{ $redirect_src_ip $redirect_dest_ip } { \
|
||||||
$srcaddr ${destaddr:--m conntrack --ctstate DNAT} \
|
$srcaddr ${destaddr:--m conntrack --ctstate DNAT} \
|
||||||
$redirect_proto \
|
$pr \
|
||||||
$srcports $destports \
|
$srcports $destports \
|
||||||
$redirect_src_mac \
|
$redirect_src_mac \
|
||||||
$redirect_extra \
|
$redirect_extra \
|
||||||
|
Loading…
Reference in New Issue
Block a user