ispCP - Board - Support
isp behind NAT - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: isp behind NAT (/thread-6969.html)



isp behind NAT - medisoft - 06-16-2009 03:06 AM

Hi! i want to know if there is a way to use ispcp behind a NAT.

I have a server and I want to test ispcp in a virtual machine, but that virtual machine has ip address like 10.0.0.1, and i need that ispcp knows that my external IP is a.b.c.d but my internal one is 10.0.0.1

how can I do that?

thanks.
i found that changing various templates:
/etc/apache2/sites-available/00_master.conf
/etc/ispcp/apache/00_master.conf
/etc/ispcp/apache/parts/als_entry.tpl
/etc/ispcp/apache/parts/dmn_entry.tpl
/etc/ispcp/apache/parts/sub_entry.tpl
/etc/ispcp/apache/parts/vh_entry.tpl

and changing all the IP fields to * (like *:80) does the trick for this, but this doesn't work for DNS

for that is needed to install ISPCP with the real IP instead of the NAT ip....., it seems to work for me Smile


RE: isp behind NAT - joximu - 06-16-2009 06:39 AM

a) don't do this...

b) if not a) then decide which IP you want to be handled by ispCP.
The internal (wich is used for apache) or the external (which is used for bind).
Since you don't use bind behind a NAT - do you? I'd say: give ispCP the internal address and configure the DNS manually on two external bind servers...

/J


RE: isp behind NAT - medisoft - 06-16-2009 07:58 AM

mm, yes, I'm using DNS behind NAT....

i want to control everything of the hosting with ispCP, i don't want to manually control DNS....

I was looking and I found that maybe there is another problem not related with my vbox configuration, it seems to be max open files limit issue, but I'm not sure right now....

but as a wishlist feature, ispCP should handle "internal" or NAT address and "external" address, some type of configuration like:

Are you behind nat? (yes/no)
if yes then What is your public IP and your private IP


(06-16-2009 06:39 AM)joximu Wrote:  a) don't do this...

b) if not a) then decide which IP you want to be handled by ispCP.
The internal (wich is used for apache) or the external (which is used for bind).
Since you don't use bind behind a NAT - do you? I'd say: give ispCP the internal address and configure the DNS manually on two external bind servers...

/J



RE: isp behind NAT - joximu - 06-16-2009 03:51 PM

I don't know if many ISPs have their server behind a NAT Router...
but nevertheless, I'd change the templates in /etc/ispcp/bind/parts/db_master_e.tpl (maybe others) and write down the external IP there.
Giving ispCP only the internal IP...

/J