2013-07-17 19:19:18 +02:00
|
|
|
#
|
2016-04-05 19:13:55 +02:00
|
|
|
# Shorewall -- /usr/share/shorewall/action.AutoBLL
|
|
|
|
#
|
|
|
|
# Auto Blacklisting Logger Action
|
2013-07-17 19:19:18 +02:00
|
|
|
#
|
|
|
|
# Arguments are
|
|
|
|
#
|
2016-04-05 19:13:55 +02:00
|
|
|
# Event - Name of the blacklisted event
|
|
|
|
# Disposition - What to do with packets
|
|
|
|
# Level - Log level and optional tag for logging
|
|
|
|
#
|
2013-07-17 19:19:18 +02:00
|
|
|
###############################################################################
|
2016-04-05 19:13:55 +02:00
|
|
|
#ACTION SOURCE DEST PROTO DPORT SPORT
|
2013-07-17 19:19:18 +02:00
|
|
|
#
|
|
|
|
# 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)
|