Is there a way I can block entire countries by country code (such as RU and CN)?
Currently I have a UFW firewall rule enabled for every IP that tried to do shady stuff (logging in on SSH, searching for .php scripts on my nginx).
Is there a way I could block entire countries from accessing my SSH / Nginx?
This is my nginx access.log (in /var/log/nginx/access.log
)
I'm trying to get a solution that blocks on country code, and not IP.