How To Open Specific Port In Cent Os Permanently

 

Hello everybody,

today I want to document how to permanently open port in CentOS linux permanently. You can achieve it with following command:

firewall-cmd --zone=public --add-port=22/tcp --permanent

or with usage of iptables:

iptables -I INPUT -p tcp -m tcp --dport 80 -j ACCEPT

Key --permanent ensures that port will remain working after the reboot.

No Comments

 

Add a Comment
 

 

Comments are closed