FirewallD Check firewall status Bashfirewall-cmd --state Open ports CustomSSHHTTP/HTTPS Bashfirewall-cmd --add-port=<port>/<protocol> --permanent # (1) firewall-cmd --add-port=<portFrom>-<portTo>/<protocol> --permanent # (2) firewall-cmd --reload # (3) One port Range ports Reload firewalld config Bashfirewall-cmd --zone=public --add-service=ssh --permanent firewall-cmd --reload Bashfirewall-cmd --zone=public --add-service=http --permanent firewall-cmd --zone=public --add-service=https --permanent firewall-cmd --reload Sources How To Set Up a Firewall Using FirewallD on CentOS 7