diff --git a/config/action.d/xarf-login-attack.conf b/config/action.d/xarf-login-attack.conf new file mode 100644 index 00000000..bbc97ea8 --- /dev/null +++ b/config/action.d/xarf-login-attack.conf @@ -0,0 +1,88 @@ +# Fail2Ban action for sending xarf Login-Attack messages to IP owner +# +# This requires querycontact ( http://pypi.python.org/pypi/querycontacts/ ) +# sudo pip install querycontacts +# +# This uses the https://abusix.com/contactdb.html to lookup abuse contacts. +# +# +# XARF is a specification for sending a formatted response +# for non-messaging based abuse including: +# +# Login-Attack, Malware-Attack, Fraud (Phishing, etc.), Info DNSBL +# +# For details see: +# https://github.com/abusix/xarf-specification +# http://www.x-arf.org/schemata.html +# +# +# Based on complain written by Russell Odom +# +# + +[Definition] + +actionstart = + +actionstop = + +actioncheck = + +actionban = ADDRESSES=`querycontacts ` + IP= + FROM= + SERVICE= + FAILURES= + MATCHES= + DATE=`LC_TIME=C date -u --date=@