Skip to content

Troubleshooting › Dependencies

This page provides an overview of common dependency-related errors and issues that may occur during the installation or use of ConfigServer Firewall.


Introduction

By default, when ConfigServer Firewall starts, it automatically checks that the following dependencies are installed on your system:

my @binaries = (
    "IPTABLES",
    "IPTABLES_SAVE",
    "IPTABLES_RESTORE",
    "MODPROBE",
    "SENDMAIL",
    "PS",
    "VMSTAT",
    "LS",
    "MD5SUM",
    "TAR",
    "CHATTR",
    "UNZIP",
    "GUNZIP",
    "DD",
    "TAIL",
    "GREP",
    "HOST"
);


Note: Sendmail Binary

The dependency SENDMAIL will be skipped if you have the setting LF_ALERT_SMTP enabled in your /etc/csf/csf.conf.


If you have enabled the setting IPV6 in your /etc/csf/csf.conf, the following dependencies will be loaded:

  • IP6TABLES
  • IP6TABLES_SAVE
  • IP6TABLES_RESTORE


If you have enabled the setting LF_IPSET in your /etc/csf/csf.conf, the following dependencies will be loaded:

  • IPSET


If you have enabled the settings IP or IFCONFIG in your /etc/csf/csf.conf, the following dependencies will be loaded:

  • IP
  • IFCONFIG


Most dependencies are automatically installed with the majority of Linux distributions. However, certain packages, such as sendmail, may require manual installation. The exact requirements can vary depending on the type of installation performed for your distribution. For example, a "Minimal" installation of AlmaLinux includes only the core system components and does not install additional dependencies.




WARNING URLGET set to use LWP but perl module is not installed, reverting to HTTP::Tiny

Problem

When accessing the Web Interface, the following error may appear at the top of the page:

CSF Web Interface › Perl GETURL Dependency Error
CSF Web Interface › Perl GETURL Dependency Error


You may also receive a slightly different version of this error in terminal when running sudo csf -ra

*WARNING* URLGET set to use LWP but perl module is not installed, fallback to using CURL/WGET


This error triggers when your workstation has not satisfied all of the perl dependencies required for CSF to run.


Solution

Open your workstation's terminal, and run one of the following commands:

sudo apt-get update && sudo apt-get install -y \
   libwww-perl
sudo yum makecache && sudo yum install -y \
   perl-libwww-perl


Refresh the CSF web interface and the error should be gone.




WARNING Binary location for [SENDMAIL] [/usr/sbin/sendmail] in /etc/csf/csf.conf is either incorrect, is not installed or is not executable

Problem

When starting up CSF, you may receive the following error in your terminal related to SENDMAIL:

*WARNING* Binary location for [SENDMAIL] [/usr/sbin/sendmail] in /etc/csf/csf.conf is either incorrect, is not installed or is not executable


This error triggers when you do not have the binary SENDMAIL installed, and nothing defined for the setting LF_ALERT_SMTP in your /etc/csf/csf.conf.


Solution

Open your workstation's terminal, and run one of the following commands:

sudo apt-get update && sudo apt-get install -y \
   sendmail
sudo yum makecache && sudo yum install -y \
   sendmail sendmail-cf

sudo systemctl enable --now sendmail


Refresh the CSF web interface and the error should be gone.