$ sudo ufw status
Status: active
To Action From
-- ------ ----
Nginx Full ALLOW Anywhere
22/tcp ALLOW Anywhere
Nginx Full (v6) ALLOW Anywhere (v6)
22/tcp (v6) ALLOW Anywhere (v6)
How can I allow SSH (22/tcp) requests only from a certain region, country or continent?
This question is not related to allowing only requests from localhost, for example, because the IP of locahost is already known. I want something like to have all the IP ranges of a certain country in a text file and embed them into ufw allow rule.