Make action.BLACKLIST behave correctly in the blrules file.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2017-01-23 13:35:10 -08:00
parent b985654600
commit d2d11df4f6
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -1,15 +0,0 @@
#
# Shorewall -- /usr/share/shorewall/macro.blacklist
#
# This macro handles blacklisting using BLACKLIST_DISPOSITION and BLACKLIST_LOGLEVEL.
# It is usable only in the blrules file; in the rules file the action by the
# same name is invoked.
#
###############################################################################
#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST RATE USER
?if $BLACKLIST_LOGLEVEL
blacklog
?else
$BLACKLIST_DISPOSITION
?endif