PortGate

Resources · Troubleshooting · Q&A

UFW is installed and still inactive

An inactive firewall does not enforce the rules you wrote.

ufw enable was never run, or a cloud image left it off.

Run sudo ufw status verbose. If it says inactive, the allow and deny lines are not in effect. Enable it only while an existing SSH session stays open, and keep an allow for 22.