It is recommend to perform these actions on new installation of cPanel & WHM and not to attempt a 1:1 NAT configuration on an existing production server. The installer will detect one’s server on a NAT-configured network after the installation of cPanel and WHM . If detected, the server will configure itself for NAT mode and attempt to naturally map the local IP addresses to public IP addresses. One can read our How to Configure Your Firewall documentation for more knowledge on cPanel Services.
For completing this process, one has to perform the following actions:
It can be managed by the following WHM interfaces:
Each of the interface will display the warning notice NAT mode enabled if it is enabled on one’s server.
Also, if multiple local IP addresses twins with the same public IP address, then the system will only map the first local IP address in the /var/cpanel/cpnat file.
Perform the steps in case if you desire to use a different IP address lookup service other than local IP address to public IP address.
To get more information on build_cpnat script, one can run the command:
The steps needed and procedure required for installing cPanel and WHM over NAT-Configured Network is reviewed in this article.