ConfigServer Firewall : Error starting CSF /sbin/ifconfig (ifconfig binary location) -v does not exist!


Having such issue starting/stopping CSF on RHEL/CentOS 7?

# csf -x

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

You have an unresolved error when starting csf:
Error: /sbin/ifconfig (ifconfig binary location) -v does not exist!, at line 2510 in /usr/sbin/csf
You need to restart csf successfully to remove this warning, or delete /etc/csf/csf.error

This is caused by missing packages on your system. Basically the command “ifconfig” and LWP Perl module are absent from your system.

To resolve this matter, just install the missing packages with Yum as followed :

yum install net-tools perl-LWP-Protocol-https

Then delete CSF error file :

rm -f /etc/csf/csf.error

Originally posted 2017-02-02 21:08:14.