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.
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.
That’s it. Let’s get to work.
sudo apt-get install gufw -y
The above command will pick up any necessary dependencies for the GUI and install everything without any issues.
Using the GUI
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.
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.