Current time: 11-16-2024, 10:37 AM Hello There, Guest! (LoginRegister)


Post Reply 
isp behind NAT
Author Message
medisoft Offline
Newbie
*

Posts: 6
Joined: Jun 2009
Reputation: 0
Post: #1
isp behind NAT
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
(This post was last modified: 06-16-2009 04:04 AM by medisoft.)
06-16-2009 03:06 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: isp behind NAT
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
06-16-2009 06:39 AM
Visit this user's website Find all posts by this user Quote this message in a reply
medisoft Offline
Newbie
*

Posts: 6
Joined: Jun 2009
Reputation: 0
Post: #3
RE: isp behind NAT
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
06-16-2009 07:58 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: isp behind NAT
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
06-16-2009 03:51 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)