I'm downsizing my server (an old 2006 hp ProLiant 19" rack monster with 41 disks) for a Raspberry Pi 4B 8GB as the electricity here in southern Sweden has become absurdly expensive. (The whole thing draws about €70 worth per year, now it is looking more like €4000...) While I'm redoing everything, I thought I might as well learn to use jails properly.
I have installed sysutils/bastille since it seems simple enough and has no dependencies. I have read through various posts on jails in this forum, as well as scattered blog posts on the web. As I understand it, it is considered good to make a jail and expose it to the external IP. And this I do by having pf (4) on the host redirect all traffic on the externally connected interface to a bridge to said jail.
So, my thinking is this:
I have installed sysutils/bastille since it seems simple enough and has no dependencies. I have read through various posts on jails in this forum, as well as scattered blog posts on the web. As I understand it, it is considered good to make a jail and expose it to the external IP. And this I do by having pf (4) on the host redirect all traffic on the externally connected interface to a bridge to said jail.
So, my thinking is this:
- RPi4B host with as few ports installed as possible.
Should net/isc-dhcp44-server go here though?- Jail to route traffic to/from the Internet for all jails and computers on the network.
Also running dns/unbound with an adblock ksh-script.
Reverse proxy goes here? - Jail running ports-mgmt/poudriere to fetch, configure and build all packages for the other jails.
- Jail running net/netatalk3, net/samba413 and net/mDNSResponder to serve as a Time Machine backup server for the Macs on the network. There will be a ZFS volume connected to store the files.
- Jail running mail/dovecot, mail/postfix, mail/spamassassin and security/clamav for my domain.
- Jail running www/nginx (and possibly www/rubygem-jekyll) for my domain.
- Jail running net-p2p/transmission-daemon.
- Possibly a jail running www/nextcloud, but this is low priority.
- Jail to route traffic to/from the Internet for all jails and computers on the network.