I’ve install the latest version of VM on my VPS. Everything is working nice. Great CP! I’ve also installed CSF firewall, but when run a check, I get an error:
Testing xt_connlimit…FAILED [Error: iptables: Invalid argument. Run `dmesg’ for more information.] - Required for CONNLIMIT feature
RESULT: csf will function on this server but some features will not work due to some missing iptables modules 
I spoke to my VPS provider about enabling the missing module. They say they have, and its an issues on my side of things. I’ve looked on google and found a few things, that it appears to be a bug with centos, which I am running.
I have found on google, that adding this rule might help. --> -A INPUT -p tcp -m tcp --dport 9999 -m connlimit --connlimit-above 100 --connlimit-mask 32 -j REJECT --reject-with tcp-reset
But each time I try to add it does not work.
Does anyone else know how to fix it?
Well, I’m unfortunately not familiar with CSF, and it’s possible you may need to ask the CSF community regarding the problem you’re having… however, I do see a bug report regarding CSF on RHEL/CentOS here, with the error you’re getting:
They made a few suggestions in there, including making sure that it’s the newest CentOS and CSF version, as well as making sure that the “xt_connlimit” module is loaded. You can do that by running the command “modprobe xt_connlimit”.
Hi thanks for the reply, I’ve raised another ticket with my provide to double check on the missing module, they replied saying it was loaded.
So do you know what command I would need to issue to get it working?
Well, you’re not looking at an issue of running one command… it sounds like you need someone knowledgeable with CSF who can run a lot of commands and perform a variety of troubleshooting steps
Unfortunately, our expertise here is primary related to Virtualmin… and you seem to be having an issue with CSF.
While some folks here do use CSF, if you don’t hear from any of them, you may need to ask the CSF community for their assistance.
Further to Eric’s post, I’d recommend posting CSF specific errors over at their forums where you’ll likely be welcomed by people who’ve “been there, done that” and can help solve your issue.