Spamhaus in CSF Firewall

Started by tutods, December 15, 2021, 07:15:46 AM

Previous topic - Next topic

tutods

Hi guys
Is possible configure the Spamhaus in CSF Firewall?
If yes, anyone can help me?

Netino

Yes.
Check the file '/etc/csf/csf.blocklists'. You can enable three lists:
SPAMDROP
SPAMEDROP
SPAMDROPV6


Regards,
Netino

tutods

Thanks
One thing, yesterday I try block specific countries on CSF Firewall, but after that my websites are very slow
I have one website with A score on Gtmetrix, and now have F score
Any idea?

studio4host

you have info about this in csf firewall, as using big block lists with firewall will slow down the server response time as it need to check each IP.
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Netino

Quote from: tutods on December 16, 2021, 03:30:58 AM
Thanks
One thing, yesterday I try block specific countries on CSF Firewall, but after that my websites are very slow
I have one website with A score on Gtmetrix, and now have F score
Any idea?

To block countries, you must use the "Country Code Lists and Settings" section of '/etc/csf/csf.conf'.
There you must choose the database that will be used to find the countries for each IP address, MaxMind or db-ip, ipdeny, iptoasn.

Keep in mind that searching for the country of each IP address has a cost on the overall performance of the system too.
Each connection to your server must be searched by the country code.
Read that section to get informed.

makp27


Hi
Does this process add additional load to my server?


Quote from: Netino on December 15, 2021, 10:14:14 PM
Yes.
Check the file '/etc/csf/csf.blocklists'. You can enable three lists:
SPAMDROP
SPAMEDROP
SPAMDROPV6


Regards,
Netino