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 NAT not working as expected

Discussion in 'Bind / DNS / Nameserver Issues' started by nisamudeen97, Nov 6, 2016.

Tags:
  1. nisamudeen97

    nisamudeen97 Well-Known Member

    Joined:
    Jul 7, 2010
    Messages:
    48
    Likes Received:
    4
    Trophy Points:
    58
    Location:
    Cochin
    cPanel Access Level:
    Root Administrator
    We are having local IP in our cpanel server and NAT is mapping 1:1 towards main IP. While we are using our own nameservers configured in the server we could see local IP being returned from dns hence we have checked with edit dns and found local ip 172.31.1.100 being used as A record as it should be meanwhile the transalation is not happening hence websites are not working. We have changed the A record manually to public IP to some domains and it started working again. Is there any permanent solution for this ?
     

    Attached Files:

    • nat.png
      nat.png
      File size:
      202.7 KB
      Views:
      5
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    542
    Likes Received:
    39
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Please make sure NAT is enable on your server. Check below documentation for more information :
    1:1 NAT - Documentation - cPanel Documentation
    If you have accidentally delete your cpnat file or the file becomes corrupted then rebuild it with the /scripts/build_cpnat script.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,029
    Likes Received:
    1,277
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you review the /var/cpanel/cpnat on your system and verify if it's correctly mapping the private IP addresses?

    Thank you.
     
Loading...

Share This Page