To install ufw in Ubuntu:
$ sudo apt-get install ufw
Open ports 22 (ssh) and 80 (http) (and deny all other ports):
$ sudo ufw allow 22 $ sudo ufw allow 80
Enable ufw:
$ sudo ufw enable
View: All Posts; All Users | Get Bookmarklets Partner Sites: indiWiz.com | WizTools.org | WizTools.co.in © Subhash Chandran (subwiz [at] gmail [dot] com or Twitter: Ping for reporting problems and asking clarifications)