NAT not Working
I have a new instance I'm launching on AWS and can't get WHM to pickup the NAT. I've tried with the cPanel AMI and installing from scratch on a fresh system. I have an elastic IP attached to the instance. NAT was picked up just fine on the DNS ONLY servers I launched today to use with this instance.
I have manually added /etc/cpsources.conf with the included line mentioned in the docs.
Running /scripts/build_cpnat returns:
What do I do to get WHM to pick this up?
warn [build_cpnat] Unable to map 172.xxx.xxx.xxx
die [build_cpnat] No publicly routable addresses found.
exit level [die] [pid=1556] (No publicly routable addresses found.)
What do I do to get WHM to pick this up?
-
To add to this, WHM is seeing the NAT on some level. After running /scripts/build_cpnat
/var/cpanel/cpnat does exist and has the private and public ip's in that file. However, trying publicIP:2087 returns unreachable. I'm not sure what else goes into configuring the NAT but something is missing if the build script is throwing that error.0 -
Hi @dstana It sounds like a configuration/routing issue but it's more of an issue that you need to discuss with Amazon, either the IP was added incorrectly or it's not routed properly would be my assumption here. You might look over the blog post we have here How to Build a cPanel Hosting Environment on Amazon AWS | cPanel Blog it might provide some insight/help Thanks! 0 -
I guess the documentation is wrong here: 1:1 NAT - Version 68 Documentation - cPanel Documentation Running the build_cpnat script didn't work. This was resolved by skipping step 1 in the docs. 0 -
Hi @dstana By referencing Step 1 are you referencing this? Open the /etc/cpsources.conf file with a text editor and add the following line: MYIP=http://myip.cpanel.net/v1.0/
If so this portion of the documentation is option as indicated by the line above: [QUOTE]The /usr/local/cpanel/scripts/build_cpnat script uses the0 -
That's right. cPanel support commented that line out and it worked. 0
Please sign in to leave a comment.
Comments
5 comments