This post lists Inbound and Outbound Ports used by the cPanel and WHM software that should be opened if you’re running WHM behind a firewall.