Configuring UFW
If you’re having trouble connecting to certain services, here are some tips to configure UFW (Uncomplicated Firewall).
Allow SSH Traffic (Port 22)
If SSH is blocked, allow it with:
sudo ufw allow ssh
Allow V2Ray Traffic (Port 1080 or 443)
For V2Ray or other services, allow the necessary ports:
sudo ufw allow 1080/tcp
or
sudo ufw allow 443/tcp
Check UFW Status
To view active firewall rules, use:
sudo ufw status verbose
Re-enable UFW
If UFW is disabled, enable it with:
sudo ufw enable
Reset UFW
To start fresh, reset UFW:
sudo ufw reset
Let me know if you need help with specific UFW configurations!