Mainly intended for myself to document my config but this may be useful to others as well. Wherever possible this configuration uses LibreSSL as the OpenSSL library.
System overview
LAN: 192.2.0.0/24
Gateway: 192.2.0.254
Server: 192.2.0.1
Hardware
Intended use
Links will go to more detailed wiki articles
-
File-server
Backup target for Desktop and laptops
Cloud storage server
Web-server
Personal website
Family website
Freelance website
Mail-server (AKA OpenSMTPd) (incl spam classification and virus scanning)
Software
-
Unbound as validating, caching and recursive
DNS resolver
OpenLDAP as user and authentication backend
Samba 4.2 as file-server and for backup-target
-
OpenVPN for secure internet access for my mobile devices
-
ownCloud as cloud storage/calendar/contacts server
-
MariaDB for apps requiring database backend
-
-
AMaVisD as networked scanner daemon
-
-
dspam as Bayesian spam classifier
System management
Jails
Anything that can be connected from the internet is jailed. Mail scanner was separated provide additional isolation.
db: Home of MariaDB server
http: Home of Apache and the web applications and content
mail: Home of MTA and IMAP-server
scan: Home of Amavisd, clamav, spamassassin, dspam
tor: Home of my TOR router
Every jail is firewalled using ipfw.
tor gets access to the internet only (not
LAN) and is denied anything else
Allow all jails to access
DNS
jails get specific access, anything else is denied