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 specific services with UFW on Ubuntu—install with
apt install ufw
then permit SSH with
ufw allow ssh
(port 22) HTTP with
ufw allow http
(port 80) and HTTPS with
ufw allow https
(port 443) Set
ufw default deny incoming
and enable with
ufw enable
Verify with
ufw status
—expect \"22/tcp ALLOW Anywhere\" \"80/tcp ALLOW Anywhere\" Test SSH with
ssh user@ip
and HTTP with
curl http://ip
—expect responses On Vultr this secures MySQL and phpMyAdmin—add logging with
ufw logging on
to track access in /var/log/ufw log ensuring uptime with minimal open ports

Back to All Tips