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!

LEAVE A REPLY

Please enter your comment!
Please enter your name here

STAY CONNECTED

24,262FansLike
192FollowersFollow

LATEST ARTICLES

Create a ClamAV Antivirus Live USB drive, and how to use it

Antivirus Live CD or USB drives come in handy at times when your computer is infected with a virus and other malware. Here is how you can create a ClamAV Live USB drive to scan and remove the malware from a computer.
Uninstall Programs in Ubuntu
Uninstallation of programs can be done by graphical way using the Ubuntu Software Center, and the Synaptic Package manager. Command-line way of doing it is also possible using apt-get and aptitude commands. We shall discuss each one of them in detail.
cool and fun linux commands
The real purpose of this article is to help Linux newbies get comfortable and confident with the Linux command-line.  While knowledge and comfort of the Linux GUI allow great power, it is the mastery of the command line, or CLI, affords the Linux user unlimited power and certifies them as a Linux power user well on their way to becoming an expert.
manjaro complete usb drive
In this tutorial, we will show step by step how to install a Manjaro on a USB flash. For those new to this distro, it is a light-weight distro that is based on Arch Linux. Arch Linux is known for its simplistic approach and is typically made for Linux pros, but Manjaro bridges the gap between user-friendliness and rock-solid performance.