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 UFW logging levels on Ubuntu—install with
apt install ufw
then adjust with
ufw logging high
for detailed logs (e g packet headers) Allow SSH with
ufw allow 22
enable with
ufw enable
and check with
ufw status verbose
—expect \"Logging: on (high)\" View logs with
tail -f /var/log/ufw.log
—e g \"[UFW BLOCK] SRC=203 0 113 1 LEN=40\" Lower to ufw logging low for less noise if needed On DigitalOcean this debugs MySQL or FTP blocks—rotate logs with /etc/logrotate d/ufw (daily rotate 7) ensuring uptime with actionable insights

Back to All Tips