Quantcast
Channel: Active questions tagged ssh - Ask Ubuntu
Viewing all articles
Browse latest Browse all 1056

UFW - allow requests only from a certain region/locale

$
0
0
$ sudo ufw statusStatus: activeTo                         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.


Viewing all articles
Browse latest Browse all 1056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>