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

  1. DHCP/DNS server

  2. File-server
  3. Backup target for Desktop and laptops
  4. Cloud storage server
  5. Web-server
    • Personal website
    • Family website
    • Freelance website
  6. Mail-server (AKA OpenSMTPd) (incl spam classification and virus scanning)

Software

  1. dnsmasq for DHCP and dynamic DNS

  2. Unbound as validating, caching and recursive DNS resolver

  3. OpenLDAP as user and authentication backend

  4. Samba 4.2 as file-server and for backup-target

  5. rsync for backups

  6. OpenVPN for secure internet access for my mobile devices

  7. Apache 2.4 as web-server

    1. ownCloud as cloud storage/calendar/contacts server

    2. PHP 5.6, etc. as required

    3. MariaDB for apps requiring database backend

  8. OpenSMTPd as mail server

    1. Dovecot as LDA and IMAP server

    2. AMaVisD as networked scanner daemon

    3. ClamAV as virus scanner

    4. SpamAssassin as rule-based spam classifier

    5. dspam as Bayesian spam classifier

  9. System management

Jails

Anything that can be connected from the internet is jailed. Mail scanner was separated provide additional isolation.

Every jail is firewalled using ipfw.

  1. tor gets access to the internet only (not LAN) and is denied anything else
  2. Allow all jails to access DNS
  3. jails get specific access, anything else is denied

BernardSpil/HomeServer (last edited 2018-06-03T01:07:14+0000 by MateuszPiotrowski)