Hostxpeed
Login Get Started →
Getting Started

How to Check Firewall Status

2 min read
21 views
Jun 10, 2026

Prerequisites

Before checking firewall status, make sure you have:

  • SSH access to your VPS
  • Root or sudo privileges

Check UFW Status

Connect to your VPS:

ssh hxroot@YOUR_SERVER_IP -p 22
sudo ufw status

Output examples:

Status: active                     # Firewall is ON
Status: inactive                   # Firewall is OFF

Verbose status with rules:

sudo ufw status verbose

Numbered rules (easy to delete):

sudo ufw status numbered

Check iptables (Underlying Firewall)

sudo iptables -L -n

✅ You can now check firewall status and rules.

Was this article helpful?