« 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
IP address shows up und inet addr:
$ ifconfig
File of concern:
apache2/apache2.conf
apache2/httpd.conf
apache2/ports.conf
apache2/sites-enabled/000-default
/etc/apache2
Some delete statements:
$ sudo ufw delete deny from
$ sudo ufw delete allow from
$ sudo ufw delete deny 80
Posted by kkwaiser at December 2, 2009 11:01 AM