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

Set up UFW on a Debian VPS for straightforward firewall rules—install with
apt update && apt install ufw
then allow SSH with
ufw allow 22
HTTP with
ufw allow 80
and HTTPS with
ufw allow 443
Enable with
ufw enable
—answer \"y\" to proceed setting a deny-by-default policy Check status with
ufw status verbose
expecting \"22/tcp ALLOW Anywhere\" among others Add FTP with
ufw allow 21
if using vsftpd and enable logging via
ufw logging medium
—view logs at /var/log/ufw log On Linode this secures MySQL and phpMyAdmin access balancing simplicity with robust protection for VPS uptime

Back to All Tips