ufw,

How to install UFW on Centos 7

Dec 08, 2021 · 1 min read · Post a comment
How to install UFW on Centos 7

Most of the RHEL linux distros are coming with pre-installed firewalld as a default firewall. But if you are UFW fan and you don’t want to waste your time or resources on getting familiar with firewalld, I will show you how to install UFW on Centos 7. It’s pretty quick and easy, so let’s start.

Prerequisites

  • Centos 7
  • sudo user

Install UFW on Centos 7

Step 1. Firstly update the Centos 7 system packages:

sudo yum update

Step 2. Install the epel-release repo, from where we can install ufw:

sudo yum install epel-release

Step 3. Install ufw:

yum install --enablerepo="epel" ufw

Step 4. Verify the installation and check the version with:

ufw --version

Output:

ufw 0.35

Step 5. Once the installation is done enable it:

sudo ufw enable

Step 6. To check the status run:

sudo ufw status

Conclusion

For any additional questions or concerns please leave a message below. Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on telegram.