The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cPanel behind 1:1 NAT and multiple public IPs

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

  1. InteractM

    InteractM Well-Known Member

    Joined:
    Apr 2, 2013
    Messages:
    133
    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:
    817
    Likes Received:
    22
    Trophy Points:
    18
    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
     
  3. InteractM

    InteractM Well-Known Member

    Joined:
    Apr 2, 2013
    Messages:
    133
    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:
    133
    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:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    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.
     
Loading...

Share This Page