Sunday, February 12, 2012

Setting firewall using ufw

Sponsored Links
UFW is a firewall in Debian/Ubuntu Operating systems.

Enabling the firewall
root@suede:/# ufw enable

Firewall is active and enabled on system startup

Allowing ssh port :

root@suede:/# ufw allow 22/tcp
Rule added
root@suede:/# ufw allow 22/udp
Rule added

Listing the status :
root@suede:/# ufw status
Status: active
To                         Action      From
--                         ------      ----
22/tcp                     ALLOW       Anywhere
22/udp                     ALLOW       Anywhere
root@suede:/#

You can delete the rules as

root@suede:/# ufw delete allow 22
Rule deleted

You can also allow ports using name.

$ sudo ufw allow ssh
$ sudo ufw allow www
$ sudo ufw allow webmin
Sponsored Links

No comments:

Post a Comment

Be nice. That's all.