mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 08:21:14 +00:00
Add destination ip of the wan adapter useful if you have multiple ip addresses.
SVN-Revision: 19574
This commit is contained in:
parent
0017e832cc
commit
9f3a73d9e2
@ -343,6 +343,7 @@ fw_redirect() {
|
|||||||
|
|
||||||
config_get src $1 src
|
config_get src $1 src
|
||||||
config_get src_ip $1 src_ip
|
config_get src_ip $1 src_ip
|
||||||
|
config_get src_dip $1 src_dip
|
||||||
config_get src_port $1 src_port
|
config_get src_port $1 src_port
|
||||||
config_get src_dport $1 src_dport
|
config_get src_dport $1 src_dport
|
||||||
config_get src_mac $1 src_mac
|
config_get src_mac $1 src_mac
|
||||||
@ -372,6 +373,7 @@ fw_redirect() {
|
|||||||
$IPTABLES -A zone_${src}_prerouting -t nat \
|
$IPTABLES -A zone_${src}_prerouting -t nat \
|
||||||
${proto:+-p $proto} \
|
${proto:+-p $proto} \
|
||||||
${src_ip:+-s $src_ip} \
|
${src_ip:+-s $src_ip} \
|
||||||
|
${src_dip:+-d $src_dip} \
|
||||||
${src_port:+--sport $src_port} \
|
${src_port:+--sport $src_port} \
|
||||||
${src_dport:+--dport $src_dport} \
|
${src_dport:+--dport $src_dport} \
|
||||||
${src_mac:+-m mac --mac-source $src_mac} \
|
${src_mac:+-m mac --mac-source $src_mac} \
|
||||||
|
Loading…
Reference in New Issue
Block a user