Gefw: the simple graphical interface to manage UFW in Linux

Introduction to Gufw

Gufw is the graphical user interface specifically designed to manageUncomplicated Firewall (UFW)in Debian and Ubuntu-based distributions. Although UFW already simplifies the management of iptables by a friendly syntax, Gufw takes that simplicity one step further by offering buttons, verification boxes and previous views that allow any user, even without command line experience, to activate, deactivate and create firewall rules quickly and safely.

Why use a firewall in Linux?

Although Linux is known for its robustness, no system is free from threats. A firewall acts as the first line of defense, controlling incoming and outgoing traffic according to predefined policies. UFW, and thus Gufw, allow:

  • Block unnecessary ports and reduce the attack surface.
  • Allow only essential services (SSH, HTTP, HTTPS, etc.) according to the role of the equipment.
  • Register connection attempts for audit and subsequent analysis.
  • Apply different profiles (home, work, public) according to the network environment.

Having a visual tool like Gufw reduces the probability of configuration errors that could leave ports open or block legitimate services.

Gufw installation

The installation is simple in most Debian / Ubuntu-based distributions. Open a terminal and run:

sudo apt update
sudo apt install gufw

In other distributions such as Fedora or Arch, the package is usually available in official repositories:

  • Fedora:sudo dnf install gufw
  • Arch:sudo pacman -S gufw

Once installed, you can launch Gefw from the application menu or rungufwAt the terminal.

Basic configuration

When you open Gufw, you will see three main tabs:State, RulesandProfiles. In the State tab you can activate or disable the firewall with a single switch. It is recommended to leave it on as long as the equipment is connected to an external network.

In the Rules section, Gufw shows a default list that includes:

  • Allow incoming connections to port 22 (SSH) from the local network.
  • Deny all incoming traffic not explicitly permitted.
  • Allow all outgoing traffic (default policy).

To add a new rule, click on the button+and choose between:

  • Preconfigured: common options such as HTTP, HTTPS, DNS, Samba, etc.
  • Customized: specifies IP address, port, protocol (TCP / UDP) and action (allow / deny).

Each rule may include a useful description to identify its future purpose.

Advanced rules and profiles

Gufw allows you to create several profiles that are automatically activated according to the network you connect to. For example:

  • Home: allows access to local printers and multimedia services.
  • Work: opens ports needed for VPN or corporate applications.
  • Public: more restrictive position, blocking almost all incoming traffic except essential services.

To set a profile, go to the Profiles tab, select an existing one or create a new one, and define the rules you want to apply. Then, in the Status tab, choose the active profile from the drop-down menu.

In addition, Gufw shows a real-time event record (if the record is enabled in UFW) that allows you to see blocked or allowed connection attempts, facilitating the detection of suspicious activities.

Security advice and best practices

To get the most out of Gufw and keep your system safe, follow these recommendations:

  • Keep the system up-to-date: kernel and UFW updates usually include security improvements.
  • It regularly reviews the rules: it eliminates those that are no longer necessary to avoid unnecessary accumulation.
  • It uses the predetermined policy of denying incoming and outgoing traffic; it only opens ports when strictly necessary.
  • Enable event registration and check the log occasionally withsudo journalctl -u ufwor through the Gefw interface if available.
  • Consider combining UFW / Gufw with other tools such as fail2ban to block IP addresses that attempt brute force attacks.

Remember that a firewall is only a layer within an in-depth security strategy; combine it with good password practices, software updates and, when relevant, use of encryption in communications.

Conclusion

Gufw transforms UFW management into an accessible and visual experience, ideal for both system administrators who prefer a graphic interface and for novice users who want to protect your machine without dealing with the complexity of iptables. Its simplicity does not sacrifice power: it allows to create detailed rules, define profiles according to the environment and monitor traffic in real time. If you are looking for an effective, light and easy-to-use solution to strengthen the security of your Linux distribution, Gufw is an option worth testing.

This work is under aCreative Commons License Attribution 4.0 International for Francesc Roig francesc @ vivaldi.net.

EnglishenEnglishEnglish