Enterprise IT at Home, Part 2: Time is a security control
Kerberos, logs and certificates all quietly assume the clock is right. How a USB GPS receiver, an idle Dell OptiPlex and one evening became the stratum 1 time source for my home lab.
Honestly, this one is a "because I wanted it" project.
It started innocently. A USB GPS receiver, bought to test one problem. Then it lay around unused for a couple of years. Then, one evening, it became a stratum 1 time server. Today the same box also drives a wall of dashboards.
One small receiver, one old office desktop, and a whole lab that now takes its time from satellites.
Why time is a security control
Most people think of NTP as housekeeping. Set it once, forget it. In an enterprise network, time is closer to a security dependency, because several things you care about quietly assume the clock is right.
Kerberos is the first one. Tickets carry timestamps, and the domain controller only accepts a small clock skew between itself and the client. Go past that and authentication fails. The error does not say "your clock is wrong" in friendly words. It looks like an authentication problem, so you start by suspecting accounts and passwords.
Logs are the second. A SIEM is only useful if it can line up events from the firewall, the switches, the domain controllers and the endpoints into one timeline. If one source is off, the timeline lies. Things appear to happen before their cause, or a sequence falls apart into unrelated noise.
Certificates are the third. Every certificate has a "not before" and a "not after". A device with a wrong clock can reject a perfectly valid certificate, or accept one that should already be dead.
In my lab the reminder came from a FortiSwitch. Its clock drifted, and it showed up as a time-sync warning. The switch was not misbehaving on purpose. Clocks in hardware drift, that is what they do. A switch is also exactly the kind of device nobody looks at once it forwards packets.
That is the pattern with time. It is quiet. Time problems tend to show up first in Kerberos and in log correlation, dressed up as something else.
A receiver, an OptiPlex, and FreeBSD
The receiver has a backstory. I used to work at a large IoT company. Their devices used GPS, and one of its jobs was precise time synchronisation. At some point there was a problem with satellite detection, and I bought a USB GPS receiver to test things at home.
The problem moved on. The receiver did not. It lay around unused for a couple of years.
Then I stumbled on it again. Around the same time I noticed some idle old Dell OptiPlex boxes: i3-6100, decent memory, small disks. An NTP server does not need much more than that. I thought: why not.
A quick word on the terms. The GPS signal is the reference clock, stratum 0. A server directly attached to that reference is stratum 1. Everything that syncs from it sits one step further down. For a home lab, having your own stratum 1 is pure luxury, and I fully admit it.
I built the first version in one evening on FreeBSD, a then-current release. I honestly do not remember which branch. A long time ago I loved FreeBSD a lot. I ran it for web servers and much more, mostly because of its stability, and I wanted to tinker with it again.
It ran for about half a year and was pleasantly accurate.
Standardising, and the window
Then the architect in me won over the hobbyist. The main lab is built entirely on RHEL, and one odd FreeBSD box is one more operating system to patch, monitor and remember. So I rebuilt it on RHEL to standardise. Today it runs RHEL 10 and serves NTP at stratum 1 to the lab. It also runs AdGuard Home in Podman for filtering.
The trade-off is real. I lost my excuse to play with FreeBSD. I gained one less exception in the lab.
The box does not live in the rack. It stands next to me, near a window, because the receiver needs to see the satellites. Physics decided the placement, not cable management.
This is a lab, and I should say it plainly: in production, one receiver near one window would not be the design. You want several independent time sources, so that one bad reference cannot pull everything with it.
And since the box was already standing there, I had a bright idea. I connected an idle monitor and turned it into a kiosk that draws Zabbix, Wazuh, status and alerts for the home lab. So today it is a minimal RHEL install with a GUI, serving time and showing a small SOC dashboard. That screen deserves its own story.
What I actually learned: time is infrastructure you only notice when it is wrong, and by then it looks like an authentication or logging problem, not a clock problem.
So a receiver bought to debug a satellite detection problem now tells my lab what time it is. It also watches the alerts. Nobody planned this. Next, another piece of the map from Part 1.