1
0
mirror of https://gitlab.com/shorewall/code.git synced 2024-12-27 00:29:02 +01:00
shorewall_code/Shorewall/action.AutoBLL
Tom Eastep 00d3a94bfd Make all actions FORMAT-2
Signed-off-by: Tom Eastep <teastep@shorewall.net>
2014-05-09 09:01:29 -07:00

22 lines
491 B
Plaintext

#
# Shorewall version 4 - Auto Blacklisting Logger Action
#
# Arguments are
#
# Event: Name of the blacklisted event
# Disposition: What to do with packets
# Level: Log level and optional tag for logging.
###############################################################################
?format 2
#TARGET SOURCE DEST PROTO DPORT SPORT
#
# Log the Reject
#
?if "$3" ne 'none'
LOG:$3
?endif
#
# And set the AutoBL Event for the SOURCE IP address
#
SetEvent(${1}_BL,$2,src)