Security 2025-04-10
UFW Firewall: Essential VPS Security
What is UFW?
UFW (Uncomplicated Firewall) is a user-friendly front-end for iptables. It's the easiest way to secure your VPS.
Setup
sudo ufw allow 22/tcp # SSH
sudo ufw allow 80/tcp # HTTP
sudo ufw allow 443/tcp # HTTPS
sudo ufw enableCommon Commands
sudo ufw status # Check status
sudo ufw allow 3306/tcp # MySQL
sudo ufw deny 8080 # Block port
sudo ufw delete allow 3306 # Remove rule
#Sudofree#UFW Firewall