Port 2082 is the cPanel web hosting control panel HTTP port. cPanel provides website, email, database, and DNS management for shared hosting accounts. Port 2082 is unencrypted – always use port 2083 (HTTPS) instead. Exposed cPanel ports are prime targets for credential stuffing and brute-force attacks against hosting accounts.
Port Number
2082
Protocol
TCP
Service
cPanel Web Interface
Range
IANA Registered (1024–49151)
Check if port 2082 redirects to HTTPS (should redirect to :2083)
curl -s -o /dev/null -w '%{redirect_url}' http://server:2082/Check CSF firewall (common on cPanel) for blocked IPs
csf -g IP_ADDRESSVerify Always Redirect to SSL is enabled
whmapi1 get_tweaksetting key=alwaysredirecttosslCheck which cPanel ports are active
ss -tlnp | grep -E '2082|2083'curl http://server:2082/login/
ufw allow from ADMIN_IP to any port 2082
csf -a ADMIN_IPcPanel was created by Nick Koston in 1996 as a Unix web hosting control panel. Ports 2082/2083 were chosen as distinctive high-numbered ports unlikely to conflict with hosted websites. cPanel became the dominant shared hosting panel (estimated 1M+ servers). The HTTP port (2082) predates widespread HTTPS adoption – it remained as a fallback but should be disabled on all modern installations. cPanel was acquired by WebPros (OAKLEY Capital) in 2018.
How do I force HTTPS-only on cPanel?
In WHM: Tweak Settings → Redirects → 'Always redirect to SSL/TLS' = ON. This makes port 2082 redirect to 2083 automatically. Then in CSF firewall: remove 2082 from TCP_IN to block direct HTTP access entirely. Also enable 'Require SSL' in WHM → Security Center. For the webmail ports: same approach (2095 → 2096 redirect).
Is cPanel secure enough for production hosting?
cPanel itself is reasonably secure when properly configured: enable 2FA (WHM → Two-Factor Authentication), restrict WHM to specific IPs (WHM → Security Center → Host Access Control), enable cPHulk brute-force protection, keep AutoSSL active, disable FTP (use SFTP only). The bigger risk is the hosted applications (WordPress, Joomla) – cPanel provides the isolation but can't protect poorly written PHP code.