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

Filter by protocol with UFW on Ubuntu—install with
apt install ufw
then allow TCP SSH with
ufw allow proto tcp to any port 22
UDP DNS with
ufw allow proto udp to any port 53
and enable with
ufw enable
Check with
ufw status
—expect \"22/tcp ALLOW Anywhere\" \"53/udp ALLOW Anywhere\" Test SSH with
ssh user@ip
and DNS with
dig @ip google.com
—expect responses On Vultr this fine-tunes MySQL (TCP 3306) or FTP access—add logging with
ufw logging on
to /var/log/ufw log ensuring uptime with protocol-specific rules

Back to All Tips