summaryrefslogtreecommitdiff
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
commiteb79296cc10f6168892278b4aa921566178b1f20 (patch)
treed0c316a221006e53285d7abc638e848e263febbb /package/firewall/files/reflection.hotplug
parent0c6653c6e2f5c122afee186d69cef106bae69d66 (diff)
downloadmtk-20170518-eb79296cc10f6168892278b4aa921566178b1f20.zip
mtk-20170518-eb79296cc10f6168892278b4aa921566178b1f20.tar.gz
mtk-20170518-eb79296cc10f6168892278b4aa921566178b1f20.tar.bz2
firewall: introduce SNAT support for redirect sections
SVN-Revision: 22937
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 6b1cd60..027d2ed 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"