fail2ban

fail2ban I’m using fail2ban to block script kiddies. Here is one line what you will find in your auth.log May 11 05:32:14 srv01 sshd[79609]: Invalid user postgres from 37.49.226.178 port 46504 This description can help you how to install and configure fail2ban I will update this post with new infos. Installation - Ubuntu / Debian sudo apt-get update sudo apt-get upgrade sudo apt-get install fail2ban Installation FreeBSD sudo pkg install py37-fail2ban Configuration Configuration Ubuntu / Devian cd /etc/fail2ban sudo vi jail.local This configuration is for the sshd daemon. If a user fails to connect three times (maxretry = 3) within 24 hours (findtime = 24h) to login via ssh, he will get banned indefinitely (bantime = -1). ...

May 12, 2020 · 4 min · pixelchrome