Choose “Save as PDF” as the destination to download this doc.

Back to the doc
Hyyat Host

How to Fix “RESTRICT_SYSLOG is disabled” in CSF

whm/cpanel control panels  ·  https://www.hyyat.com/en/knowledgebase/fix-restrict-syslog-csf-warning/

In short: The warning "RESTRICT_SYSLOG is disabled" appears in ConfigServer Security & Firewall (CSF) after installation. Fix it by setting RESTRICT_SYSLOG = 3, either in WHM under Plugins → ConfigServer Security & Firewall → Firewall Configuration, or in /etc/csf/csf.conf over SSH, then restart CSF.

The full warning shown when you open CSF is:

WARNING: RESTRICT_SYSLOG is disabled. See SECURITY WARNING in Firewall Configuration

Fix from WHM

  1. Log in to WHM at https://your-server-hostname:2087 (or https://your-server-IP:2087). Using the hostname is better.

    login WHM

  2. Go to Home → Plugins.

    Home Plugins

  3. Click ConfigServer Security & Firewall.

    انقر على الخيار "ConfigServer Security & Firewall"

  4. Click Firewall Configuration.

    انقر على الخيار "Firewall Configuration"

  5. Find RESTRICT_SYSLOG and set it to 3.

    نبحث عن  RESTRICT_SYSLOG ونحدد القيمه علي 3

  6. Scroll down and click Change.

    نضغط علي cahnge

  7. Click Restart csf+lfd, then Return.

    نقوم بالضغط علي "restart csf+ifd"

Fix over SSH

  1. Connect to the server over SSH.
  2. Open the CSF configuration file:
    nano /etc/csf/csf.conf
  3. Find the line RESTRICT_SYSLOG = "0" and change it to RESTRICT_SYSLOG = "3".
  4. Save the file and restart CSF and LFD:
    csf -ra

What does 3 mean? It restricts access to the syslog/rsyslog socket to members of the RESTRICT_SYSLOG_GROUP, which is the setting CSF recommends.

Related service: server management and security from Hyyat Host, with support that replies within 24 hours.

Related guides