Firewall
Firewall

Installing and Setting Up UFW & GUFW on Arch Linux

How to Install and Set Up UFW & GUFW on Arch Linux

What is UFW?

UFW (Uncomplicated Firewall) is a user-friendly interface for managing iptables firewall rules. It is designed to make managing a Linux firewall easier.

What is GUFW?

GUFW is the graphical user interface for UFW, making it easier for users who prefer a GUI to manage their firewall settings.

Step 1: Install UFW

Open your terminal and run the following command to install UFW:

sudo pacman -S ufw

Step 2: Enable UFW

After installation, you need to enable UFW. Run the following command:

sudo ufw enable

This command will activate the firewall with default settings.

Step 3: Configure UFW Rules

You can add rules to allow or deny specific traffic. For example, to allow SSH connections, run:

sudo ufw allow ssh

To allow HTTP traffic, use:

sudo ufw allow http

To deny a specific port, you can use:

sudo ufw deny 1234

Step 4: Check UFW Status

To check the status of UFW and see the current rules, run:

sudo ufw status verbose

Step 5: Install GUFW

If you prefer a graphical interface, you can install GUFW. Run the following command:

sudo pacman -S gufw

Step 6: Launch GUFW

After installation, you can launch GUFW from your application menu or by running:

gufw

In GUFW, you can easily manage your firewall settings using a user-friendly interface.

Conclusion

UFW and GUFW are now installed and configured on your Arch Linux system. You can manage your firewall settings easily using either the command line or the graphical interface.


This content is free to use, adapt, and share.
Knowledge and information should be open—please spread them far and wide.

A few things to keep in mind:

  • All of my work comes with absolutely no warranty, expressed or implied. However…
  • It will almost certainly work until it breaks,
    though I must admit it may never work or be useful—and that would be sad.
  • If/when it breaks, you can keep all the pieces.
  • As for what you don’t like, it’s yours to do with as you will.
  • If you find my materials helpful, both you and I will be happy (at least for a while).
  • My advice is worth every penny you paid for it!

Full disclosure:
I use various AI systems to assist in developing my content.
If you’re curious about how I use them, feel free to check out:
The Revolutionary Impact of AI on Genealogy and Historical Research.