D
DCR
Guest
Mapping internal and external IP addresses
I searched through the forums, and seem to only find other threads where people are confused. No real answers to this issue. I am really hoping that I just missed something, and someone can set me straight.'
Issue:
Server is behind a Cisco firewall, and hence uses internal IP addresses, which is mapped through the firewall using NAT.
This means that for hosting to work, I have to select an Internal IP (like for example 10.0.0.1) as the hosting IP.
However Plesk then automatically assumes that the new domain or subdomain should also have a DNS that matches, which of course does not work. The internal IP cannot be announced on external DNS. The external IP should be.
This means that every time I define a new domain/subdomain, I have to hurry into the DNS config and manually change the A and PTR records and any other uses of the internal IP from internal to external IP.
Hard coding the DNS template from showing '<ip> to containing a fixed IP address does not work either for multiple reasons:
a) I have multiple external and internal IPs. Hard coding template to just one of them will not work.
b) Apparently the template is not always used. Creating alias domains or subdomains, the internal hosting address seem to be used suddenly. The Plesk created DNS has the internal hosting IP in it, and not the DNS zone template's hard-coded IP.
If I remember to to change the DNS immediately as a work-around, not a big issue. However, if I forget and try to access the new (sub)domain from outside the server before fixing the Plesk created DNS, suddenly the Internet has this invalid internal IP cached. Even after I fix it, I have to wait for the caching to die to be able to access the site.
Soooo... Here is what I would really like as an add-on in Plesk to support servers behind firewalls:
In the server "IP address" section, it would be great, if there was a mapping function, where the assigned hosting IPs could be mapped directly. When Plesk sets up the new domain, it should then use the assigned internal IP (like 10.0.0.1) for hosting, but automatically know to map the internal IP to a corresponding external IP before sticking it into the DNS configuration.
This way the DNS would be set up correctly from the beginning, and the DNS zone template could stay at its default using '<ip>' notation. Except that the '<ip>' would be replaced with the mapped external IP, rather than the hosting IP (the internal address).
Please tell me that this mapping function exists already, and that I was merely too thick-headed to find it.
I searched through the forums, and seem to only find other threads where people are confused. No real answers to this issue. I am really hoping that I just missed something, and someone can set me straight.'
Issue:
Server is behind a Cisco firewall, and hence uses internal IP addresses, which is mapped through the firewall using NAT.
This means that for hosting to work, I have to select an Internal IP (like for example 10.0.0.1) as the hosting IP.
However Plesk then automatically assumes that the new domain or subdomain should also have a DNS that matches, which of course does not work. The internal IP cannot be announced on external DNS. The external IP should be.
This means that every time I define a new domain/subdomain, I have to hurry into the DNS config and manually change the A and PTR records and any other uses of the internal IP from internal to external IP.
Hard coding the DNS template from showing '<ip> to containing a fixed IP address does not work either for multiple reasons:
a) I have multiple external and internal IPs. Hard coding template to just one of them will not work.
b) Apparently the template is not always used. Creating alias domains or subdomains, the internal hosting address seem to be used suddenly. The Plesk created DNS has the internal hosting IP in it, and not the DNS zone template's hard-coded IP.
If I remember to to change the DNS immediately as a work-around, not a big issue. However, if I forget and try to access the new (sub)domain from outside the server before fixing the Plesk created DNS, suddenly the Internet has this invalid internal IP cached. Even after I fix it, I have to wait for the caching to die to be able to access the site.
Soooo... Here is what I would really like as an add-on in Plesk to support servers behind firewalls:
In the server "IP address" section, it would be great, if there was a mapping function, where the assigned hosting IPs could be mapped directly. When Plesk sets up the new domain, it should then use the assigned internal IP (like 10.0.0.1) for hosting, but automatically know to map the internal IP to a corresponding external IP before sticking it into the DNS configuration.
This way the DNS would be set up correctly from the beginning, and the DNS zone template could stay at its default using '<ip>' notation. Except that the '<ip>' would be replaced with the mapped external IP, rather than the hosting IP (the internal address).
Please tell me that this mapping function exists already, and that I was merely too thick-headed to find it.
Last edited by a moderator: