Current time: 11-22-2024, 08:58 PM Hello There, Guest! (LoginRegister)


Post Reply 
Private IP Address
Author Message
Macsloverd Offline
Junior Member
*

Posts: 17
Joined: Sep 2009
Reputation: 0
Post: #1
Private IP Address
I have been using IspCP for several months and it is great.

last week I tried to install IspCP on a server which has a private IP address like 192.168.1.1 and it seems not working properlly.

Here is my network structure:

ADSL (20MB)
|
Modem/Router (Public IP address, DMZ pointed to IspCP Server)
|
IspCP Server (Private IP address)

TLDs are all directed to the Public IP address

I can visit the control pannel by using the the TLD, and setting up Virtual Hosts, however, it shows no file after uploading the site to the VH.

Does IspCP support this type of network structure? if so can anyone tell me how to configure it in order to use with this type of stucture?

Thanks in advance.
12-21-2009 07:15 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: Private IP Address
(12-21-2009 07:15 AM)Macsloverd Wrote:  Does IspCP support this type of network structure? if so can anyone tell me how to configure it in order to use with this type of stucture?

No, it doesn't. Basically, this setup would require the DNS service to announce a different IP than the one used in all other configurations. As ispcp is not handling this situation, you'll have to manage your domains' DNS service externally. As long as you create the proper records for them, everything else will work properly Smile
12-21-2009 07:36 AM
Visit this user's website Find all posts by this user Quote this message in a reply
motokochan Offline
Member
***

Posts: 274
Joined: Jul 2008
Reputation: 1
Post: #3
RE: Private IP Address
You actually can set it up to "work", but it does break a few things like the system status page. I've managed this configuration for a customer.

If you are interested in the steps to do this, let me know and I'll draft up something here and maybe refine it for the Documentation.
12-21-2009 07:45 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Macsloverd Offline
Junior Member
*

Posts: 17
Joined: Sep 2009
Reputation: 0
Post: #4
RE: Private IP Address
(12-21-2009 07:36 AM)kilburn Wrote:  
(12-21-2009 07:15 AM)Macsloverd Wrote:  Does IspCP support this type of network structure? if so can anyone tell me how to configure it in order to use with this type of stucture?

No, it doesn't. Basically, this setup would require the DNS service to announce a different IP than the one used in all other configurations. As ispcp is not handling this situation, you'll have to manage your domains' DNS service externally. As long as you create the proper records for them, everything else will work properly Smile

Thanks! and actually I do manage the DNS record externally, though the Bind server is running. So the DNS is not quite a issue.
(12-21-2009 07:45 AM)motokochan Wrote:  You actually can set it up to "work", but it does break a few things like the system status page. I've managed this configuration for a customer.

If you are interested in the steps to do this, let me know and I'll draft up something here and maybe refine it for the Documentation.

Great! I really appreciate that!

Well, just in case, I don't need the Bind9 DNS service since I always use an external DNS server.

Your reply saves my life!

Thanks a lot!
(This post was last modified: 12-21-2009 08:03 AM by Macsloverd.)
12-21-2009 08:00 AM
Find all posts by this user Quote this message in a reply
motokochan Offline
Member
***

Posts: 274
Joined: Jul 2008
Reputation: 1
Post: #5
RE: Private IP Address
First, stop ispcp_daemon while you make these edits.

Next, you'll need to edit a few templates to remove references to the internal IP.

Specifically, edit:
/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

For the first three, find the VirtualHost header, and change the {whatever_IP}:80 to read *:80. For the fourth file, Find the NameVirtualHost line, and set {IP}:80 to *:80.

Now, follow the directions in Howto regenerate the config files.

This should allow your websites to be accessed on any IP that is bound on the box, instead of by the internal IP only.

As a note, you'll get lots of Apache warnings when you start or restart the service (one warning per site) because of duplicated directives since we wildcarded the IP. This is fine and won't break anything. Fixing those would take a lot more work and I'd rather focus on building proper NAT support into the application.
(This post was last modified: 12-21-2009 08:13 AM by motokochan.)
12-21-2009 08:10 AM
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)