A firewall blocks unwanted traffic before it reaches your applications. On CrazyNode VPS, you have three options: UFW (easiest), firewalld (RHEL-family), or raw iptables/nftables.
UFW (Ubuntu / Debian)
Allow SSH BEFORE enabling
Forgetting this step will lock you out. Use the VNC console to recover.
Allow additional services
Common UFW commands
firewalld (AlmaLinux / Rocky)
Network-level filtering
Every CrazyNode VPS also sits behind a network-level filter that blocks obvious DDoS traffic before it reaches your VM. Your local firewall protects against everything else.
Only open ports you actively use. Every open port is a potential attack surface.