How to Add Firewall rule to allow the port

Опубликовано: 03 Ноябрь 2024
на канале: BD - Server Solutions
722
7

1. For check firewalld status # systemctl status firewalld

2. start or stop firewall service # service firewalld stop

3. Add Firewall rule to allow the port 55555/tcp to accept packets

#firewall-cmd --zone=public --add-port=55555/tcp --permanent

4. For Firewall Reload Comman
#firewall-cmd --reload

5. To check which port are allow in firewall
#firewall-cmd --zone=public --list-ports

6. To remove Firewall port use this command
#firewall-cmd --zone=public --remove-port=55555/tcp

7. To list open ports and services configured through firewalld, run the following command:
firewall-cmd --list-all


8. to list all allow ports
#firewall-cmd --list-ports
------------------add service to Firewall----------

9. Firewall allow Services check
firewall-cmd --zone=public --list-services

10. New Service allow in Firewall
#firewall-cmd --zone=public --add-service=ftp

11. Remove Service From Firewall
firewall-cmd --zone=public --remove-service=ftp




-----------------------------------------------------------------------------------------------------------------------
Muhammad Tareq Musa
M.Sc, MCP, MCSA, CCNA Cyber Ops. Associate
MTCNA. MTCRE
Microsoft Windows Server 2016 Charter Member
Azure 900 Certified
Technical Trainer
We providing Training by Online Specially Windows Server 2016, Exchange Server 2016 and so on.
Feel Free to ping me
Contact: +8801844075129, +8801674962416
[email protected]

-------------------------------------------------------------------------------------------------------------------------
Join Facebook study Group :
  / 30279.  .
  / 42719.  .
--------------------------------------------------------------------------------------------------------------------------------------
#English is not my 1st language , we try english here just for everyone understanding , Sorry for any mistake .
----------------------------------------------------------------------------------------------------------------------------------------
👉Facebook : https://www.facebook.com/profile.php?...

👉LinkdIn:   / tareq-mus.  .

Playlist # Exchange Server 2016
👉 https://www.youtube.com/watch?v=ibg-j...

Playlist # Windows Server 2016 (70-740)
👉 https://www.youtube.com/watch?v=rGPdQ...

Playlist # Windows Server 2016 (70-741)
   • 01.Lecture-1 DNS Service on Server 2016  

Playlist # Windows Server 2016 (70-742)
   • Active Directory Domain Service (ADDS...  

Playlist # Windows Server 2016 (70-744)
   • 01 Lecture 01 How to Work Active Dire...  



Playlist # Mikrotik
👉https://www.youtube.com/watch?v=Uu3Rz...


WhatsApp +8801844075129