Skip to content

Firewall Settings

atamariya edited this page Oct 22, 2019 · 1 revision

CentOS

Find out active zones.

firewall-cmd --get-active-zones

It will say either public, dmz, or something else. You should only apply to the zones required.

In the case of public:

firewall-cmd --zone=public --add-port=1900/tcp --permanent
firewall-cmd --zone=public --add-port=1900/udp --permanent
firewall-cmd --zone=public --add-port=5001/tcp --permanent

firewall-cmd --reload
Clone this wiki locally