[EDIT: 27/06/2017] This was an unpublished post from the 26th of October 2011 at 04:36 AM.
Please note I am using CentOS v5.7 and some of the commands you find here may not work for any other distributions. I am also using HyperVM to manage my VPS’s, you would not get any of these errors on SolusVM.
You follow instructions at your own risk and only you can be held liable for any changes on your server. This is merely a guide.
Are you getting the same or similar issue when you try to run the CSF test:
root@server [~/csf]# perl /etc/csf/csftest.pl
Testing ip_tables/iptable_filter…OK
Testing ipt_LOG…FAILED [FATAL Error: iptables: Unknown error 4294967295] – Required for csf to function
Testing ipt_multiport/xt_multiport…FAILED [FATAL Error: iptables: Unknown error 4294967295] – Required for csf t
o function
Testing ipt_REJECT…OK
Testing ipt_state/xt_state…FAILED [FATAL Error: iptables: Unknown error 4294967295] – Required for csf to functi
on
Testing ipt_limit/xt_limit…FAILED [FATAL Error: iptables: Unknown error 4294967295] – Required for csf to functi
on
Testing ipt_recent…FAILED [Error: iptables: Unknown error 4294967295] – Required for PORTFLOOD feature
Testing ipt_owner…FAILED [Error: iptables: Unknown error 4294967295] – Required for SMTP_BLOCK and UID/GID block
ing features
Testing iptable_nat/ipt_REDIRECT…FAILED [Error: iptables v1.3.5: can’t initialize iptables table `nat’: Table do
es not exist (do you need to insmod?)] – Required for MESSENGER feature
RESULT: csf will not function on this server due to FATAL errors from missing modules [4]
Ouch. Now what does this actually mean?
The issue here is that the modules required by CSF are not enabled in the operating system and it can very easily be fixed. Not to get this confused with users who are renting a VPS this is for the guys who are running a server. If you are renting a VPS then you can simply ask your host to enable the modules and if they are a decent company then it should be fixed in an hour or two.
There are two parts to solving this issue.
First you will need to open the OpenVZ configuration file for the VPS you want to edit. In this case its 110 therefore the file I’m looking to edit is located at /etc/sysconfig/vz-scripts/110.conf