firewall: introduce SNAT support for redirect sections

SVN-Revision: 22937
This commit is contained in:
Jo-Philipp Wich
2010-09-05 19:03:17 +00:00
parent 0c6653c6e2
commit eb79296cc1
3 changed files with 19 additions and 4 deletions

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 DNAT
[ "$src" = wan ] && [ "$target" = DNAT ] && {
local dest
config_get dest "$cfg" dest "lan"