I'm new to jails, but like to try them. I read different solutions, but can not find a answer for my questions. Maybe jails not working for me, because of my configuration settings. One of the question is:
I run a internet server and got only one real Internet-IP from the provider.
I use the apache IP-based with this "Internet-IP" for https and namebased for some own domain names (http://www.<domain>.<tld>).
When putting the webserver into the jail, its has been told that the jail should get its own IP form a private IP address (192.168. / 10.0.0 / 172.16 etc)
But the domains are registered with the Internet-IP, like for the A record like:
"Internet-IP" www.<domain1>.<tld>
"Internet-IP" www.<domain2>.<tld>
"Internet-IP" www.<domain3>.<tld2>
How can the webserver get the namebased http-request to the "Internet-IP" when it runs on the private IP, i.e. 192.168.0.16, in a jail?
And more - for the https request the webserver has to Listen on the real "Internet-IP", which is not available in the jail with a private IP.
Can this be solved or is that configuration not possible for a jail?
(I know if I would got a own "Internet-IP-2" for the webserver, then there is no problem to do it - but I get no second one. I read some about NAT but don't understand how the Internet-IP is put thru to the jail with his private IP and how can the webserver with his private IP answer the https request with the Internet-IP - as firewall I use ipfw not pf / this also could be the same problem with sendmail SMTP and bind as real name server)
I run a internet server and got only one real Internet-IP from the provider.
I use the apache IP-based with this "Internet-IP" for https and namebased for some own domain names (http://www.<domain>.<tld>).
When putting the webserver into the jail, its has been told that the jail should get its own IP form a private IP address (192.168. / 10.0.0 / 172.16 etc)
But the domains are registered with the Internet-IP, like for the A record like:
"Internet-IP" www.<domain1>.<tld>
"Internet-IP" www.<domain2>.<tld>
"Internet-IP" www.<domain3>.<tld2>
How can the webserver get the namebased http-request to the "Internet-IP" when it runs on the private IP, i.e. 192.168.0.16, in a jail?
And more - for the https request the webserver has to Listen on the real "Internet-IP", which is not available in the jail with a private IP.
Can this be solved or is that configuration not possible for a jail?
(I know if I would got a own "Internet-IP-2" for the webserver, then there is no problem to do it - but I get no second one. I read some about NAT but don't understand how the Internet-IP is put thru to the jail with his private IP and how can the webserver with his private IP answer the https request with the Internet-IP - as firewall I use ipfw not pf / this also could be the same problem with sendmail SMTP and bind as real name server)