OVH Community, your new community space.

cant install csf firewall on centos 6 vps


kizmetjane
17-11-2014, 17:58
Quote Originally Posted by DUKH
I don't think that this is true. On multiple monitoring servers I have on ....
Yes THAT one worked for me.

For example in CSF Test IPTABLES when you get the error:

"FATAL: Could not load /lib/modules/2.6.32-042stab093.5/modules.dep"

then do the following 4 steps in SSH

1. mkdir /lib/modules/2.6.32-042stab093.5 <= just copy paste that part from the FATAL error

2. depmod -a

3. in Cpanel restart CSF

4. test iptables again

DUKH
30-08-2014, 23:53
Re the above (for the help of others):
WARNING: Couldn't open directory /lib/modules/2.6.32-042stab092.2: No such file or directory
FATAL: Could not open /lib/modules/2.6.32-042stab092.2/modules.dep.temp for writing: No such file or directory
root@london02 [/downloads]# mkdir /lib/modules/2.6.32-042stab092.2
root@london02 [/downloads]# depmod -a
root@london02 [/downloads]# perl /usr/local/csf/bin/csftest.pl
Testing ip_tables/iptable_filter...OK
Testing ipt_LOG...OK
Testing ipt_multiport/xt_multiport...OK
Testing ipt_REJECT...OK
Testing ipt_state/xt_state...OK
Testing ipt_limit/xt_limit...OK
Testing ipt_recent...OK
Testing xt_connlimit...OK
Testing ipt_owner/xt_owner...OK
Testing iptable_nat/ipt_REDIRECT...OK
Testing iptable_nat/ipt_DNAT...OK

RESULT: csf should function on this server

DUKH
30-08-2014, 23:51
Quote Originally Posted by Criot
As Neil stated you require VPS Cloud to install CSF.
I don't think that this is true. On multiple monitoring servers I have on OVH classic VPS, I've been successful by:
mkdir /lib/modules/2.6.32-042stab092.2 (or whatever is listed in the CSF test as an error - WARNING: Couldn't open directory /lib/modules/2.6.32-042stab092.2: No such file or directory)
depmod -a

Criot
07-08-2014, 11:29
As Neil stated you require VPS Cloud to install CSF.

kasun0777
07-08-2014, 07:53
I have got this same error. How can i resolve this?

Neil
18-04-2014, 13:51
We have also enabled PPTP in the VPS Classic Kernel, if it is not detected then reboot the VPS. This will help with customers wanting VPNs and Firewalls. But if you want to install CSF then you would need the VPS Cloud where you have full kernel access.

Garry
18-04-2014, 12:35
Not sure what VPS you on, but if you on the Classic VPS, I would contact support asking them to enable it, for CSF.
So CSF there a list on modules needed in the kernel, I would send that and I ask to do it.

If you on a VPS Cloud, you should be able to do it yourself, by setting up your own kernel.

ankurs
15-04-2014, 16:09
i am unable to install csf firewall on centos 6 vps, am getting below error

Code:
Testing ip_tables/iptable_filter...OK
Testing ipt_LOG...OK
Testing ipt_multiport/xt_multiport...FAILED [FATAL Error: FATAL: Could not load /lib/modules/2.6.32-042stab084.14/modules.dep: No such file or directory] - Required for csf to function
Testing ipt_REJECT...OK
Testing ipt_state/xt_state...OK
Testing ipt_limit/xt_limit...OK
Testing ipt_recent...OK
Testing xt_connlimit...OK
Testing ipt_owner/xt_owner...FAILED [Error: FATAL: Could not load /lib/modules/2.6.32-042stab084.14/modules.dep: No such file or directory] - Required for SMTP_BLOCK and UID/GID blocking features
Testing iptable_nat/ipt_REDIRECT...FAILED [Error: iptables: No chain/target/match by that name.] - Required for MESSENGER feature
Testing iptable_nat/ipt_DNAT...OK

RESULT: csf will not function on this server due to FATAL errors from missing modules [1]
please help me fix this, without a good firewall the vps would be unusable