Port 2087 is the WHM (Web Host Manager) HTTPS port for server-level administration of cPanel servers. WHM provides root-level control: creating accounts, managing DNS clusters, configuring Apache/Nginx, and applying system updates. Compromise of port 2087 access means full server root equivalent – restrict to management IPs only.
Port Number
2087
Protocol
TCP
Service
Web Host Manager (SSL)
Range
IANA Registered (1024–49151)
Check CSF firewall rules for port 2087 (should be IP-restricted)
csf -l | grep 2087Verify 2FA is enforced for WHM access
whmapi1 twofactorauth_policy_statusCheck recent WHM/root login history
last -f /var/log/wtmp | grep 'whm\|root' | head -10Recent WHM access log entries
cat /usr/local/cpanel/logs/access_log | grep ':2087' | tail -10curl -k https://server:2087/
whmapi1 listaccts
csf -a ADMIN_IP # whitelist adminWHM (WebHost Manager) is the server-level admin interface for cPanel, introduced in the early 2000s. Port 2087 was chosen as 2083+4 (adjacent to cPanel ports). WHM provides: account provisioning, DNS cluster management, EasyApache (PHP/Apache config), AutoSSL, security policies, and server migration tools. It's the de facto standard for managing shared hosting servers (used by thousands of hosting providers worldwide).
How do I restrict WHM to specific IPs?
In CSF (ConfigServer Firewall): 1. Add admin IPs to /etc/csf/csf.allow (format: tcp|in|d=2087|s=YOUR_IP). 2. Remove 2087 from TCP_IN in /etc/csf/csf.conf. 3. csf -r to reload. Alternative without CSF: WHM → Security Center → Host Access Control → add rule: ALL deny, then your-IP allow. This IP restriction is the single most important WHM security measure.
Should I disable root login to WHM?
You can't fully disable root WHM access (it's needed for server-level operations). Instead: (1) enable 2FA for root, (2) IP-restrict port 2087, (3) use a WHM reseller account for day-to-day operations with limited ACLs, (4) only login as root for server-level changes (EasyApache, cluster config, security updates). Create audit trail: WHM → Security Center → Audit Log.