I'm new to FreeBSD after 20 years using Linux running about 8 physical servers with many containers. In Linux I have been using vserver then openvz and now lxc container virtualization. I'm not satisfied with Linux as reverting seems ever changing and getting over-complicated.
I tried to make the same use and configuration on FreeBSD and is much more simple and clean then on Linux. So now we are going to have two machines out of eight to run FreeBSD.
My jails and its configs are located in directory /jails , so the configs and jails can be easily and together moved to another physical machine if needed. I use vnet networking so the firewall stays inside the jail. I use the standard /etc/jail.conf, but made few scripts which makes it more simple to use. All the jails are in the same vnet not separated from internet regardless if they have public or private ip address as each jail has got it's own firewall. All jails share directory /etc/ovps_share, so they can include or simlink some common configuration files. So there is only one place to do changes if needed.
I have placed all my configs and helper scripts here to read or download. https://www.odorik.cz/w/freebsd
They are so simple they should be self explanatory even for beginner.
If you do not understand something ask, if you think I could have done something better or more simple, please tell.
The attached picture is one page script in ruby as alternative to jls. It is not universal as it expects convention, but very short, simple and easy to change for other use cases.
For example ip addresses are read from the jail.conf configs files and expected to find in variable $ip.
I tried to make the same use and configuration on FreeBSD and is much more simple and clean then on Linux. So now we are going to have two machines out of eight to run FreeBSD.
My jails and its configs are located in directory /jails , so the configs and jails can be easily and together moved to another physical machine if needed. I use vnet networking so the firewall stays inside the jail. I use the standard /etc/jail.conf, but made few scripts which makes it more simple to use. All the jails are in the same vnet not separated from internet regardless if they have public or private ip address as each jail has got it's own firewall. All jails share directory /etc/ovps_share, so they can include or simlink some common configuration files. So there is only one place to do changes if needed.
I have placed all my configs and helper scripts here to read or download. https://www.odorik.cz/w/freebsd
They are so simple they should be self explanatory even for beginner.
If you do not understand something ask, if you think I could have done something better or more simple, please tell.
The attached picture is one page script in ruby as alternative to jls. It is not universal as it expects convention, but very short, simple and easy to change for other use cases.
For example ip addresses are read from the jail.conf configs files and expected to find in variable $ip.