How to open port in CentOS | RedHat 7 / 8



This video shows how to add port, service in firewall and check status of open port in Centos 7 and Redhat.

Subscribe our channel for more tech stuff.
Our Facebook Page – https://www.facebook.com/Easytechstudios/
Instagram – https://www.instagram.com/easytechstudios

Commands-
To add port –
for example httpd
firewall-cmd –permanent –add-port=80/tcp
To remove port
firewall-cmd –permanent –remove-port=80/tcp
To reload firewall
firewall-cmd –complete-reload
To add multiple ports at once –
firewall-cmd –permanent –add-port={80,110,3306}/tcp
To check status of open ports
firewall-cmd –list-all

Comments are closed.