|
|
|
@ -54,10 +54,10 @@ actioncheck =
|
|
|
|
|
# Tags: See jail.conf(5) man page |
|
|
|
|
# Values: CMD |
|
|
|
|
# |
|
|
|
|
actionban = oifs=${IFS}; IFS=.;SEP_IP=( <ip> ); set -- ${SEP_IP} ;ADDRESSES=$(dig +short -t txt -q $4.$3.$2.$1.abuse-contacts.abusix.org); IFS=${oifs} |
|
|
|
|
actionban = oifs=${IFS}; IFS=.;SEP_IP=( <ip> ); set -- ${SEP_IP}; ADDRESSES=$(dig +short -t txt -q $4.$3.$2.$1.abuse-contacts.abusix.org); IFS=${oifs} |
|
|
|
|
IP=<ip> |
|
|
|
|
if [ ! -z "$ADDRESSES" ]; then |
|
|
|
|
(printf %%b "<message>\n"; date '+Note: Local timezone is %%z (%%Z)'; grep -E '(^|[^0-9])<ip>([^0-9]|$)' <logpath>) | <mailcmd> "Abuse from <ip>" <mailargs> $ADDRESSES |
|
|
|
|
(printf %%b "<message>\n"; date '+Note: Local timezone is %%z (%%Z)'; grep -E '(^|[^0-9])<ip>([^0-9]|$)' <logpath>) | <mailcmd> "Abuse from <ip>" <mailargs> ${ADDRESSES//,/\" \"} |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
# Option: actionunban |
|
|
|
|