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

Unable to deny SSH from other ips

$
0
0

Currently I am unable to deny ssh from other IPs, I am using hostinger Ubuntu VPS, have added restriction on the firewall. to allow IP from my IP and few others, but deny all others. This is not working, i am still able to get the SSH done from all the IPs.Based on the recommendation hostinger support i followed these commands:

sudo ufw allow from 191.1.2.3 to any port 22sudo ufw allow from 38.1.2.3 to any port 22sudo ufw allow from 103.1.2.3 to any port 22sudo ufw deny 22

This command is also not working, its allowing from other ips as well. I have a VPN setup and changed to other regions and it works well with other IPs as well.

Edit:after running sudo ufw status output:

22                         ALLOW       191.1.2.3            22                         DENY        Anywhere         22 (v6)                    DENY        Anywhere (v6)  

Viewing all articles
Browse latest Browse all 1056

Trending Articles



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