I have my own dedicated server and have long been avoiding jails, mostly due to not fully understanding their benefits. Things have changed recently - one of my websites is showing an incredible growth rate - that has me thinking more about security.
The server is a 16-core Xeon, 128GB ram and 2 x 256GB NVMe drives. The filesystem is UFS (not comfortable with ZFS yet, especially if an issue arises) and I can't afford any downtime.
The OS (14.4-RELEASE-p2) is on one partition, and /usr/opt/ is on its own partition. I've always thought that the setup gave me "good enough" protection, but apparently it's not enough?
My questions are:
1. Do I need to use a jail?
2. If so, which type?
3. Should I put Nginx, PHP-FPM, MySQL in to the same jail?
4. Does Postfix, Dovecot and OpenDKIM need to reside in a jail?
Any advice would be greatly appreciated.
The server is a 16-core Xeon, 128GB ram and 2 x 256GB NVMe drives. The filesystem is UFS (not comfortable with ZFS yet, especially if an issue arises) and I can't afford any downtime.
The OS (14.4-RELEASE-p2) is on one partition, and /usr/opt/ is on its own partition. I've always thought that the setup gave me "good enough" protection, but apparently it's not enough?
My questions are:
1. Do I need to use a jail?
2. If so, which type?
3. Should I put Nginx, PHP-FPM, MySQL in to the same jail?
4. Does Postfix, Dovecot and OpenDKIM need to reside in a jail?
Any advice would be greatly appreciated.