Enable built-in Firewall in Ubuntu, elementary OS, and Linux Mint

Firewall for Ubuntu
Firewall for Ubuntu

Firewall is an important tool for any operating system these days, especially due to threat of hacking on a compromised computer. Ubuntu and its derivatives like elementary OS and Linux Mint comes builtin with the strongest firewall called “ufw”. However for whatever the reason the Firewall is disabled by default settings. Although, there is no need to have Antivirus on Linux, I recommend to always enable Firewall on Linux too.

Install graphical interface for Ubuntu’s built-in Firewall ufw

STEP 1: Go to ‘Applications’ and launch ‘Terminal’.

STEP 2: Type the following command and hit enter. You will have to enter root password to begin installation.

sudo apt-get install gufw

STEP 3: After installation is complete, launch it from the Applications search. Search for ‘gufw’ or ‘firewall configuration’. Both the searches should show ‘Firewall Configuration’.

STEP 4: Toggle the Firewall status to ‘ON’. You have actually enabled the firewall now.

Firewall for Ubuntu
Firewall for Ubuntu

STEP 5: The firewall configuration resembles features seen in firewall software for Windows. You can set the profile ‘Home’, ‘Public’, and ‘Office’.

STEP 6: Click on a little + icon in the ‘Rules’ section to add ‘Allow’ and ‘Block’ rules to applications.

Firewall Rules
Firewall Rules

STEP 7: Other features include live network listening report and log.

Firewall Listening Report
Firewall Listening Report

Did you like the default built-in Firewall? Let us know in comments below.

Hi there! I'm Kiran Kumar, founder of FOSSLinux.com. I'm an avid Linux lover, and enjoys hands-on with new promising distros. Currently, I'm using Ubuntu as a daily driver and run several other distros such as Fedora, Solus, Manjaro, Debian, and some new ones on my test PC and virtual machines. I have a day job as an Engineer, and this website is one of my favorite past time activities especially during Winter ;). When I'm not writing for FOSSLinux, I'm seen biking and hiking on scenic trails. Hope you enjoy using this website as much as I do writing for it. Feedback from readers is something that inspires me to do more, and spread Linux love!. If you find time, drop me an email or feedback from 'Contact' page. Or simply leave a comment below if you found this article useful. Have a good day!

Leave a Reply

Be the First to Comment!

Notify of