Web Hosting & VPS Tips

Unleash Your Server Potential with Expert Insights

Hosting provided by: Cloudways
Free to Try! Up to 40% Off!

Category: VPS Setup

Allow multiple ports in one UFW rule on Ubuntu—install with
apt install ufw
then run
ufw allow 22,80,443/tcp
to open SSH HTTP and HTTPS Set
ufw default deny incoming
enable with
ufw enable
and verify with
ufw status
—expect \"22/tcp ALLOW Anywhere\" \"80/tcp ALLOW Anywhere\" \"443/tcp ALLOW Anywhere\" Test with
ssh user@ip
and
curl http://ip
—expect responses On Vultr this streamlines MySQL and phpMyAdmin setup—add logging with
ufw logging on
to track in /var/log/ufw log ensuring uptime with concise rule management

Back to All Tips