[arch-general] Archlinux fail2ban not working

Ralph Corderoy ralph at inputplus.co.uk
Fri Nov 1 18:20:15 UTC 2019


Hi Maykel,

I don't use fail2ban, but I've just skimmed
https://fail2ban.readthedocs.io/en/latest/filters.html#developing-filter-regular-expressions
You may find the ‘debuggex’ reference useful.

> failregex = Unknown User .* \(<HOST>:.*\)
...
> [12:48:35.315] Server1: Unknown User 'test' (109.103.148.2)
...
> Date template hits:
> |- [# of hits] date format
> |  [6] {^LN-BEG}24hour:Minute:Second

I take that to mean it was happy with the timestamp.

> failregex = Unknown User .* \(<HOST>:.*\)

How about

    failregex = ^\S+: Unknown User .* \(<HOST>\)$

-- 
Cheers, Ralph.


More information about the arch-general mailing list