DebianDebian Based

How To Install Gufw on Debian 12

Install Gufw on Debian 12

In this tutorial, we will show you how to install Gufw on Debian 12. Gufw is a graphical user interface (GUI) for managing the Uncomplicated Firewall (UFW) on Linux systems. It simplifies the process of configuring firewall rules, making it accessible to users who may not be comfortable working with command-line tools. With Gufw, you can easily enable or disable the firewall, set default policies for incoming and outgoing traffic, and create custom rules for specific ports, protocols, and applications.

One of the standout features of Gufw is its profile system. Profiles allow you to quickly switch between different sets of firewall rules depending on your location or security needs. Gufw comes with three predefined profiles: Home, Office, and Public. The Home profile is suitable for trusted home networks, allowing essential incoming connections. The Office profile is similar to Home but may permit additional services commonly used in work environments. The Public profile is the most restrictive, blocking all incoming traffic by default, making it ideal for use on public Wi-Fi hotspots or other untrusted networks.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the Gufw (graphical user interface for ufw) on Debian 12 (Bookworm).


Before proceeding with the installation of Gufw on Debian 12, ensure you meet the following requirements:

  • A server running one of the following operating systems: Debian 12 (Bookworm).
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • SSH access to the server (or just open Terminal if you’re on a desktop).
  • An active internet connection. You’ll need an internet connection to download the necessary packages and dependencies.
  • A user account with sudo privileges to execute administrative commands.

Install Gufw on Debian 12 Bookworm

Step 1. Before proceeding with the Gufw installation, it’s crucial to update your Debian 12 system to ensure you have the latest security patches and bug fixes. Open a terminal and run the following commands:

sudo apt update
sudo apt upgrade

Step 2. Installing Gufw on Debian 12.

  • Method 1: Installing Gufw via Command Line

First, enable the Universe repository by running the following command:

sudo add-apt-repository universe

Update the package lists to include the newly added repository:

sudo apt update

Install Gufw and its dependencies by executing:

sudo apt install gufw

Confirm the installation when prompted by typing “y” and pressing Enter.

  • Method 2: Installing Gufw via Software Center (GUI)
    1. Open the Software Center application on your Debian 12 system.
    2. In the search bar, type “Gufw” and press Enter.
    3. Click on the “Firewall Configuration” result that appears.
    4. Click the “Install” button and authenticate with your administrator password if required.
    5. Wait for the installation to complete.

To ensure that Gufw has been installed correctly, you can check the installed version by running the following command in a terminal:

gufw --version

Step 3. Launching and Configuring Gufw.

Now that you have Gufw installed, let’s explore how to launch and configure it to secure your Debian 12 system. To start Gufw, you can either search for it in the application menu or launch it from the terminal by running:

sudo gufw

Step 4. Troubleshooting Common Issues.

If you encounter issues while using Gufw, here are some troubleshooting tips:

  • If you accidentally block yourself from accessing the system, use the sudo ufw disable command in a terminal to temporarily disable the firewall and adjust the rules.
  • Check the firewall logs in the Gufw interface or the /var/log/ufw.log file for clues on blocked legitimate traffic.
  • Consult the official Gufw documentation and community forums for solutions to specific problems.

Congratulations! You have successfully installed Gufw. Thanks for using this tutorial to install the latest version of the Gufw (graphical user interface for ufw) on Debian 12 Bookworm. For additional help or useful information, we recommend you check the official Gufw website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!


r00t is a seasoned Linux system administrator with a wealth of experience in the field. Known for his contributions to, r00t has authored numerous tutorials and guides, helping users navigate the complexities of Linux systems. His expertise spans across various Linux distributions, including Ubuntu, CentOS, and Debian. r00t's work is characterized by his ability to simplify complex concepts, making Linux more accessible to users of all skill levels. His dedication to the Linux community and his commitment to sharing knowledge makes him a respected figure in the field.
Back to top button