Skip to content

firewalld

Zones

List Zones

firewall-cmd --get-active-zones

Rules

Ports

firewall-cmd --permanent --zone=public --add-port=25565/tcp --add-port=19132/udp

Port Range

firewall-cmd --permanent --zone=public --add-port=40000-40030/udp

Remove Ports

firewall-cmd --permanent --zone=public --remove-port=25565/tcp --remove-port=19132/udp

Port Range

firewall-cmd --permanent --zone=public --remove-port=40000-40030/udp