X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/c6d4a05eeb9a303115b012fa048003a6f516070c..750dead7922e939ee1d957cfb6b7f0ce65061067:/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"