In order to improve the speed at which we can block brute forcers attacks, we
invite server admins to send their syslog authentication logs to us. We will then
parse them and once a confidence level is reached, the external IPs attackers will be blocked at the firewall for a period of 24 hours, which will help protect the entire
university.
For ubuntu specifically (amend for other syslog implementations that
dont log auth,authpriv to /var/log/auth.log)
Step 1 : add the following to the end of /etc/rsyslog.conf
#send auth stuff to event.insrv
$ModLoad imfile
$InputFileName /var/log/auth.log
$InputFileTag authd
$InputFileStateFile stat-authd
$InputFileSeverity info
$InputFileFacility local5
$InputRunFileMonitor
local5.* @10.239.111.135
Step 2 : Append local5.none to line ending -/var/log/syslog in the file /etc/rsyslog.d/50-default.conf
e.g. From*.*;auth,authpriv.none -/var/log/syslog
To *.*;auth,authpriv.none,local5.none -/var/log/syslog
Step 3 : Restart syslog.