KeetonHosting.com KH
KeetonHosting.com

Configure the VPS firewall

Browse the shop → Call (480) 624-2500
VPS & Dedicated // updated 2026-07-22

Configure the VPS firewall

firewalld and ufw quick reference with sane defaults.

firewalld (AlmaLinux/Rocky/CentOS)

sudo firewall-cmd --permanent --add-service=ssh
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --reload

ufw (Ubuntu/Debian)

sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow OpenSSH
sudo ufw allow http
sudo ufw allow https
sudo ufw enable

Still stuck? Our engineers answer the phone 24/7 — (480) 624-2500.