If you enable PMG's webUI access from the public internet, you may notice alot of authentication failure in /var/log/daemon.log.
Setup fail2ban to block/ban suspicious authentication failure attempts.
1. Install fail2ban
2. Edit /etc/fail2ban/jail.d/defaults-debian.conf with below...
Read more
Setup fail2ban to block/ban suspicious authentication failure attempts.
Code:
Sep 13 11:39:00 pmg pmgdaemon[32409]: authentication failure; rhost=::ffff:183.253.84.171 user=root@pam msg=auth failed: Authentication failure
1. Install fail2ban
Code:
apt-get install fail2ban
2. Edit /etc/fail2ban/jail.d/defaults-debian.conf with below...
Read more