Uncomplicated Firewall is a program for managing a Netfilter firewall designed to be easy to use.

Step1. Install the epel repository

yum install epel-release -y

Step2. Enable the repository

yum install --enablerepo="epel" ufw -y

Step3. Start UFW service and enable it

ufw enable
ufw status
ufw disable (if required)

Step4. Set the UFW default policy

ufw default allow outgoing 
ufw default deny incoming

Step5. Add and Delete firewall rules

ufw allow http

Step6. Command to check added rules

ufw status verbose

Step7. Command to delete any applied rule

ufw delete allow http


Please enter your comment!
Please enter your name here