Set up a firewall in Ubuntu 10.04 LTS

Uncomplicated Firewall (UFW) is the standard firewall configuration program in Ubuntu. It is a command line program. Most users will prefer to use Gufw, which is a graphical program to configure UFW.

Advanced users may wish to use UFW directly in the terminal. See the UFW manual or the Community Documentation page on UFW for more information. Alternatively, you can use iptables – see the iptables manual.

Gufw

To install and enable Gufw:

  1. Install the gufw package.
  2. To start Gufw, choose System → Administration → Firewall configuration.
  3. To enable the firewall, simply check the box next to Enabled under “Actual Status.”

The default configuration is to deny connections. This means that a program attempting to connect to your computer will be denied. Certain programs or services which use the internet may require you to add an exception.

To add an exception:

  1. Click Add.
  2. You can choose from Preconfigured options for common programs and services, or you can manually add port exceptions in the Simple or Advanced tabs.
  3. To find out what type of exception a particular program requires, you should consult the help for that program.

Spread the love

Published by

Jay Forrest

Jay Forrest is a long‑time Linux enthusiast who switched to Ubuntu in 2008 after a Windows XP virus convinced him to embrace open‑source software. A former host of the Linux User Podcast, Jay has worked in technical support for AOL, EarthLink, and Route 66 Casino, built his first 486 in the 90s, and has provided web design for businesses and nonprofits. He works with HTML, JavaScript, CSS, and basic PHP, and enjoys exploring open‑source software. As a former Fedora Ambassador, Jay is dedicated to sharing why Linux—secure, stable, and open—remains his platform of choice.