Block the traffic of a whole country

Mega Carder

Guru
BFD MEMBER
LEGEND
ULTIMATE
SELLER
SUPREME
MEMBER
BFD Legacy
Joined
Mar 14, 2025
Messages
1,348
Reaction score
15,561
Deposit
6,350$
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.
 
Top Bottom