On the server goes DDoS attack.
~# netstat -n -p | awk '{print $5}'|awk -F: '{print $1}' | sort -n | uniq -c | sort -nr | head -n10
48 109.229.9.53
47 31.207.244.130
45 87.252.227.83
42 81.27.152.6
42 109.251.197.99
41 95.31.75.174
41 93.79.243.47
41 5.18.67.54
41 46.160.194.58
40 176.65.127.38
...
About 1,700 IP addresses.
~# netstat -nput | awk '{print $4}'|awk -F: '{print $2}' | sort -n | uniq -c | sort -nr | head -n10
26047 443
2
1 22
Block one IP
iptables -A INPUT -s 79.104.48.126 -j REJECT
is not an option, as the 1700 piece.
Yes, I read I am under DDoS. What can I do?, but really can not give an example of how to create config nginx, or have a ready solution that would address automatically blocked IP?
CloudFlare not blocking requests.
How to stop small DDOS attacks?