Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

cPanel behind 1:1 NAT and multiple public IPs

Discussion in 'Bind/DNS/Nameserver' started by InteractM, Jul 7, 2016.

  1. InteractM

    InteractM Well-Known Member

    Joined:
    Apr 2, 2013
    Messages:
    135
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Currently I have set 1:1 NAT to translate 1 public IP to 1 private IP. To get another public IP assigned to that cPanel (one client requested to get a static IP for them) it looks that I need to set another 1:1 NAT with their public IP and different private IP and add that IP as secondary to that box.

    Are there some options in the WHM to get this done or do I need to do that configuration via console/root access?
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    829
    Likes Received:
    26
    Trophy Points:
    178
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    You can use the /var/cpanel/cpnat file to map the public ips with their corresponding private ips
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. InteractM

    InteractM Well-Known Member

    Joined:
    Apr 2, 2013
    Messages:
    135
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Thanks for the tip. I have found it useful as well that page cpanelkb.net/enable-nat-behind-the-cpanel/
     
    #3 InteractM, Jul 7, 2016
    Last edited by a moderator: Jul 8, 2016
  4. InteractM

    InteractM Well-Known Member

    Joined:
    Apr 2, 2013
    Messages:
    135
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Getting problems with correct log format but I think it is related to mod_remoteip
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,665
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm happy to see you were able to address the issue with 1:1 NAT. Please ensure you open a separate thread if you are unable to address the log format issue.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice