How to Check Firewall Status on Ubuntu and AlmaLinux
Check firewall rules using UFW on Ubuntu or firewalld on AlmaLinux.
Firewall settings control which connections can reach your VPS. On Ubuntu, UFW is commonly used. Check it with sudo ufw status verbose. If UFW is active, review allowed ports such as SSH, HTTP, and HTTPS. On AlmaLinux, firewalld is common. Check it with sudo firewall-cmd --state and list open services with sudo firewall-cmd --list-all. Be careful before changing firewall rules, especially for SSH. Blocking the SSH port can lock you out. Before making changes, confirm your SSH port with your service details. If you run a web server, ports 80 and 443 usually need to be open. Contact support if you are unsure which ports are required.