Færdiggjort

script request to block ips with over 100 connections if server load 1 minute is over 7

Hello,

My dedicated server is Centos 7 running cPanel. I currently have Mod_Security and CSF/LFD installed; however, it takes too long for CSL/LFD to block IP addresses that have over 100 connections to the server and causing a massive server load.

What I need is a custom script that will block ips with over 100 connections (variable adjustable) if server load 1 minute is over 7 (variable adjustable) . I envision the following...

- create a script to monitor server loads. set up a cron to check the server load every 30 seconds and if the load for the 1 minute is over 7, then perform the following command and block the IPs with over 100 connections to the server, using CSF/LFD...

netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n

I will not let you have access to the server, so I hope you have your own server to implement the above request.

Thank you,

Ross

Evner: Linux, Shell Script, PHP, System Administrator, Ubuntu

Se mere: server load rating, simulate server load udp, autocad script select block, flashchat server load, server load analyzer, server load reduce, reduce mysql server load, estimating server load php mysql, php script find block msn, server load check, server load checker, troubleshooting linux server load, reducing mysql server load, script php block day, server load reduce clicks, server load mysql 100, options reduce server load caused due script, chat script reduce server load

Om arbejdsgiveren:
( 3 bedømmelser ) Surrey, Canada

Projekt ID: #28332413

Tildelt til:

mrkimoz

Hello, i can help you dear with excellent experience for bash script, i can provide you with request script that provide you what you need, please contact me and i have my own server for testing Thanks

$40 CAD på 1 dag
(3 bedømmelser)
1.1

3 freelancere byder i gennemsnit $33 timen for dette job

udayarpandey2022

I can do this job. I have the experience and ability required to perform this task. Let me know if you are interested. Thanks!

$30 CAD in 2 dage
(51 bedømmelser)
4.9
gattes

Hi there, I have over 10 years of work experience with Linux and I think I can help you with this. Ping me and I'll do so. Cheers mate.

$30 CAD på 1 dag
(10 bedømmelser)
2.8