How to Install Firewall Enable, Disable Start, Stop and How to Create Zones in Red Hat Linux

Опубликовано: 04 Август 2023
на канале: CS BABA
239
29

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


Смотрите видео How to Install Firewall Enable, Disable Start, Stop and How to Create Zones in Red Hat Linux онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь CS BABA 04 Август 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 239 раз и оно понравилось 29 людям.