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.
CSF test fails
Re: CSF test fails
Can you try this:
Code: Select all
modprobe ipt_owner
modprobe xt_multiport
Re: CSF test fails
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 [~]#
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 [~]#
Re: CSF test fails
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,
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,
Re: CSF test fails
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
But on Ubuntu i see above errors. VPS was restarted already.
xt_owner 2258 19
xt_multiport 2716 38
vzctl exec CTIDHERE perl /usr/local/csf/bin/csftest.pl|grep FAILED
On other VPS which has same OS like dedicated server (VPS host node) - CentOS 6, csftest is without error.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
But on Ubuntu i see above errors. VPS was restarted already.