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

Remove UFW rules on Ubuntu when needed—install with
apt install ufw
add rules like
ufw allow 22
and
ufw allow 80
then enable with
ufw enable
List with
ufw status numbered
—e g \"[1] 22/tcp ALLOW Anywhere\" Delete rule 1 with
ufw delete 1
confirm with \"y\" and recheck status—expect \"22\" gone Add back if needed with
ufw allow 22
On DigitalOcean this adjusts MySQL or FTP access—test SSH after deletion with
ssh user@ip
(expect failure) ensuring uptime by refining rules dynamically without rebooting

Back to All Tips