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

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.

Kiran Kumar
Hi there! I'm Kiran Kumar, founder of FOSSLinux.com. I'm an avid Linux lover and enjoy 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 a time, drop me an email or feedback from the 'Contact' page. Or simply leave a comment below if you found this article useful. Have a good day!

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here

STAY CONNECTED

24,118FansLike
210FollowersFollow
6SubscribersSubscribe

LATEST ARTICLES

best linux distros for laptops
Whether buying a Linux pre-installed laptop or selecting a Linux distro for your existing laptop, there are many things to consider. Let's take you through some of the best Linux distros that are optimized for Laptops in this 2019 edition of the article. Read on.
Free up hard disk space ubuntu
Hard disk space can easily get filled up with cached package files, old kernels, and other obsolete files that occupy unwanted hard disk space. Here are top five best and safer ways to clean and free up hard disk space in Ubuntu. We show you Terminal and GUI way of cleaning up system.
foss and linux
The rise of the Linux operating system, in all its various distributions, over the past few decades has catapulted the popularity of Free or Open Source Software (FOSS). Let's guide you in understanding what is FOSS, how it differs from freeware and is Linux a FOSS.