We started from four empty Debian 12 virtual machines. The job was to set up the services of a small company network, then look for what was wrong with the default configuration.
Setup
The web server runs Apache with several VirtualHosts. For mail, Postfix sends
over SMTP and Dovecot serves mailboxes over IMAP between local accounts. DNS uses
two BIND9 servers, a primary and a secondary that pulls the zone from it. We
checked everything from the other machines with dig and host.
Audit
First we simulated a SYN flood with hping3 and looked at the capture in
Wireshark: the server gets a SYN, replies, but the final ACK never comes, and
half-open connections pile up.
The clearest problem was in DNS. Out of the box, the primary answered dig axfr
from any machine, so anyone could download the whole zone. We restricted
allow-transfer to the secondary’s address and checked that the same query was
refused from another host.