1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

[backfire] firewall: backport SNAT support from trunk

git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@22939 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow
2010-09-05 20:37:44 +00:00
parent 45660167ee
commit b8178fe409
3 changed files with 26 additions and 6 deletions
+4 -1
View File
@@ -41,7 +41,10 @@ if [ "$ACTION" = "add" ] && [ "$INTERFACE" = "wan" ]; then
local src
config_get src "$cfg" src
[ "$src" = wan ] && {
local target
config_get target "$cfg" target
[ "$src" = wan ] && [ "${target:-DNAT}" = DNAT ] && {
local dest
config_get dest "$cfg" dest "lan"