josejuegos
Member
- Mar 13, 2017
- 14
- 4
- 38
Hello, I need to block the traffic of a whole country, give me some clue as to how to do it?
I'm getting brute-force attacks and bots to my VPS services only from Japanese IPs, and I need to block all of Japan's IP traffic.
I tried with IPTABLES with https://www.ip2location.com/blockvisitorsbycountry.aspx with the file "iptables-japan.txt" but when creating so many firewall rules the VPS collapses, the "CPU Load" goes up to 25 or 30 and the VPS stops responding, I'm attaching the file to you to see it.
They can give me an alternative or another way to do it, I have been testing for several days and I am not able to solve the problem of blocking all the traffic of a country to avoid bots or brute force.
Greetings.
I'm getting brute-force attacks and bots to my VPS services only from Japanese IPs, and I need to block all of Japan's IP traffic.
I tried with IPTABLES with https://www.ip2location.com/blockvisitorsbycountry.aspx with the file "iptables-japan.txt" but when creating so many firewall rules the VPS collapses, the "CPU Load" goes up to 25 or 30 and the VPS stops responding, I'm attaching the file to you to see it.
They can give me an alternative or another way to do it, I have been testing for several days and I am not able to solve the problem of blocking all the traffic of a country to avoid bots or brute force.
Greetings.