From 750dead7922e939ee1d957cfb6b7f0ce65061067 Mon Sep 17 00:00:00 2001 From: jow Date: Sun, 5 Sep 2010 19:03:17 +0000 Subject: [package] firewall: introduce SNAT support for redirect sections git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22937 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/firewall/files/reflection.hotplug | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'package/firewall/files/reflection.hotplug') diff --git a/package/firewall/files/reflection.hotplug b/package/firewall/files/reflection.hotplug index 6b1cd60f2..027d2ed8b 100644 --- a/package/firewall/files/reflection.hotplug +++ b/package/firewall/files/reflection.hotplug @@ -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 DNAT + + [ "$src" = wan ] && [ "$target" = DNAT ] && { local dest config_get dest "$cfg" dest "lan" -- cgit v1.2.3