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

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

Tags:
  1. nisamudeen97

    nisamudeen97 Well-Known Member

    Joined:
    Jul 7, 2010
    Messages:
    49
    Likes Received:
    5
    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:
    604
    Likes Received:
    42
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,870
    Likes Received:
    1,811
    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.
     
    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