Skip to main content

fail2ban testing

We can try to check whether our fail2ban config is sane or not with "fail2ban-regex". Here goes:

root@alhambra:/etc/fail2ban# fail2ban-regex /var/log/auth.log /etc/fail2ban/filter.d/sshd.conf


This will test you "sshd" filter with the log file that you want to parse in /var/log/auth.log

If you want to look at the line that mactched;

 fail2ban-regex /var/log/auth.log /etc/fail2ban/filter.d/sshd.conf    --print-all-matched

Comments

Popular posts from this blog

Gue dengan S2 gue. Sronok banget!

Vultr - another reliable alternative for SEA Virtual Private Server!

I have been using Vultr  as my recent VPS now, since it has just a nearby Data Center in Singapore (sadly, Malaysian VPS is always expensive.. so the best option is DC in Singapore - most of the time). It provides free trial credit for around USD5.. and +USD2 if you did a social media integration/sharing with Twitter. Try it now. Click Vultr