Boone Putney bio photo

Boone Putney

Software Development
Random Musings
Austin, Texas

HumanPlanet Soleer

Email LinkedIn Github

Disabling LFD Notifications in WHM

When administrating a server, I prefer to focus on meaningful log messages. If too many alerts are coming through, the important messages can be lost in the struggle. On one of our servers, there was a high volume of lfd perm block notifications. Email notifications similar to:

Subject: lfd on host.thegillagency.com: blocked 190.179.171.170 (AR/Argentina/190-179-171-170.speedy.com.ar)

Time:     Tue Jan 10 15:50:12 2017 -0500
IP:       190.179.171.170 (AR/Argentina/190-179-171-170.speedy.com.ar)
Failures: 5 (sshd)
Interval: 3600 seconds
Blocked:  Permanent Block

Log entries:

Jan 10 15:49:55 host sshd[2159]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=190.179.171.170  user=root
Jan 10 15:49:57 host sshd[2159]: Failed password for root from 190.179.171.170 port 48435 ssh2
Jan 10 15:49:59 host sshd[2159]: Failed password for root from 190.179.171.170 port 48435 ssh2
Jan 10 15:50:01 host sshd[2159]: Failed password for root from 190.179.171.170 port 48435 ssh2
Jan 10 15:50:10 host sshd[2178]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=190.179.171.170  user=root

Resolution

This is how to disable these messages within WHM/Cpanel.

  1. Login to WHM
  2. Search for/navigation to: Plugins > ConfigServer Security & Firewall
  3. Click on “ConfigServer Firewall” Tab
  4. Click on “Firewall Configuration” button
  5. Search within the page for “LF_PERMBLOCK_ALERT”
  6. Set to “Off”
  7. Click “Change” at bottom of the page
  8. Click “Restart csf+lfd” to restart services