Hi!
In the server with public IP 80.80.111.112 for example
I make two jails with internal IP and hostnames:
jail1.site.com 10.10.10.1
jail2.site.com 10.10.10.2
in rc.conf:
--------
jail_JAIL1_hostname="jail1.site.com"
jail_JAIL1_ip="10.10.10.1"
...
jail_JAIL1_hostname="jail2.site.com"
jail_JAIL1_ip="10.10.10.2"
--------
jails works nice.
In public DNS jail1.site.com and jail2.site.com are resolved to
80.80.111.112, where the jails are running.
Is the way to redirect all connects via jail1.site.com, jail2.site.com from public net to appropriate jails?
i.e.:
jail1 and jail2 have apache and ftp servers running both.
I wish
$ftp jail1.site.com
from inet and just be automatically redirected to talk with jail1
$ftp jail2.site.com
from inet and just be automatically redirected to talk with jail2
or
$telnet jail1.site.com 80
from inet and just be automatically redirected to talk with jail1
Also about jail2.
may I setup jails anyhow to do like this?
In the server with public IP 80.80.111.112 for example
I make two jails with internal IP and hostnames:
jail1.site.com 10.10.10.1
jail2.site.com 10.10.10.2
in rc.conf:
--------
jail_JAIL1_hostname="jail1.site.com"
jail_JAIL1_ip="10.10.10.1"
...
jail_JAIL1_hostname="jail2.site.com"
jail_JAIL1_ip="10.10.10.2"
--------
jails works nice.
In public DNS jail1.site.com and jail2.site.com are resolved to
80.80.111.112, where the jails are running.
Is the way to redirect all connects via jail1.site.com, jail2.site.com from public net to appropriate jails?
i.e.:
jail1 and jail2 have apache and ftp servers running both.
I wish
$ftp jail1.site.com
from inet and just be automatically redirected to talk with jail1
$ftp jail2.site.com
from inet and just be automatically redirected to talk with jail2
or
$telnet jail1.site.com 80
from inet and just be automatically redirected to talk with jail1
Also about jail2.
may I setup jails anyhow to do like this?