ispCP - Board - Support
change ip/ dual IP when ispCP 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: change ip/ dual IP when ispCP behind nat (/thread-12627.html)



change ip/ dual IP when ispCP behind nat - bitte - 01-09-2011 06:12 AM

Hello Forum,

if I have following Setup:

ispCP Server has internal IP-Address (e.g. 192.168.0.200) and I have this IP-Address natted from outside (public IP Address e.g. 141.14.120.200), and I want the customer use its own DNS Entries or Website I configured ispCP to listen on both IP Addresses.

Code:
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
    link/ether 00:aa:aa:aa:aa:c3 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.200/24 brd 192.168.0.255 scope global eth0
    inet 141.14.120.200/32 brd 141.14.120.255 scope global eth0:2
       valid_lft forever preferred_lft forever

But unfortuenately, this does not work for the apache, which answers
from outside with the admin website.
when using from inside the customer's website exists.

So - what to do to get a system setup to hide internal ip-addresses and use the external/public one.
If setup ispcp i need to give the system the internal ip address.

Best regards.
Best might be, if vhost entries might be created both for the internal and the external IP Address. Is this possible? Currently there is only one IP Address configured for a domain, even if i have a reseller who provides both external and internal IP.


RE: change ip/ dual IP when ispCP behind nat - joximu - 01-09-2011 10:37 AM

Your server does not need to know the external ip (as long as there is no bind/DNS running).

So, setup ispcp with the internal ip.

your customer sets up a dns somwhere (in the internet) but uses your external IP for the website and MX entry. And you configure the NAT to route Port 80, 25 and others to your server...

/J


RE: change ip/ dual IP when ispCP behind nat - bitte - 01-09-2011 07:07 PM

But there is one Problem:
If the user wants to create own DNS entries, then the internal IP is shown.

So what pssibilities are there, to hide the internal IP for users?

As tested: NAT and working with internal IP works well. But the user should not see the internal Address.

Best regards.

b.


RE: change ip/ dual IP when ispCP behind nat - joximu - 01-09-2011 08:45 PM

Deactivate dns management - since you cannot use the DNS on ispcp.

Otherwise you need to patch the ispcp code....

Maybe it's enough to change the bind templates for ispcp.
Search the forum - I think there are others who use NAT with a webserver...

/J