CSF test fails

Post Reply
krisdv
Junior Member
Posts: 8
Joined: 04 Mar 2011, 11:27

CSF test fails

Post by krisdv »

Dear all,

What could be the reason for below error? I try to install the script on XEN VPS running CentOS 6.5

root@shared01 [~]# perl /usr/local/csf/bin/csftest . pl
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.60xls-domU/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.60xls-domU/modules.dep: No such file or directory] - Required for SMTP_BLOCK and UID/GID blocking features
Testing iptable_nat/ipt_REDIRECT...OK
Testing iptable_nat/ipt_DNAT...OK

RESULT: csf will not function on this server due to FATAL errors from missing modules [1]

Thank you in advance.
martinp
Junior Member
Posts: 16
Joined: 08 Jul 2013, 10:13

Re: CSF test fails

Post by martinp »

Can you try this:

Code: Select all

modprobe ipt_owner
modprobe xt_multiport
krisdv
Junior Member
Posts: 8
Joined: 04 Mar 2011, 11:27

Re: CSF test fails

Post by krisdv »

root@server [~]# modprobe ipt_owner
FATAL: Could not load /lib/modules/2.6.32.60xls-domU/modules.dep: No such file or directory
root@server [~]# modprobe xt_multiport
FATAL: Could not load /lib/modules/2.6.32.60xls-domU/modules.dep: No such file or directory
root@server [~]#
ModServ
Junior Member
Posts: 16
Joined: 08 Jan 2008, 15:30
Contact:

Re: CSF test fails

Post by ModServ »

Hello,

For anyone coming from search engines -like me- here is the cause and workaround:

You can't do modprobe on OVH kernels as they are using static kernel with built-in modules, if you need to modify, delete, or add any module, you've to recompile kernel or you could reinstall the server and use the stock kernel.

Reference:
https://forum.ovh.us/showthread.php/59- ... es-problem

Workaround to replace kernel:
http://change_ovh_kernel.onlinephpfunctions.com/

Regards,
postcd
Junior Member
Posts: 47
Joined: 15 May 2014, 17:10

Re: CSF test fails

Post by postcd »

lsmod|grep -E "owner|multiport"

xt_owner 2258 19

xt_multiport 2716 38

vzctl exec CTIDHERE perl /usr/local/csf/bin/csftest.pl|grep FAILED
Testing ipt_multiport/xt_multiport...FAILED [FATAL Error: FATAL: Could not load /lib/modules/2.6.32-042stab093.5/modules.dep: No such file or directory] - Required for csf to function
Testing ipt_owner/xt_owner...FAILED [Error: FATAL: Could not load /lib/modules/2.6.32-042stab093.5/modules.dep: No such file or directory] - Required for SMTP_BLOCK and UID/GID blocking features
On other VPS which has same OS like dedicated server (VPS host node) - CentOS 6, csftest is without error.
But on Ubuntu i see above errors. VPS was restarted already.
Post Reply