Hello,
I switched to FreeBSD a week ago on my main server. So far the experience has been great.
Because I'm new to the whole jails theory I'd like to present my plan and possible challenges.
My Setup:
Hostsystem: FreeBSD, 8 Cores, 24GB Ram, Static IP
My idea was to create multiple jails with ezjail to perform the following tasks:
- DNS-Jail: Unbound Nameserver for all other Jails. Managing internal domains.
- Nginx-Jail: Redirecting all Port 80, 443 Traffic
- MySql-Jail: Managing all databases for webserver-jails etc.
Other Services (all in individual Jail): Apache(Wordpress), Teamspeak, Git, ...
Host: Redirecting all Port 80/443 Traffic to Nginx-Jail. Redirecting Ports for other Services. Using PF
Possible problems:
- I heard that I can be quit difficult to run a mysql-server in a jail.
- I'm not sure about the redirecting with nginx. If I redirect incoming-domains like "https://test.com" to internal ips of jails there could be ssl-certificate problems.
Possible solutions:
- Use Unbound to create local domains "test.com" would go to internal-ip x.x.x.x
What do you guys think?
Thanks.
I switched to FreeBSD a week ago on my main server. So far the experience has been great.
Because I'm new to the whole jails theory I'd like to present my plan and possible challenges.
My Setup:
Hostsystem: FreeBSD, 8 Cores, 24GB Ram, Static IP
My idea was to create multiple jails with ezjail to perform the following tasks:
- DNS-Jail: Unbound Nameserver for all other Jails. Managing internal domains.
- Nginx-Jail: Redirecting all Port 80, 443 Traffic
- MySql-Jail: Managing all databases for webserver-jails etc.
Other Services (all in individual Jail): Apache(Wordpress), Teamspeak, Git, ...
Host: Redirecting all Port 80/443 Traffic to Nginx-Jail. Redirecting Ports for other Services. Using PF
Possible problems:
- I heard that I can be quit difficult to run a mysql-server in a jail.
- I'm not sure about the redirecting with nginx. If I redirect incoming-domains like "https://test.com" to internal ips of jails there could be ssl-certificate problems.
Possible solutions:
- Use Unbound to create local domains "test.com" would go to internal-ip x.x.x.x
What do you guys think?
Thanks.