firewalls, centos,

How to install UFW on CentOS 9 Stream

Aug 23, 2022 · 1 min read · Post a comment

If you are more familiar with the UFW firewall instead of using firewalld, first you need to stop the firewalld service: sudo systemctl stop firewalld.service and install UFW on CentOS 9 Stream.


  • CentOS 9 Stream
  • sudo privileges

Install UFW on CentOS 9 Stream

Step 1. Update the CentOS 9 system packages.

sudo yum update

Step 2. Install the epel-release.

sudo yum install epel-release

Step 3. Install UFW on CentOS 9.

yum install --enablerepo="epel" ufw

Step 4. Verify the installation.

ufw --version

Step 5. To enable it, run:

sudo ufw enable

Step 6. To see the status, run:

sudo ufw status


Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.