#1 (permalink)  
Old 06-09-2005, 09:04 AM
Registered User
 
Join Date: Mar 2005
Posts: 14
quortex is on a distinguished road
Using CPanel with NAT - Urgent!

Hi all,

I have a really urgent problem if anyone can help me out I would seriously appreciate it.

I have about 120 sites on different IP addresses. The IPs point to our hardware firewall and the firewall then NATs these IPs to our internal address. The internal address is a box that runs cpanel and has all the sites set to the boxes single IP. We cannot currently easily change this.

So that allows our sites to look like they are on separate IP addresses to the outside world but they are all on one box and on one internal IP.

Now when I add accounts to CPanel I have to then go into the DNS entry and change the internal IP address to the correct external IP I want to assign to that site. This works absolutely fine although it is a bit of a pain.

The problem is that then if someone uses cpanel to add a subdomain etc. the apache configuration file is updated with the external ip address from dns rather than the internal ip address of the box. I need it to always put in the IP address assigned to the site rather than the IP assigned at the DNS level. This is the IP address shown when you list accounts.

This must be a common problem? Is there a configuration option I can change so that this occurs? Or do I HAVE to create a script to go through the apache config etc. and correct the entries?

Surely other people must use CPanel with this type of setup? Thanks in advance. Hope that all makes sense.

Kind Regards,
Mark
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-10-2005, 12:29 PM
brianoz's Avatar
Registered User
 
Join Date: Mar 2004
Location: Melbourne, Australia
Posts: 984
brianoz is on a distinguished road
If you go into the DNS section of the WHM menu, you'll see everything you need under "Edit Zone templates". There might be another way to do it, but as you need to be careful not to change the IP address of the machine this seems one of the best solutions.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:31 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc