Enable ufw, uncomplicated firewall in Ubuntu

<< More Tips   |   Added On: 26/12/15   |    Category: Ubuntu    |    Number of Views: 708


Note: This tutorial will also work in Kubuntu, Lubuntu, Xubuntu, Ubuntu Gnome, Ubuntu Mate, Linux Mint and other Ubuntu Based Distributions.

ufw uncomplicated Firewall is the default Firewall in Ubuntu and Ubuntu based distributions. You will find that ufw is not enabled by default when you start your start your distribution so we need to enable it via the terminal.

To enable ufw, open your terminal and enter the following command

sudo ufw enable

The following message will be displayed in terminal
Firewall is active and enabled on system startup

If you want a detailed information about the status of ufw via the terminal enter the following command
sudo ufw status verbose

Which results in the following output:
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip

If you prefer not to use the terminal to access your firewall, ufw (Uncomplicated Firewall) has a GUI, it can be accessed by entering the following command in the terminal
sudo gufw

The default settings should be fine for the average home user.

If you find gufw is not installed, you can install it by entering the following command
sudo apt-get install gufw