- Create the path (directory) that the service can’t find:
# mkdir -p /lib/modules/2.6.32-042stab093.5
(“2.6.32-042stab093.5” this part could be different, just copy it from the error message)
- Regenerate the missing modules:
# depmod -a
- Restart the CSF (Firewall) service, so the changes will take effect:
# csf -r
- Test the modules and service again using the pearl script:
# perl /usr/local/csf/bin/csftest.pl
If everything is done correctly no errors should appear and you will get a message that the service is running properly on the VPS.
- Next step is to configure the firewall to your liking, to do that you need to go to the CSF Configuration directory /etc/csf/ and edit the file csf.conf with with any text editor:
# nano /etc/csf/csf.conf
- By default CSF allows incoming and outgoing traffic for the SSH standard port 22, if you use a different SSH port (for example 2222) then please add your port to the configuration in line 139 TCP\_IN, it will look something like this:
- Whenever you are altering the settings in csf.conf, you should save the files and restart CSF in order for the changes to take effect.
- After this, you should apply the changes by restarting CSF with command:
# csf -r
- If everything went like planned, and you are still able to access the server, open the configuration file once more:
# nano /etc/csf/csf.conf
Change the setting TESTING at the beginning of the configuration file to 0 as shown below:
TESTING = "0"
- Save the file, and apply the changes with command:
# csf -r
