CS BABA
@csbabaa
How to Install Firewall Enable, Disable Start, Stop and How to Create Zones in Red Hat Linux
How to Start/Stop and Enable/Disable FirewallD Service
Here are the steps on how to install, enable, disable, start, stop, and create rules in Redhat Linux Firewall:
Install firewalld
sudo yum install firewalld
Enable firewalld
sudo systemctl enable firewalld
Disable firewalld
sudo systemctl disable firewalld
Start firewalld
sudo systemctl start firewalld
Stop firewalld
sudo systemctl stop firewalld
Create a firewall rule
sudo firewall-cmd --permanent --add-port=80/tcp
Reload the firewall
sudo firewall-cmd --reload
Checking Default Zone
firewall-cmd --get-default-zone
active-zones
firewall-cmd --get-active-zones
Allow Public Zones
Testing
http
sudo firewall-cmd --zone=public --add-service=http
https
sudo firewall-cmd --zone=public --add-service=https
Status Public Zones:
sudo firewall-cmd --zone=public --list-services
Permanent Zone to Http and HTTPS
http
sudo firewall-cmd --zone=public --permanent --add-service=http
https
sudo firewall-cmd --zone=public --permanent --add-service=https
Status Permanent HTTPS AND HTTP
1. sudo firewall-cmd --zone=public --permanent --list-services
Opening a Port for your Zones
Testing
sudo firewall-cmd --zone=public --add-port=8989/tcp
sudo firewall-cmd --zone=public --list-ports
UDP /TCP
sudo firewall-cmd --zone=public --add-port=8989/udp
sudo firewall-cmd --zone=public --add-port=8989/tcp
TCP/UDP
sudo firewall-cmd --zone=public --permanent --add-port=8989/tcp
sudo firewall-cmd --zone=public --permanent --add-port=8989/udp
Ports Status
sudo firewall-cmd --zone=public --permanent --list-ports
Watch video How to Install Firewall Enable, Disable Start, Stop and How to Create Zones in Red Hat Linux online without registration, duration hours minute second in high quality. This video was added by user CS BABA 04 August 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 239 once and liked it 29 people.