Idempotent UFW Configuration Over SSH (Without Losing Your Connection)
A fresh cloud server or VPS comes with every port wide open. Your provider doesn't know what you're running, so they let everything through. This is fine for about five minutes — until the first bot finds your IP and starts probing every exposed service. If you&