How to allow port with firewalld
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: