How to add a GUI for your Ubuntu firewall (and why you should)

How to add a GUI for your Ubuntu firewall (and why you should)

/>

X

Tech
Why you can trust ZDNET : ZDNET independently tests and researches products to bring you our best recommendations and advice. When you buy through our links, we may earn a commission. Our process

‘ZDNET Recommends’: What exactly does it mean?

ZDNET’s recommendations are based on many hours of testing, research, and comparison shopping. We gather data from the best available sources, including vendor and retailer listings as well as other relevant and independent reviews sites. And we pore over customer reviews to find out what matters to real people who already own and use the products and services we’re assessing.

When you click through from our site to a retailer and buy a product or service, we may earn affiliate commissions. This helps support our work, but does not affect what we cover or how, and it does not affect the price you pay. Neither ZDNET nor the author are compensated for these independent reviews. Indeed, we follow strict guidelines that ensure our editorial content is never influenced by advertisers.

ZDNET’s editorial team writes on behalf of you, our reader. Our goal is to deliver the most accurate information and the most knowledgeable advice possible in order to help you make smarter buying decisions on tech gear and a wide array of products and services. Our editors thoroughly review and fact-check every article to ensure that our content meets the highest standards. If we have made an error or published misleading information, we will correct or clarify the article. If you see inaccuracies in our content, please report the mistake via this form.

Close

How to add a GUI for your Ubuntu firewall (and why you should)

Linux is considered the most secure operating system on the planet. But you might be surprised to find out that Ubuntu doesn’t ship with the firewall enabled or a simple-to-use GUI installed. Let’s fix that.
Blue security lock

KanawatTH/Getty Images

Ubuntu is one of the most user-friendly Linux distributions on the market. It’s also one of the most widely used open-source operating systems (OS). And given that Linux is often considered the most secure operating system available, it’s a bit baffling why the OS doesn’t default to enabling the firewall, and include a GUI tool to make using the firewall something that even new users can take care of.

Fortunately, there’s a straightforward GUI application you can install to make enabling and working with Uncomplicated Firewall a very simple endeavor. The only caveat is the installation of the GUI requires you to run a single command.

Also: Thinking about switching to Linux? 9 things you need to know

I will walk you through the installation of the UFW GUI and how to use it. 

Don’t worry, anyone can handle this easy task.

How to install the UFW GUI

What you’ll need: To make this process work, you’ll need a running instance of Ubuntu — or any Ubuntu-based distribution — and a user with sudo privileges. 

Also: The best VPN services (and how to choose the right one for you)

That’s it. Let’s get to work.

1. Open the terminal window app

To install the UFW GUI, open the terminal app on your desktop, which can be done from the desktop menu.

2. Run the installation command

Next, we’ll install the GUI with the command:

sudo apt-get install gufw -y

The above command will pick up any necessary dependencies for the GUI and install everything without any issues.

3. Open gufw

Once the app is installed, you should find a new entry in your desktop menu labeled Firewall Configuration. 

Also: 8 things you can do with Linux that you can’t do with MacOS or Windows

Click that icon to launch the tool. You’ll be prompted for your sudo password before the app can open.

Using the GUI

1. Enabling the firewall

The first thing you’ll want to do is enable UFW. On the GUI’s only window, you’ll find an On/Off slider marked Status. Because UFW defaults to inactive, you’ll need to click the On/Off slider until it’s in the On position. 

Also: The best VPN services for iPhone and iPad (yes, you need to use one)

Once you’ve done that, the firewall is active and protecting your desktop.

The gufw window running on elementary OS 7.

As you can see, the GUI clearly indicates the firewall is disabled.

Screenshot by Jack Wallen/ZDNET

2. Adding a rule

Let’s say you want to allow Samba traffic into your desktop, so you can share folders and files to other devices on your network. To do that, click on the Rules tab and then click + near the bottom left corner of the window. 

Also: The best VPNs for streaming your favorite shows and sports

In the resulting popup, leave everything as is except the Application entry. Click the Application dropdown and select SAMBA. Click Add and then click Close. 

The gufw firewall rule add window.

Creating an incoming rule to allow Samba traffic into your desktop.

Screenshot by Jack Wallen/ZDNET

You should now see that every port associated with Samba has been added as a firewall rule. Once you’ve allowed Samba through the firewall, those who need to access your shared directories should still be able to do so, while you’ll have the rest of the ports on your machine locked down.

Gufw with the necessary Samba rules added.

Every port required for Samba has been opened.

Screenshot by Jack Wallen/ZDNET

Although Linux is considered the most secure operating system on the market, some of the more user-friendly distributions could still use a helping hand to make them even tighter.

Editorial standards

Add a Comment