Help Docs Security Overview Firewall Management What Is the Login Failure Daemon (LFD)?

What Is the Login Failure Daemon (LFD)?

The Login Failure Daemon (LFD) monitors and blocks brute-force login attempts on your server. WHM allows you to configure and track LFD settings.

Login Failure Daemon or LFD, periodically checks for brute-force login attempts and if found, will block the IP address attempting to attack your server. WHM provides you with control over the LFD settings and provides you with ways to monitor login attempts to help avoid a brute force attack. This tutorial will walk you through the LFD settings in WHM.

LFD Statistics

  1. To locate LFD statistics in WHM, click on the Plugins link on the home page of WHM.
    plugin link on whm homepage
  2. From here, select ConfigServer Security & Firewall.
    CSF link on Plugin homepage
  3. In the Server Information section, you can view your LFD Statistics.
    View lfd Statistics button
  4. This tells you:
    • How many IP’s were blocked in the last 24 hours.
      graph of ips blocked in 24 hours
    • IP Blocks by LFD in the last 30 days.
      30 day ip block graph
    • Blocks and block triggers in the last 12 months.
      12 month ip block and trigger graph
    • The total top 30 country code blocks by LFD.
      top 30 country blocks

These statistics can help you decide if you want to block IP addresses from specific countries, check your logs to see if you are experiencing a brute-force attack and determine if you need to increase security on your server.

LFD Settings

  1. The LFD – Login Failure Daemon section of CSF allows you to view statuses and edit the configuration.
    lfd tab overview
  2. LFD Status will show you the details of the lfd.service and if it is currently running. You will also see warnings if any part of the service is not working or unresponsive.
    lfd status section
  3. After changing the configuration of LFD, it is recommended that you restart the service. Click lfd Restart from the lfd section of CSF.
    lfd restart screen
  4. You can edit the Dynamic DNS file (csf.dyndns) and allow all listed domains to be allowed through the firewall.
    csf dynamic dns file
  5. LFD provides alert emails for alerts and tracking of login attempts and failures. You can edit the email templates to include additional information or have specific information omitted that is not necessary. Click on the drop-down menu to choose the alert text to change.
    lfd alerts drop down
  6. The LFD Syslog Users file (/etc/csf/csf.syslogusers) contains usernames allowed to log via syslog/rsyslog. All the users that exist on the server listed here will be added to the system group. You can add accounts that log through syslog that are not listed but you need to have them listed.
    lfd syslog users file

Warning:

Only add user accounts and/or the default apache account (nobody) if absolutely necessary, otherwise you will compromise the effectiveness of the csf.syslogusers file.
Was this article helpful?