From: Jo-Philipp Wich Date: Tue, 28 Sep 2010 11:11:11 +0000 (+0000) Subject: firewall: don't setup nat reflection if negations are used X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a1a31f183184bd6a0363d5d78319aafb92f55ba8;p=librecmc%2Flibrecmc.git firewall: don't setup nat reflection if negations are used SVN-Revision: 23142 --- diff --git a/package/firewall/files/reflection.hotplug b/package/firewall/files/reflection.hotplug index 027d2ed8b1..b3b5e5ecce 100644 --- a/package/firewall/files/reflection.hotplug +++ b/package/firewall/files/reflection.hotplug @@ -82,6 +82,9 @@ if [ "$ACTION" = "add" ] && [ "$INTERFACE" = "wan" ]; then [ "$proto" = tcpudp ] && proto="tcp udp" + [ "${inthost#!}" = "$inthost" ] || return 0 + [ "${exthost#!}" = "$exthost" ] || return 0 + local p for p in ${proto:-tcp udp}; do case "$p" in