Previously I have used OpenSolaris and network virtualization with virtual NICs and switches and zones to implement a web, dns, reverse proxy, mail setup and want to try this with FreeBSD jails.
I have read a lot of documentation but am kind of stumped on the networking part of jails. I have a cloned interface of lo1 and want to use 127.0.10 for the network. When someone tries example.com or example.org the request should hit the reverse proxy which will forward the request to the correct domain.
Do I set an IP for lo1 like 127.0.10.254/24 and the jails for www would be .2/24, rev proxy would be .3/24, mail would be .4/24, db .5/24 and then pf would use nat and rdr for only the reverse proxy? How does the www jail communicate with the db jail? if there are only a few jails such as a couple web domains and a mail and db jail, would it be simpler to have /etc/hosts entries instead of DNS? If /etc/hosts entries, would each jail need all of the other jails hosts entries?
The concept of jails is a little foreign to be because with network virtualization I can just use routers and switches to handle traffic.
Thanks for any advice and help.
I have read a lot of documentation but am kind of stumped on the networking part of jails. I have a cloned interface of lo1 and want to use 127.0.10 for the network. When someone tries example.com or example.org the request should hit the reverse proxy which will forward the request to the correct domain.
Do I set an IP for lo1 like 127.0.10.254/24 and the jails for www would be .2/24, rev proxy would be .3/24, mail would be .4/24, db .5/24 and then pf would use nat and rdr for only the reverse proxy? How does the www jail communicate with the db jail? if there are only a few jails such as a couple web domains and a mail and db jail, would it be simpler to have /etc/hosts entries instead of DNS? If /etc/hosts entries, would each jail need all of the other jails hosts entries?
The concept of jails is a little foreign to be because with network virtualization I can just use routers and switches to handle traffic.
Thanks for any advice and help.