Web Hosting & VPS Tips

Unleash Your Server Potential with Expert Insights

Over $120 Million in Payouts!
Learn to Day Trade Futures!

Category: VPS Setup

Block specific IPs with UFW on Ubuntu—install with
apt install ufw
then deny an IP (e g 203 0 113 1) with
ufw deny from 203.0.113.1
Allow SSH (ufw allow 22) set defaults with
ufw default deny incoming
and enable with
ufw enable
List rules with
ufw status numbered
—expect \"DENY 203 0 113 1\" Add logging with
ufw logging on
—check /var/log/ufw log for blocks like \"[UFW BLOCK] SRC=203 0 113 1\" On Vultr this stops known threats to MySQL or FTP—test by pinging from the denied IP expecting no response ensuring uptime without manual bans like Fail2ban

Back to All Tips