Skip to content
Maxim Orlov Logo

Helping Node.js developers write robust applications 🚀

Secure Your VPS: Setup Firewall

💡 Using a firewall to block incoming traffic on non-public ports is an essential part to securing a VPS:

➡️ ufw default deny incoming
➡️ ufw allow ssh
➡️ ufw allow http
➡️ ufw allow https
➡️ ufw enable

Setting up a firewall with ufw in Ubuntu by blocking all incoming traffic except SSH, HTTP & HTTPS.