diff --git a/Shorewall2/firewall b/Shorewall2/firewall index 25633f900..fc038543a 100755 --- a/Shorewall2/firewall +++ b/Shorewall2/firewall @@ -4660,11 +4660,13 @@ process_rule() # $1 = target expandv logtag fi - if [ "$loglevel" = none ]; then - [ "$target" = LOG ] && return - loglevel= - logtag= - fi + case $loglevel in + none*) + loglevel= + logtag= + [ $target = LOG ] && return + ;; + esac loglevel=${loglevel%\!} fi