Hostxpeed
Login Get Started →
Control Panel

How to Enable Firewall in HestiaCP

5 min read
1 views
Apr 29, 2026

Prerequisites

Before enabling the firewall, make sure you have:

  • Admin access to HestiaCP
  • Current SSH session (to avoid lockout)

⚠️ Always allow SSH port BEFORE enabling firewall to avoid locking yourself out!

Method 1: Enable via HestiaCP Web Interface

Step 1: Log in to HestiaCP

https://YOUR_SERVER_IP:8083

Step 2: Navigate to SERVER Section

Click on SERVER in the top menu bar.

Step 3: Click Firewall Tab

Click on the Firewall tab.

Step 4: Add SSH Rule First

Click + Add Firewall Rule:

  • Action: ACCEPT
  • Protocol: TCP
  • Port: 22 (or your SSH port)
  • IP Address: 0.0.0.0/0 (all)

Step 5: Enable Firewall

Click the Enable Firewall button.

Step 6: Verify

Status changes to Active.

Method 2: Enable via SSH (UFW)

ssh hxroot@YOUR_SERVER_IP -p 22

Allow SSH:

ufw allow 22/tcp

Allow HestiaCP port:

ufw allow 8083/tcp

Enable firewall:

ufw enable

Check status:

ufw status verbose

Default Firewall Rules in HestiaCP

When enabled, HestiaCP typically allows:

PortService
22/TCPSSH
80/TCPHTTP
443/TCPHTTPS
21/TCPFTP
25/TCPSMTP
465/TCPSMTPS
587/TCPSMTP Submission
993/TCPIMAPS
995/TCPPOP3S
8083/TCPHestiaCP

Check Firewall Status

ufw status

✅ Firewall has been enabled successfully!

Was this article helpful?