« Re-install Open Office on Ubuntu | Main | sftp in Ubuntu 9.10 »

December 02, 2009

Work the Firewall in Ubuntu

Quick notes on how to firewall apache and open ports if needed:

This Ubuntu documentation is helpful.

This How To is the best.

$ sudo ufw enable
$ sudo ufw allow 22
$ sudo ufw deny 22
$ sudo ufw disable
$ sudo ufw status verbose

$ sudo /usr/sbin/apache2ctl restart
Allow an IP address through the firewall

$ sudo ufw allow from to any port

IP address shows up und inet addr:
$ ifconfig

File of concern:


Some delete statements:
$ sudo ufw delete deny from
$ sudo ufw delete allow from to any port 80
$ sudo ufw delete deny 80

Posted by kkwaiser at December 2, 2009 11:01 AM


Login to leave a comment. Create a new account.