Prerequisites
Before allowing web traffic, make sure you have:
- SSH access to your VPS
- Root or sudo privileges
Allow HTTP (Port 80)
Connect to your VPS:
ssh hxroot@YOUR_SERVER_IP -p 22
sudo ufw allow http
Or explicitly:
sudo ufw allow 80/tcp
Allow HTTPS (Port 443)
sudo ufw allow https
Or:
sudo ufw allow 443/tcp
Allow Both at Once
sudo ufw allow 80,443/tcp
Verify
sudo ufw status
✅ Web traffic is now allowed through the firewall.