projects
/
openwrt
/
staging
/
pepe2k.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0017e83
)
Add destination ip of the wan adapter useful if you have multiple ip addresses.
author
Travis Kemen
<thepeople@openwrt.org>
Thu, 11 Feb 2010 02:33:34 +0000
(
02:33
+0000)
committer
Travis Kemen
<thepeople@openwrt.org>
Thu, 11 Feb 2010 02:33:34 +0000
(
02:33
+0000)
SVN-Revision: 19574
package/firewall/files/uci_firewall.sh
patch
|
blob
|
history
diff --git
a/package/firewall/files/uci_firewall.sh
b/package/firewall/files/uci_firewall.sh
index 49e5ca8595acf52425c8b67f03d5265ca78f7dc0..207dcd8df47d4dcc972279a08cc0c1ea4abdb446 100755
(executable)
--- a/
package/firewall/files/uci_firewall.sh
+++ b/
package/firewall/files/uci_firewall.sh
@@
-343,6
+343,7
@@
fw_redirect() {
config_get src $1 src
config_get src_ip $1 src_ip
+ config_get src_dip $1 src_dip
config_get src_port $1 src_port
config_get src_dport $1 src_dport
config_get src_mac $1 src_mac
@@
-372,6
+373,7
@@
fw_redirect() {
$IPTABLES -A zone_${src}_prerouting -t nat \
${proto:+-p $proto} \
${src_ip:+-s $src_ip} \
+ ${src_dip:+-d $src_dip} \
${src_port:+--sport $src_port} \
${src_dport:+--dport $src_dport} \
${src_mac:+-m mac --mac-source $src_mac} \