How to view and set the Linux open firewall ports

View and open a firewall port
Firewall-cmd---list the ports
Firewall-cmd = --zone public --add-Port = 9404 / tcp --permanent
Firewall-cmd --reload
---------- -----------
the sudo --permanent --query-Firewall-cmd = Port 80 / TCP
the sudo systemctl the restart firewalld
the sudo All-Firewall-cmd --list

Guess you like

Origin www.cnblogs.com/ppp1314520818/p/11654758.html