May 2026
A minimal firewall for a single VPS
Default deny for incoming traffic, allow SSH, HTTP and HTTPS, and nothing else. With ufw this is four commands.
Logging
Use ufw logging low. Higher levels mostly record internet background noise.
Default deny for incoming traffic, allow SSH, HTTP and HTTPS, and nothing else. With ufw this is four commands.
Use ufw logging low. Higher levels mostly record internet background noise.