How to allow port with firewalld 05/03/2024 1 min read (optional) Check the current status of the firewall sudo firewall-cmd --statesudo firewall-cmd --list-ports Allow the port sudo firewall-cmd --zone=public --add-port=[port_number]/tcp --permanent Reload the firewall sudo firewall-cmd --reload References: https://firewalld.org/documentation/howto/open-a-port-or-service.html # firewalld # linux # security # cli