Makerere University

Enter a keyword or two into the search box above and click search..

How to setup Firewall in Ubuntu:

You are here

Ubuntu includes its own firewall, known as ufw – short for “uncomplicated firewall.” Ufw is an easier-to-use frontend for the standard Linux iptables commands. You can even control ufw from a graphical interface.

Terminal Usage

The firewall is disabled by default. To enable the firewall, run the following command from a terminal:

sudo ufw enable

 GUFW Graphical Interface

 UFW is a graphical interface for ufw. Ubuntu doesn’t come with a graphical interface, but gufw is included in Ubuntu’s software repositories. You can install it with the following command:

Intsall sudo apt-get install gufw