diff options
author | Travis Kemen <thepeople@openwrt.org> | 2010-02-11 02:33:34 +0000 |
---|---|---|
committer | Travis Kemen <thepeople@openwrt.org> | 2010-02-11 02:33:34 +0000 |
commit | bc79d644e6b1dbd5d5794ca029b615fc947a1038 (patch) | |
tree | 345278b23dd05ea306f0d14090ebf6c07721d48b /package/firewall | |
parent | 01d66231e36256679de37e83ef791f0516de82f8 (diff) | |
download | upstream-bc79d644e6b1dbd5d5794ca029b615fc947a1038.tar.gz upstream-bc79d644e6b1dbd5d5794ca029b615fc947a1038.tar.bz2 upstream-bc79d644e6b1dbd5d5794ca029b615fc947a1038.zip |
Add destination ip of the wan adapter useful if you have multiple ip addresses.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19574 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/firewall')
-rwxr-xr-x | package/firewall/files/uci_firewall.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/package/firewall/files/uci_firewall.sh b/package/firewall/files/uci_firewall.sh index 49e5ca8595..207dcd8df4 100755 --- 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} \ |