---
title: "An 18-month check-up on my N100 home server - Martin Hicks"
description: "An 18-month check-up on my Intel N100 home server: what needed fixing, and the upgrade from Debian 12 to 13."
canonical: https://martinhicks.dev/articles/n100-home-server-18-month-check-up
last-updated: 2026-11-28
---

[Journal](https://martinhicks.dev/articles)

# An 18-month check-up on my N100 home server

I gave my N100 home server an 18-month check-up: a look at what had drifted since I built it, what needed fixing, and the upgrade from Debian 12 to 13.

[Martin Hicks](https://martinhicks.dev/about-me) 28th November 2026

![Illustration of a small server with radiating network connections on a dark grid background](https://martinhicks.dev/images/built/d7b8yFz_bJ-1200.png)

My [Intel N100 home server](https://martinhicks.dev/articles/n100-home-server-build) is about a year and a half old now. It runs AdGuard Home to filter DNS for the house, WireGuard for the kids' phones, Tailscale for me, Samba for three Macs' Time Machine backups, AirConnect so the speakers that don't speak AirPlay show up in it, and Netdata to keep an eye on all of it.

In May I wrote [a year-on post](https://martinhicks.dev/articles/n100-home-server-a-year-on) that said nothing had broken on its own. As far as I knew, that was true. But Debian 12 had moved to long-term support in July, so a big upgrade was coming, and before I did that I wanted to know what state the box was really in.

So I asked Claude Code to take stock. It ran on the server itself for most of 28 November, and for some of the day I drove it from my laptop over Remote Control. It found more than I expected, and one of the things it found was that my son's DNS filtering had been switched off for at least nine days without anybody noticing.

## What the stock-take found

-   **Debian 12 had moved to the LTS team** on 12 July 2026. Security fixes carry on until June 2028, but with narrower coverage. Moving to Debian 13 (trixie) was the one big job outstanding.
-   **Nothing was watching the disks.** smartmontools wasn't even installed. The backup disk is a 2TB SMR laptop drive holding the Time Machine backups, and it's 70% full.
-   **The backup drive could stop the box booting.** Its `fstab` line had no `nofail`, so if that drive died, the server would stop in emergency mode at boot and take the house's DNS with it.
-   **Nothing backed up the server's own config.** `/etc`, AdGuard's settings, the WireGuard server keys and the Samba user database lived on the box and nowhere else. Time Machine protects the Macs, not the thing they back up to.
-   **A network driver for hardware the board doesn't have.** `r8125-dkms` is a Realtek driver for 2.5G chips. The ASRock N100DC-ITX has a 1G RTL8111H, which uses the `r8169` driver built into the kernel. DKMS had been quietly compiling the unused driver for every new kernel, which pulls in compilers and kernel headers, and a failed DKMS build can break a kernel install.
-   **A firewall I'd forgotten about.** ufw was active, with default deny inbound and LAN-only rules for everything except WireGuard. Sensible rules, written down nowhere.
-   **No WireGuard handshakes for nine days**, from any of the three peers.

That last one is the one I care about most, so it gets its own section.

## Kids' DNS filtering: knowing when it's switched off

A lot of people find this site through my posts on [AdGuard Home](https://martinhicks.dev/articles/adguard-unbound-dns-home) and [WireGuard for the kids' devices](https://martinhicks.dev/articles/wireguard-safe-browsing-kids), so here's a quick recap of how it works.

Each of my kids' phones has a WireGuard profile that sends only DNS through the tunnel, to AdGuard Home on the server. AdGuard has blocklists, SafeSearch, safe browsing and parental filtering switched on for those phones. Everything else goes direct, so it costs next to nothing in battery or speed. iOS on-demand rules bring the tunnel up by themselves, so the filtering follows the phone to school, to friends' houses and onto mobile data.

The stock-take showed no handshake from any peer since the server last booted, nine days earlier. With a 25-second keepalive, a phone with the tunnel on handshakes every couple of minutes, so nine days of silence meant something was broken.

My first theory was the router. I'd swapped it earlier in November, and the WireGuard port forward had only ever been tested on the old one. Wrong. The forward was fine. My son had switched the tunnel off on his phone. Once he turned it back on, his phone handshaked within minutes.

There's no technical way to stop a teenager doing that on an iPhone that isn't supervised. What bothered me more was that the server had the evidence the whole time, in the handshake times, and nothing was looking at it.

So the fix is an alert, not a lock. A small script runs every 15 minutes from a systemd timer, reads `wg show wg0 latest-handshakes` for his phone's key, and posts to Discord when the last handshake is more than 12 hours old. Twelve hours leaves room for a phone that's off overnight or has a flat battery. It posts once rather than every 15 minutes, and once more when he reconnects.

Here's the core of it, with his name and key taken out:

```bash
PEERS=("my-son:<his phone's WireGuard public key>")
STALE_HOURS=12
IFACE=wg0
state_dir=/var/lib/wg-peer-alert

now=$(date +%s)
boot=$(( now - $(cut -d. -f1 /proc/uptime) ))
limit=$(( STALE_HOURS * 3600 ))

for entry in "${PEERS[@]}"; do
  name=${entry%%:*}; key=${entry#*:}
  hs=$(wg show "$IFACE" latest-handshakes 2>/dev/null | awk -v k="$key" '$1==k{print $2}')
  [ -z "$hs" ] && continue
  # A handshake of 0 means none since wg0 came up; count from boot so a reboot doesn't alert at once.
  last=$hs; [ "$last" -eq 0 ] && last=$boot
  age=$(( now - last ))
  sf="$state_dir/$name"; prev=$(cat "$sf" 2>/dev/null || echo ok)
  if [ "$age" -gt "$limit" ]; then
    [ "$prev" = stale ] && continue
    echo stale > "$sf"
    if [ "$hs" -eq 0 ]; then when="no connection since the server rebooted"; else when="last connected $(date -d @"$hs" '+%a %d %b %H:%M')"; fi
    send "📵 n100-home: ${name}'s WireGuard (DNS filtering) has been off for ${STALE_HOURS}h+ - ${when}"
  elif [ "$prev" = stale ]; then
    echo ok > "$sf"
    send "📶 n100-home: ${name}'s WireGuard is connected again"
  fi
done
```

`send` posts the message to a Discord webhook with curl. The webhook URL is read from Netdata's notification config and passed to curl on stdin, so it never shows up in the process list.

The bit that needed thought was a reboot. After the server restarts, WireGuard reports a handshake time of 0 for every peer until it hears from them, which would look like a phone that had been off since 1970. The script counts from boot time instead, so rebooting the server doesn't set it off.

I tested it before installing it, using a fake `wg` command that returned whatever handshake time I gave it. It stayed quiet at one hour, sent one alert at about 14 hours, didn't repeat on the next run, and sent the "connected again" message once the handshake was fresh. Its first real run was at 9am. No alert, because he'd reconnected at 08:43.

None of this stops him turning it off again. The conversation with my son is still the real fix. The alert just means it happens the same day, not nine days later.

## The quick wins

### Disk health alerts

smartmontools now runs a short self-test on both disks every night at 2am, a long one on the first of the month, and sends anything it finds to the same Discord channel. Each disk gets its own line in `smartd.conf` (serial number taken out):

```
/dev/disk/by-id/nvme-Samsung_SSD_980_500GB_<serial> -d nvme -a -s (S/../.././02|L/../01/./03) -W 0,0,75 -m root -M exec /usr/local/bin/smartd-discord.sh
```

My first version used one 65 °C limit for both disks. The NVMe touched 65 °C for a moment during boot and sent a false alert straight away. Now each disk has its own limit, based on the drive's own thresholds and what Netdata had recorded: 75 °C for the NVMe, which warns itself at 82 °C and had peaked at 54 °C over the previous 25 days, and 55 °C for the hard drive, which is rated to 60 °C. Both disks were healthy at install: 0% wear on the NVMe, and no reallocated or pending sectors on the hard drive after 12,395 hours.

### Letting the box boot without its backup drive

Two options on the end of the `fstab` line:

```
UUID=<uuid> /mnt/timemachine ext4 noatime,nodiratime,commit=600,nofail,x-systemd.device-timeout=30s 0 2
```

`nofail` lets the boot carry on if the drive is missing, and the timeout stops systemd waiting the default 90 seconds for it first. If the backup drive dies now, I lose backups, not DNS.

### A config backup that leaves the box

A systemd timer writes a dated tarball of the config at 01:30 each night, about 18MB, and keeps 14 days. A backup on the same machine only covers mistakes, though, not a dead box, so it needs to land somewhere else.

My Mac Studio is always on and already backed up, so it pulls the tarball each morning with a launchd job. I went with pull rather than push so the server holds no credentials for the Mac. The Mac's key has no passphrase, because nobody's there to type one, so on the server it's locked down in `authorized_keys`:

```
restrict,from="<lan-subnet>",command="/usr/bin/rrsync -ro /var/backups/n100-config/" ssh-ed25519 <key> mac-studio n100 backup pull
```

`restrict` turns off the shell, port forwarding, agent forwarding and the terminal. `from` limits it to the LAN. `rrsync -ro` gives it a read-only rsync of that one folder, whatever it asks for. If the Mac Studio were compromised, that key could read the config tarballs (which do contain secrets, so it isn't nothing) but couldn't log in or change anything.

My first pull used `rsync --delete`, to mirror the server's 14-day window on the Mac. rrsync refused:

```
option --delete-before has been disabled on this server
```

The deletes would have happened on the Mac, not the server, but rrsync's read-only mode refuses every delete option. It was annoying, but it also showed the restriction working. The Mac now pulls without `--delete` and prunes its own copies older than 30 days with `find -mtime +30 -delete`.

## A side quest: SSH from the laptop

My laptop couldn't SSH into the server. It got `Permission denied (publickey)` while the Mac Studio logged in fine, even though chezmoi syncs my SSH config between the two.

The server trusts one key, held in 1Password. Running `ssh -v` showed the config was already right, with the 1Password agent and `IdentitiesOnly yes`. The catch is that with `IdentitiesOnly` set and no `IdentityFile` for the host, ssh only offers agent keys that match a key file on disk. The Mac Studio had an `~/.ssh/id_ed25519.pub` matching the 1Password key, outside chezmoi. The laptop had an unrelated `id_ed25519` of its own. That one unmanaged file was the whole difference.

The fix was to export the public half of the 1Password key and point `IdentityFile` at it:

```
Host n100-home
    User martin
    IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
    IdentityFile ~/.ssh/n100-home.pub
    IdentitiesOnly yes
```

`IdentityFile` pointing at a `.pub` file tells ssh which key to ask the agent for, so the private key never sits on disk and 1Password signs with Touch ID. `IdentitiesOnly` matters here too, because the server has `MaxAuthTries 3` and 1Password holds four keys. Both files are in chezmoi now.

## Debian 12 to 13

With the gaps closed, I trusted the box enough to do the big one.

### Letting Claude drive

The upgrade ran from the Claude Code session on the box, which needed root. I gave it a sudo grant that expired on its own, in `/etc/sudoers.d/claude-session`:

```
martin ALL=(root) NOTAFTER=20261129020000Z NOPASSWD: ALL
```

I thought about a list of allowed commands instead, but it would have been for show. apt, dpkg, systemctl and tar can each be used to get a root shell, and the upgrade needed all four. The controls that did something were the expiry at 2am, the journal logging every sudo call, and deleting the file at the end. Before using it, I checked `visudo -cf` against a valid expiry date and a malformed one, to make sure a typo would be rejected rather than ignored.

### Clearing the decks

The unused DKMS driver went first, along with dkms itself, the kernel headers and the compilers. My first check had said DKMS hadn't built anything, but I'd run `dkms status` without root, and it showed nothing rather than an error. The purge log proved otherwise: it deleted a compiled module from `/lib/modules/6.1.0-57-amd64/updates/dkms/`.

### A way back

ext4 has no snapshots, so the rollback route was a full copy of the root filesystem onto the Time Machine drive:

```bash
sudo tar --create --one-file-system --numeric-owner --xattrs --acls \
  --exclude=/tmp --exclude=/var/tmp --exclude=/swapfile \
  -I 'zstd -T0 -3' -f /mnt/timemachine/n100-rootfs-bookworm-20261128.tar.zst / /boot/efi
```

`--one-file-system` keeps `/proc`, `/sys`, the backup drive itself and the other mounts out of it. It came to 21.6GB in about four minutes, bigger than the 10-15GB I'd guessed. I checked it with `zstd -t`, a full listing, and a spot check that six files I'd need were in it, including `fstab`, the kernel, the EFI loader and the WireGuard and AdGuard configs. Restoring would mean booting a live USB, untarring and reinstalling GRUB. Slow, but it gets the exact old system back.

### The upgrade itself

Every source moved to trixie, including the Docker, Tailscale and Netdata repos, which all publish trixie builds. A dry run said 533 packages upgraded, 131 new and 33 removed. Thirty-three removals looked alarming until we went through them: every one was a library being replaced by its `t64` rename, part of Debian's move to a 64-bit `time_t`. None was a service.

The upgrade then ran in two stages inside a root tmux session, so a dropped SSH connection couldn't kill dpkg halfway, keeping my local config files wherever a package shipped a new one:

```bash
O='-o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold'
apt-get update && apt-get $O -y upgrade --without-new-pkgs && apt-get $O -y full-upgrade
```

The config file that mattered was `sshd_config`. The packaged version differed from mine only in comment wording and two extra variables on `AcceptEnv`, so I kept mine, and `sshd -T` confirmed key-only login, no root and `MaxAuthTries 3`. Every service stayed up during the upgrade, on the old kernel, and DNS kept answering throughout.

### The reboot

The session runs on the box, so a reboot kills it. Claude scheduled it with `shutdown -r +1`, so its last message reached me before the connection dropped, then picked up in the same session afterwards. The server was back in under three minutes on kernel 6.12, Debian 13.8.

The checks afterwards: no failed units; DNS answering on both the LAN and WireGuard addresses; `doubleclick.net` coming back as `0.0.0.0`, so the filtering was working; my son's phone handshaking within two minutes; ufw with the same 23 rules; and the network card still on `r8169`. `/tmp` is a tmpfs now, which is the new trixie default and fine with 16GB of RAM.

To tidy up, `apt modernize-sources` converted the sources to the newer deb822 format, and autoremove took out 55 old libraries. Lynis, a security auditing tool, scored the box 69, up from 68 (and 65 in May). Then I deleted the sudo grant.

There was one surprise. Trixie's `unattended-upgrades` and `logrotate` recommend a mail client, so the upgrade had quietly installed exim4, listening on port 25 on localhost. Nothing on this box sends email, because the alerts go to Discord, so it came straight back out.

## The AirPlay speakers disappeared

After the reboot, my phone couldn't see any of the non-Apple AirPlay speakers. The journal showed why. Both AirConnect bridges had started at 10:41:47 and failed to bind to the network (`Cannot assign requested address`), because the box didn't get its DHCP lease until 10:42:01.

The network port was set to `allow-hotplug` in `/etc/network/interfaces`, which brings it up in the background, so systemd's "network is online" step had finished before there was an address. The Chromecast bridge crashed and came back on its own a few minutes later. The Sonos one was worse: it logged `Cannot start` but the process stayed alive, so systemd thought it was fine and never restarted it.

The fix was `auto` instead of `allow-hotplug`, which makes boot wait for the lease, plus a drop-in on both bridges with `Wants=` and `After=network-online.target`. It was probably always a race, made visible by either the new router answering DHCP more slowly or trixie booting faster. I can't prove which.

While I was in there, I upgraded [AirConnect](https://github.com/philippe44/AirConnect) from 1.8.3 to 1.12.4, checking the download against the SHA-256 digest on the GitHub release. Its help text showed that my service command lines had been wrong since I first set it up:

```
aircast ... -Z -x ./config/aircast.xml -f -v warn -l 50000:20
airupnp ... -x ./config/upnp.xml -b <server-lan-ip> -l 49160:20 -Z
```

`-l` sets the latency, not the ports. I'd been asking for 50-second and 49-second buffers, which overrode the sensible latency in the XML config. It looks like I'd mixed it up with `-a`, which sets the port range. And `-f -v` told aircast to write its log to a file literally called `-v`, in a folder it couldn't write to, so the Chromecast bridge's logging had been going nowhere. The XML files already set the right ports, so the command lines are now just `-Z -x` and the config file, plus `-b` for the address airupnp should bind to. Both bridges came straight up on 1.12.4 and found all four speakers.

## Netdata's failed-unit alarm had never worked

I'd written my own script to post failed systemd units to Discord, because Netdata's built-in alarm for them didn't seem to work on version 2.10.3. For months I'd assumed that was a version bug.

It wasn't. Netdata ships that alarm switched off on purpose, with a filter that matches no unit at all:

```
chart labels: unit_name=!*
```

A copy in `/etc/netdata/health.d/` with `unit_name=*` attached it to all 121 units on the box. To test it, I started a unit designed to fail (`systemd-run` with `/bin/false`), and Netdata raised a warning within 20 seconds and posted to Discord.

The same log had a second problem in it: `health_alarm_notify.conf: line 182: discord: command not found`, on every notification. An example line in the config had lost its `#` at some point. With that fixed and Netdata covering every unit, my own script would have doubled every alert. But Netdata can't report its own death, so the script now only watches Netdata, and I proved that with two failing test units: one named `netdata-...`, which it caught, and one named `other-...`, which it ignored.

## The outage I caused

The reboot to test the network fix worked. Both AirConnect bridges waited for the lease and found all four speakers. It also took the house's DNS down.

Earlier in the day, during a tidy of my home directory, I'd archived and deleted a folder called `~/setup`. It held one old migration script from the original AdGuard install and looked like junk. What I didn't check was whether anything referred to the folder itself. AdGuard's systemd unit did:

```ini
WorkingDirectory=/home/martin/setup/adguard
```

AdGuard kept running until the reboot. After it, AdGuard failed every 10 seconds with `status=200/CHDIR`, and DNS for the whole house was down from 10:59 until I noticed, rebooted again, and then recreated the folder by hand at about 11:15. About a quarter of an hour.

The proper fix was pointing the unit at AdGuard's own data folder, so it no longer depends on anything in a home directory:

```ini
WorkingDirectory=/var/lib/adguardhome
```

I tested that by deleting the stopgap folder again and restarting AdGuard. Then I searched `/etc`, `/usr/local`, the AirConnect config and the crontabs for any other reference to a file I'd moved or deleted. There weren't any.

### Why nothing alerted

The new failed-unit alarm stayed quiet, and by its own rules it was right. AdGuard's unit has `Restart=always` with a 10-second delay, so it never reaches the "failed" state. It sits in "activating (auto-restart)" for as long as it keeps failing. Watching a service's state misses a restart loop entirely.

What the house cares about is whether DNS answers, so now that's what gets checked. Netdata's `dns_query` collector asks AdGuard a real question every 10 seconds, on both the LAN and WireGuard addresses (taken out below):

```yaml
update_every: 10
jobs:
  - name: adguard_lan
    servers: [<server-lan-ip>]
    domains: [debian.org, google.com]
    record_types: [A]
    network: udp
    port: 53
    timeout: 2s
```

Netdata's stock `dns_query_query_status` alarm warns once answers stop.

Proving it could fail took two goes. My first test job pointed at `127.0.0.9`, which I expected to be dead, and it stayed green. AdGuard listens on every address, and that includes the whole `127.0.0.0/8` loopback range, so it answered. The second test pointed at `192.0.2.1`, a range reserved for documentation that nothing answers on. That raised a warning within 10 seconds and reached Discord.

## BIOS 1.06 to 2.01

The board was on BIOS 1.06 from 2023. ASRock's 2.01, from October 2024, patches the LogoFail vulnerabilities in UEFI image parsing and updates the Intel microcode and Management Engine. It's still labelled beta two years on, which seems normal for ASRock's small boards.

Before flashing, I added a fallback bootloader. The EFI partition only had Debian's own folder, with the boot entry stored in the board's NVRAM, and BIOS updates often wipe those entries, which would have left nothing to boot. Setting `grub2/force_efi_extra_removable` to true and reconfiguring `grub-efi-amd64` installed a copy of shim and GRUB at `EFI\BOOT\BOOTX64.EFI`, the path firmware falls back to when it has no entries. I checked the download against ASRock's published SHA-256 and put the ROM on the EFI partition, where the BIOS's Instant Flash tool could find it without a USB stick.

I photographed every BIOS settings screen, flashed, and re-entered the settings from the photos. The server was back on 2.01 about six minutes later. The Debian boot entry survived, so the fallback wasn't needed this time. The CPU microcode went from revision 0x1e to 0x21 once Debian's `intel-microcode` package applied its update at boot.

One setting came back different. **Auto Driver Installer** had been off before the update and was on after it, because that's the default. On Windows, it lets the firmware hand the OS an installer to run, through an ACPI table called WPBT. Linux ignores WPBT, but the table had appeared in `/sys/firmware/acpi/tables/`, and firmware pushing programs into the OS is something I'd rather keep switched off on a box that has no use for it. I switched it back off, and after the next reboot the table was gone, which confirmed it.

## The mistakes, and the checks that passed for the wrong reason

Collected in one place:

-   My router theory for the silent WireGuard peers was wrong. It was a teenager.
-   One temperature limit for two very different disks sent a false alert on the first boot.
-   `rsync --delete` doesn't get past `rrsync -ro`, even when the deletes are on your own end.
-   Running `aircast --help` to get its version number started a second copy of AirConnect. Reading the help text out of the binary with `strings` was safer.
-   Deleting `~/setup` without searching for what used it took DNS down for about 15 minutes. The rule I should have followed: before moving or deleting anything, search the system config for its path, not just look at what's inside it.

What I took most from the day is how many checks looked like they'd passed when they hadn't checked anything. `dkms status` without root reported no modules. Netdata's failed-unit alarm had been quiet for months because it was attached to nothing. The same alarm was quiet again during the outage, because a restart loop never counts as failed. And my first DNS probe test stayed green because I'd picked an address I assumed was dead. Each one was a check that couldn't fail, so I've got into the habit of making a new check fail once, on purpose, before I trust it.

As for the server, it's on Debian 13 now, supported until 2028 and covered by LTS until 2030. The old 6.1 kernel goes once it's had a week on 6.12, and the bookworm copy on the backup disk after a month. I'll give AirConnect a few days on 1.12.4 before deciding whether it still needs restarting every 12 hours.

## Further reading

-   [WireGuard for safe browsing on kids' devices](https://martinhicks.dev/articles/wireguard-safe-browsing-kids)
    
    Configuring WireGuard so children's devices always route DNS through home filtering, even on school Wi-Fi, friends' houses and mobile data.
    
-   [A year with my Intel N100 home server: what changed](https://martinhicks.dev/articles/n100-home-server-a-year-on)
    
    A year on from the £250 Intel N100 home server build. What's still earning its keep, what I removed, what I added, and what I'd do differently.
    
-   [Running AdGuard Home and Unbound on a home server](https://martinhicks.dev/articles/adguard-unbound-dns-home)
    
    Using AdGuard Home and Unbound together for fast, private DNS resolution and network-wide ad blocking.
    
-   [Building a tiny Intel N100 home server](https://martinhicks.dev/articles/n100-home-server-build)
    
    A small, quiet, power-efficient home server build using an Intel N100 board for backups, DNS, VPN and development services.

---

Source: https://martinhicks.dev/articles/n100-home-server-18-month-check-up
