Fix bug in blacklist logging

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@381 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2002-12-22 05:26:20 +00:00
parent 0ca8649e7b
commit 6ec62fd189

View File

@ -2960,14 +2960,16 @@ setup_intrazone() # $1 = zone
# #
add_blacklist_rule() { add_blacklist_rule() {
if [ -n "$BLACKLIST_LOGLEVEL" ]; then if [ -n "$BLACKLIST_LOGLEVEL" ]; then
run_iptables2 -A blacklst $source $proto $dport -j \ if [ "$BLACKLIST_LOGLEVEL" = ULOG ]; then
ULOG $LOGPARMS --ulog-prefix \ run_iptables2 -A blacklst $source $proto $dport -j \
"Shorewall:blacklst:$BLACKLIST_DISPOSITION:" ULOG $LOGPARMS --ulog-prefix \
else "Shorewall:blacklst:$BLACKLIST_DISPOSITION:"
run_iptables2 -A blacklst $source $proto $dport -j \ else
LOG $LOGPARMS --log-prefix \ run_iptables2 -A blacklst $source $proto $dport -j \
"Shorewall:blacklst:$BLACKLIST_DISPOSITION:" \ LOG $LOGPARMS --log-prefix \
--log-level $BLACKLIST_LOGLEVEL "Shorewall:blacklst:$BLACKLIST_DISPOSITION:" \
--log-level $BLACKLIST_LOGLEVEL
fi
fi fi
run_iptables2 -A blacklst $source $proto $dport -j $disposition run_iptables2 -A blacklst $source $proto $dport -j $disposition