aboutsummaryrefslogtreecommitdiffstats
path: root/package/firewall/files/reflection.hotplug
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-09-05 19:03:17 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-09-05 19:03:17 +0000
commit9edcfdff2df158fc516cea5f155c5fffc016a30c (patch)
tree1895f8a402ccfdc1855ec905a8a1eb9a4115a2be /package/firewall/files/reflection.hotplug
parent6c101610bf13eb02dbbee04533324aa9b19919e1 (diff)
downloadmaster-187ad058-9edcfdff2df158fc516cea5f155c5fffc016a30c.tar.gz
master-187ad058-9edcfdff2df158fc516cea5f155c5fffc016a30c.tar.bz2
master-187ad058-9edcfdff2df158fc516cea5f155c5fffc016a30c.zip
[package] firewall: introduce SNAT support for redirect sections
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22937 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/firewall/files/reflection.hotplug')
-rw-r--r--package/firewall/files/reflection.hotplug5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/firewall/files/reflection.hotplug b/package/firewall/files/reflection.hotplug
index 6b1cd60f28..027d2ed8b1 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"