ufw question

howard chen howachen at gmail.com
Sun Nov 30 06:56:22 UTC 2008


Hello,

How to block all access to ssh, but allow a specific IP range using ufw?

Currently I am using...

sudo ufw enable
sudo ufw default deny
ufw allow proto tcp from 221.124.0.0 to 221.127.255.255 port 6000

I only want IP range from 21.124.0.0 to 221.127.255.255 to access my
sshd listening on port 6000. However, the above rules seems not
working and I cann't access my sshd.

Any idea?

Thanks.




More information about the ubuntu-users mailing list