Current time: 11-24-2024, 08:25 AM Hello There, Guest! (LoginRegister)


Post Reply 
change ip/ dual IP when ispCP behind nat
Author Message
bitte Offline


Posts: 2
Joined: Jan 2011
Reputation: 0
Post: #1
change ip/ dual IP when ispCP behind nat
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.
(This post was last modified: 01-09-2011 06:17 AM by bitte.)
01-09-2011 06:12 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: change ip/ dual IP when ispCP behind nat
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
01-09-2011 10:37 AM
Visit this user's website Find all posts by this user Quote this message in a reply
bitte Offline


Posts: 2
Joined: Jan 2011
Reputation: 0
Post: #3
RE: change ip/ dual IP when ispCP behind nat
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.
01-09-2011 07:07 PM
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: change ip/ dual IP when ispCP behind nat
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
01-09-2011 08:45 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)