Skip to content
statance
MenuClose
← All ports

Port 2087: WHM (HTTPS)

High risk

Port 2087 is WebHost Manager over HTTPS, the root-level administration panel for cPanel servers. Port 2086 is the unencrypted version. It should not be reachable from the public internet.

Port
2087
Protocol
TCP
Service
WHM (HTTPS)
Expose to internet?
No
Also used by
cPanel & WHM hosting servers

Is port 2087 safe to open?

WHM controls the whole server, including every hosting account. Unlike cPanel, only administrators and resellers need it, so it should not be open to the whole internet. A compromised root WHM login is equivalent to root on the machine.

How to secure WHM (HTTPS)

  • Allow 2087 only from your admin IP addresses using WHM Host Access Control or the firewall.
  • Block 2086 so WHM is only served over TLS.
  • Enable two-factor authentication for root and reseller logins.
  • Enable cPHulk brute-force protection.

Check if port 2087 is open

Linux: what is listening on this port

sudo ss -tlpn | grep ':2087 '

Windows (PowerShell): what is listening

Get-NetTCPConnection -LocalPort 2087 -State Listen | Select-Object LocalAddress, OwningProcess, @{n='Process';e={(Get-Process -Id $_.OwningProcess).Name}}

From another machine: is it reachable

nc -zv HOST 2087 # or nmap -p 2087 HOST # Windows Test-NetConnection HOST -Port 2087

Test the WHM (HTTPS) service itself

curl -skI https://HOST:2087/

Restrict port 2087 in the firewall

Replace 10.0.0.0/8 with the network or address that needs access. Docker publishes container ports through its own iptables rules, which bypass ufw; bind published ports to 127.0.0.1 (-p 127.0.0.1:2087:2087) instead of relying on the host firewall.

ufw: allow only your private network, deny everyone else

sudo ufw allow from 10.0.0.0/8 to any port 2087 proto tcp sudo ufw deny 2087/tcp

firewalld: allow one source network only

sudo firewall-cmd --permanent --remove-port=2087/tcp sudo firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="10.0.0.0/8" port port="2087" protocol="tcp" accept' sudo firewall-cmd --reload

iptables

sudo iptables -A INPUT -p tcp --dport 2087 -s 10.0.0.0/8 -j ACCEPT sudo iptables -A INPUT -p tcp --dport 2087 -j DROP

Windows Firewall (PowerShell, as Administrator)

New-NetFirewallRule -DisplayName "Block 2087 from internet" -Direction Inbound -Protocol TCP -LocalPort 2087 -RemoteAddress Internet -Action Block

Monitor port 2087

Run a TCP port monitor against your public IP on port 2087: here, a failed connection is the healthy result, so you know the firewall is still doing its job. On Linux, the Statance agent also reports every listening port on the server. TCP port monitoring.

Related ports

Port 2083cPanel (HTTPS)Medium risk
Port 22SSHMedium risk
Port 10000WebminHigh risk

FAQ

What is port 2087 used for?

Port 2087 is WebHost Manager over HTTPS, the root-level administration panel for cPanel servers. Port 2086 is the unencrypted version. It is also used by cPanel & WHM hosting servers.

Is it safe to open port 2087?

Not to the public internet. WHM controls the whole server, including every hosting account. Unlike cPanel, only administrators and resellers need it, so it should not be open to the whole internet. A compromised root WHM login is equivalent to root on the machine.

Is port 2087 TCP or UDP?

WHM (HTTPS) uses TCP on port 2087.

How do I check if port 2087 is open?

On the server, run sudo ss -tulpn | grep ':2087 ' (Linux) or Get-NetTCPConnection -LocalPort 2087 (Windows) to see what is listening. From another machine, run nc -zv HOST 2087 or Test-NetConnection HOST -Port 2087.

All ports →

Know the moment a port stops answering.

TCP, HTTP, DNS and SSL checks from six regions, plus server metrics from a one-line agent.