Project request for Mohamed K. - Server Load Script

Job ID: 39256197

Budget: $24 – $25 CAD

Mohamed, can you tweak the script you wrote for me a while back. It's to temporarily block all IP addresses during a server high load on the 1 minute, except for the US and CA Countries? The USA and Canada are being blocked along with all other countries. Not sure what changed but I did migrate to a new server.

Also, I would like to have the script modified so it does not block IP addresses that are whitelisted in the CSF allow.

Thank you,
Ross

PS. I'm attaching the latest script, csf.conf file and a sample of the output results when the script is invoked by a high server load...

latest_csf_conf_file.txt
latest_load_script.txt
emailed_output_sample.txt

As you can see from the emailed_output_sample.txt file, it doesn't allow the US or CA countries to be whitelisted. It's temporarily blocking the US and CA IPs along with all other countries.

Let me know if you need anything else.

Do you have an ETA?

Thank you!
Ross
Related categories: PHP System Admin Linux Web Hosting Ubuntu