Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ documents for different readers.
at all. Every pinned digest is also scanned weekly for fixable HIGH and
CRITICAL CVEs, and each image with findings has an open issue until a scan
finds it clean.
- **Documented decisions and runbooks.** 129 ADRs covering what was chosen
and what was rejected — including the costs accepted knowingly; 54
- **Documented decisions and runbooks.** 130 ADRs covering what was chosen
and what was rejected — including the costs accepted knowingly; 55
runbooks for the operations that are easy to get wrong at 1am, one of which
is the handover page a successor reads first. Every critical alert links to
one.
Expand Down Expand Up @@ -236,9 +236,9 @@ inbound passes may still reach it. Data flow and the maintained Mermaid topology
│ ├── architecture.md network.md hardware.md
│ ├── observability.md security.md roadmap.md changelog.md
│ ├── diagrams/ # the network diagram (SVG) and its predecessors
│ ├── adr/ # 129 ADRs — architecture decision records
│ ├── adr/ # 130 ADRs — architecture decision records
│ ├── exercises/ # purple-team exercise records — see its README
│ └── runbooks/ # 54 runbooks; successor-handover.md is the front door
│ └── runbooks/ # 55 runbooks; successor-handover.md is the front door
└── Makefile # make help
```

Expand Down Expand Up @@ -413,7 +413,7 @@ is [`docs/changelog.md`](docs/changelog.md), dated and never rewritten.

**Every purchase still outstanding is in one place**, the roadmap's
[*Everything still to buy*](docs/roadmap.md#everything-still-to-buy):
10 items now, 0 later, and a rule that nothing joins them without a
11 items now, 0 later, and a rule that nothing joins them without a
decision. This sentence used to carry the list itself, name three purchases
coupled to the UPS work and omit the tier's host entirely, which is how one
ProDesk came to be bought for two jobs. It names no current item for the
Expand Down
151 changes: 151 additions & 0 deletions docs/adr/0131-carry-the-wan-through-neos-sfp-cages-at-2-5g.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
# ADR-0131: Carry the WAN through `neo`'s SFP+ cages at 2.5G

**Status:** Accepted · 2026-11

## Context

`morpheus`'s WAN is `em0`, the ProDesk's onboard Intel I219-LM, at 1000baseT.
Five times between 2026-11-01 and 2026-11-22 it began taking inbound frames as
CRC and fragment errors on a clean full-duplex link. Each time, downloads fell
to a few Mbit/s while upload and latency looked normal, and `WanReceiveErrors`
fired. On 2026-11-22 the errors carried on across a new modem, a re-plug at
`em0` and a different cable, and stopped when `morpheus` was rebooted
([#1594](https://github.com/Gerrrt/HomeLab/issues/1594), the changelog's
2026-11-22 entry). The fault is `em0`'s own state. Rebooting clears it, and
nothing so far has stopped it coming back.

[#922](https://github.com/Gerrrt/HomeLab/issues/922) asked a different
question: whether the 2000/250 Mbit/s plan is worth paying for when every
port in the house is gigabit. It sketched a 2.5G WAN through the CRS326's two
SFP+ cages, and its data (2026-10-10 to 2026-11-09) found no need for it:
download peaked at 71% of ~940 Mbit/s and never held above 85%. On that data
the plan was to downgrade.

Two facts have changed since #922 was written:

- **The WAN has to leave `em0` anyway.** Any design that does so ends the
recurring fault. #922's sketch is one of them.
- **The modem's port is now trusted.** The XB7's striped 2.5G port was
blamed for the early incidents. The CODA56 that replaced it has one port,
2.5G, and the faults that followed it were `em0`'s.

`morpheus` has one other NIC: `igc0`, an Intel I226-V on an M.2 adapter,
2.5G-capable, today meeting `neo`'s `ether1` at 1000baseT as the LAN trunk
and the untagged switch LAN (VLAN 7,
[ADR-0041](0041-run-the-crs326-on-routeros-and-keep-neo-and-its-switch-lan.md)).
`neo`'s copper ports are all gigabit. Its two SFP+ cages, `sfp-sfpplus1` and
`sfp-sfpplus2` (ports 25 and 26), are empty and are not bridge ports. CRS3xx
runs SFP+ at a true 2.5G since RouterOS 7.3, and `neo` runs 7.24.6.

## Decision

**The WAN becomes VLAN 2 on `neo`. The CODA56's 2.5G port goes into
`sfp-sfpplus2`, and `igc0` moves from `ether1` to `sfp-sfpplus1` at 2.5G,
carrying the WAN tagged beside the LAN VLANs. Both cages take a MikroTik
S+RJ10. `em0` leaves service. The 2000/250 plan stays.**

1. **Two MikroTik S+RJ10 modules**, genuine, the module MikroTik's
compatibility table lists for the CRS326-24G-2S+. They enter through the
roadmap's *Everything still to buy*.
2. **On `neo`, VLAN 2 touches two ports and nothing else.** `sfp-sfpplus2`
joins the bridge with PVID 2, admits untagged frames only, and is an edge
port. VLAN 2 is untagged on `sfp-sfpplus2`, tagged on `sfp-sfpplus1`, and
not a member of the bridge's own interface, so the switch has no address
and no service on the WAN. The VID is arbitrary. 2 is unused, and the
segment VLANs keep their tens.
3. **`sfp-sfpplus1` takes over `ether1`'s role whole.** PVID 7 for the
untagged switch LAN, the same frame admission, and tagged membership of
every segment VLAN that `ether1` carries today, plus VLAN 2. `ether1` is
left configured until the cutover has held, then emptied. The way back
into the switch stays untagged and stays on the trunk, as ADR-0041
requires. Only the cage it arrives through changes.
4. **On `morpheus`, WAN is reassigned from `em0` to `igc0.2`**, with
`igc0`'s own MAC, and the modem is power-cycled to learn it. pfSense makes
a VLAN interface's MAC read-only, and cloning `em0`'s onto the parent
`igc0` would change the gateway's MAC on every segment, so `em0`'s MAC
does not carry over. The ISP may lease a new public address. The dynamic
DNS client of
[ADR-0044](0044-answer-the-endpoint-with-dynamic-dns-from-morpheus.md)
follows it, as it would after any lease change. pfSense's rules, NAT and
the WireGuard `rdr` name the WAN interface, not `em0`, so they follow the
assignment.
5. **Heat is watched before it is trusted.** MikroTik's S+RJ10 guidance says
not to place two side by side, and to add cooling where they must be or
where the device is passive. The CRS326 is passive, and its two cages are
adjacent, so this design does exactly what the guidance warns about. The
module runs in 0–70 °C ambient and can itself reach 90 °C. U22 above the
switch is already a vented blank for this. The modules' DDM temperature
joins `neo`'s SNMP scrape, with an alert, before the cutover, and the
cutover waits until an hour of both modules idling in the cages has been
read. The temperature alert is left out of the window's silence.
6. **Monitoring follows the WAN.** The recording rules and
`WanReceiveErrors` move from `em0` to `igc0` and `neo`'s
`sfp-sfpplus2`, and `homelab_wan_capacity_bits_per_second`'s receive
figure moves from ~940 Mbit/s to what the plan delivers through the new
path. That is measured as an aggregate across several wired clients at
once, because every client in the house, `prometheus` and its speed test
included, is gigabit. `neo`'s `crs326` module gains `ifInErrors` and the
modules' temperature for this, and `snmp.yaml` is regenerated from it.

The procedure is
[`move-the-wan-onto-neo.md`](../runbooks/move-the-wan-onto-neo.md), and the
build is [#1691](https://github.com/Gerrrt/HomeLab/issues/1691). This
decides #922: the plan stays, and the 2.5G path is built.

## Considered and rejected

- **The WAN as a VLAN on the existing 1G trunk, with the modem on a copper
port.** It costs nothing and fixes `em0` just as well. It was the
recommendation put to the operator on 2026-11-23. It caps the WAN at
~940 Mbit/s and puts WAN, LAN and inter-VLAN traffic on one gigabit
trunk. The operator chose to pay ~$130 to make the plan usable and to
lift the trunk to 2.5G at the same time. It stays the fallback if the
modules run too hot. It needs no purchase and reuses this ADR's VLAN 2
configuration on a copper port.
- **One S+RJ10, for `igc0` only, with the modem on a copper port.** It has
half the heat, but the WAN stays at ~940. It is the step down if two
modules side by side cannot be held under the alert.
- **A second add-on NIC for the WAN.** The Mini's add-on NIC already takes
its spare M.2 slot. A USB NIC on a firewall's WAN would trade one
unreliable port for another.
- **Downgrading the plan, as #922's data suggested.** It saves money and
leaves `em0` where it is, so it does not touch the fault.
- **Keeping `em0` and rebooting on `WanReceiveErrors`.** It works, and it
stays the remedy until the cutover. Each recurrence costs slow internet
until someone sees the alert and is home to reboot the firewall.

## Consequences

- **The internet becomes a VLAN on the core switch.** A bridge commit that
puts VLAN 2 on any other port hands that port a public DHCP lease from the
ISP, around the firewall. A reboot or a bad commit on `neo` now takes the
WAN down as well as the LAN. Two things guard against the first:
`SwitchPortVlanChanged` sees a PVID change on any bridge port, the cages
included once they join the bridge; and the port map in
[`network.md`](../network.md) names VLAN 2's two ports. The rollback is
physical and short: the modem's cable back into `em0`, and WAN reassigned
to `em0`. `em0` therefore stays in `morpheus`, unassigned, not removed.
- **One device still tops out at ~940 Mbit/s.** Every client NIC is gigabit.
The plan's 2000 is reachable only in aggregate, which is what #922 said.
- **`igc0` now carries everything.** Downloads arrive on its receive side
and leave on its transmit side towards the LAN, so the 2.5G full-duplex
trunk is shared by WAN, LAN and inter-VLAN traffic. That is more headroom
than today's 1G trunk carries for LAN alone. `igc0` is also the I226-V,
a family with its own history of dropped links. Energy-Efficient Ethernet
is checked and kept off on it, as it is on `em0`.
- **These current-state documents change in the PR that records the
cutover**, not in this one:
- [`network.md`](../network.md): the WAN and LAN notes, the port map and
`[^adapter]`;
- [`hardware.md`](../hardware.md): the CRS326 row, U22's note and the WAN
table;
- [`security.md`](../security.md) and
[`architecture.md`](../architecture.md), wherever they place the WAN on
`em0`;
- the network diagram and its PNG;
- [`move-into-the-32u-rack.md`](../runbooks/move-into-the-32u-rack.md)
§6.1;
- the `em0` series in `internet.rules.yaml`, its tests, the Internet
dashboard and Glance's network page.

Until then they describe `em0`, which is still true.
20 changes: 20 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,26 @@ docstring gives: it is a record, not a claim about now.

## 2026-11-23

- **#922 closed: the 2000/250 plan stays, and the WAN moves off `em0`
through `neo`'s SFP+ cages at 2.5G
([ADR-0131](adr/0131-carry-the-wan-through-neos-sfp-cages-at-2-5g.md)).**
#922's own data, 2026-10-10 to 2026-11-09, said the 2.5G path bought no
throughput and pointed to a downgrade. What changed the answer is
2026-11-22's finding that `em0` itself is the WAN's fault. Every design
that takes the WAN off `em0` ends it, and #922's sketch is one of them,
with the CODA56's 2.5G port now trusted where the XB7's was not. The free
alternative, VLAN 2 on the existing gigabit trunk with the modem on a
copper port, was recommended and fixes `em0` as well. The operator chose
the two-module build, so that the plan's 2000 is usable in aggregate and
the trunk goes to 2.5G. MikroTik's S+RJ10 guidance warns against two
modules side by side on a passive switch, which is this design, so the
runbook reads an hour of idle temperatures and puts an alert on them before
the cutover, and the copper-port VLAN stays the fallback. The two S+RJ10s
entered *Everything still to buy*. The build is
[#1691](https://github.com/Gerrrt/HomeLab/issues/1691), by
[`move-the-wan-onto-neo.md`](runbooks/move-the-wan-onto-neo.md). Until then
the remedy for `WanReceiveErrors` is still rebooting `morpheus`.

- **`morpheus`'s three add-ons are updated: Suricata, net-snmp and System
Patches.** Each was installed with `pfSense-upgrade -y -i`, the path Package
Manager uses, after a fresh `make backup-firewall`; four packages in all,
Expand Down
4 changes: 2 additions & 2 deletions docs/hardware.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ below.
| U25–U32 | ViewSonic N1700W on an 8U VESA rack mount | PDU outlet 9, by its 12 V brick | The very top. The console's height frees the middle of the rack for air between machines. Light, so high is fine |
| U24 | 1U sliding keyboard and mouse shelf[^Drawer] | — | Directly under the screen, about 112 cm up. Front-mounted, 10.8" deep. It wobbles on its ear screws alone, so the KVM's shelf below it is mounted upside down with its flat top pressed against the drawer's underside, in place of the support rails the plan had |
| U23 | MT-VIKI 8-port KVM[^KVM], on a 1U vented shelf | PDU outlet 10 | Beside the console, so its console cables are short. Its lead sets reach the DL360 20 units down. The shelf is because the KVM is sold as a half-U device: its ears take two of a unit's three holes, unevenly spaced, so it sits off centre whichever pair is used. The shelf takes all three |
| U22 | Vented blank | — | Air over the CRS326. It is passive, and two S+RJ10s side by side need "additional cooling" ([MikroTik's guidance](https://help.mikrotik.com/docs/spaces/ROS/pages/240156916/S+RJ10+general+guidance)) if the 2.5G WAN work goes ahead |
| U21 | MikroTik CRS326-24G-2S+RM[^CRS326] (`neo`) | PDU outlet 4 | Core switching, in place of the MokerLink[^MokerLink] that was at U9 of the 9U frame ([#444](https://github.com/Gerrrt/HomeLab/issues/444)). SFP+ 1–2 are the 2.5G path, if built |
| U22 | Vented blank | — | Air over the CRS326. It is passive, and two S+RJ10s side by side need "additional cooling" ([MikroTik's guidance](https://help.mikrotik.com/docs/spaces/ROS/pages/240156916/S+RJ10+general+guidance)) when the 2.5G WAN is built ([ADR-0131](adr/0131-carry-the-wan-through-neos-sfp-cages-at-2-5g.md)). The two modules' temperatures are scraped and alerted on before the cutover |
| U21 | MikroTik CRS326-24G-2S+RM[^CRS326] (`neo`) | PDU outlet 4 | Core switching, in place of the MokerLink[^MokerLink] that was at U9 of the 9U frame ([#444](https://github.com/Gerrrt/HomeLab/issues/444)). SFP+ 1–2 are the 2.5G path decided by [ADR-0131](adr/0131-carry-the-wan-through-neos-sfp-cages-at-2-5g.md), empty until its two S+RJ10s are bought ([#1691](https://github.com/Gerrrt/HomeLab/issues/1691)) |
| U20 | 1U horizontal cable manager | — | Strain relief between switch and panel. A tugged hand-crimped WAN plug was the slow internet #914 traced (#923) |
| U19 | Jadol 24-port patch panel[^Panel] | — | Next to the switch, so its patch cords stay short. The house's in-wall runs reach it |
| U18 | Lenovo ThinkCentre M80q on a 1U Tiny mount[^Tinymount] (`gandalf`) | PDU outlet 8, by its brick | The offensive range (ADR-0007, ADR-0017), beside the other two 1-litre boxes. Proxmox VE 9 since 2026-11-07, on `neo`'s `ether20`, and off between range sessions. Front-mounted, 6.6" deep, on support rails under its rear like the drawer |
Expand Down
6 changes: 5 additions & 1 deletion docs/network.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ truth for what a box actually does.
rebooted. So **the remedy is rebooting `morpheus`**, not the modem or the
cable. The earlier incidents blamed on the XB7's ports (2026-11-01, 11-07,
11-18, 11-21) were cleared by re-plugging, which also reset `em0`'s link.
Taking the WAN off `em0` is the durable fix, and it is not decided.
Taking the WAN off `em0` is the durable fix.
[ADR-0131](adr/0131-carry-the-wan-through-neos-sfp-cages-at-2-5g.md)
decided it on 2026-11-23: VLAN 2 through `neo`'s SFP+ cages to `igc0` at
2.5G. It is not built yet ([#1691](https://github.com/Gerrrt/HomeLab/issues/1691)),
so this link is still `em0`, and rebooting is still the remedy.
- The modem is a modem only: no router and no Wi-Fi radio. All wireless is
handled by eero units on tagged VLANs.
- **One inbound pass, and one only** — the WireGuard endpoint decided by
Expand Down
12 changes: 8 additions & 4 deletions docs/roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,13 @@ Closes when it is empty.
([postlund/pyatv#2930](https://github.com/postlund/pyatv/pull/2930) or an
equivalent). The component and its package go then. The mount stays while
`ring_push_guard` does.
- **[#922](https://github.com/Gerrrt/HomeLab/issues/922) Decide: a 2.5 Gbit
WAN, or a cheaper plan.** The decision was due around 2026-11-03, on four
weeks of `WanLinkSaturated`. If it implies a purchase, the purchase enters
through *Everything still to buy* in the same PR that decides it.
- **[#1691](https://github.com/Gerrrt/HomeLab/issues/1691) Move the WAN
off `em0`, through `neo`'s SFP+ cages at 2.5G.** Decided by
[ADR-0131](adr/0131-carry-the-wan-through-neos-sfp-cages-at-2-5g.md);
the procedure is
[`move-the-wan-onto-neo.md`](runbooks/move-the-wan-onto-neo.md). Gate: the
two S+RJ10s in *Everything still to buy*. Until it is built, the remedy for
`WanReceiveErrors` is rebooting `morpheus`.
- **[#1454](https://github.com/Gerrrt/HomeLab/issues/1454) Deploy MakeMKV on
`smaug`.** Decided by
[ADR-0114](adr/0114-rip-discs-on-smaug-with-makemkv-started-only-to-rip.md):
Expand Down Expand Up @@ -173,6 +176,7 @@ move and stay until they are bought or dropped.

| Item | For | Decided by | When it is needed |
| --- | --- | --- | --- |
| 2 × MikroTik S+RJ10, genuine | `neo`'s two SFP+ cages: the CODA56's 2.5G port into `sfp-sfpplus2`, `morpheus`'s `igc0` into `sfp-sfpplus1`, taking the WAN off `em0` ([#1691](https://github.com/Gerrrt/HomeLab/issues/1691)) | [ADR-0131](adr/0131-carry-the-wan-through-neos-sfp-cages-at-2-5g.md), the operator, 2026-11-23 | Now: until it is built, every `em0` fault is a reboot of the firewall |
| Switched, SNMP-managed 1U PDU, eight outlets or more: APC AP7900B class | Remote power-cycling for the four hosts without a BMC: `morpheus`, `trinity`, `gandalf`, `smaug`. It replaces the strip at U4; the screen's brick and the KVM move to the UPS's own outlets, so eight outlets suffice | The operator, 2026-10-16. **Its segment and hardening are an ADR before it is cabled**, as [ADR-0036](adr/0036-poll-the-ilo-and-the-ups-card-over-snmpv3-and-keep-the-firewall-on-bsnmpd.md) was for the iLO and the UPS card | Now that the #919 move is done: a management-plane device, not a move part |
| USB-to-RJ45 serial console cable | The CRS326's console port: the way back in when its UI is unreachable, which is the swap runbook's rollback case | The operator, 2026-10-16 | Any time; the #919 move is done |
| Label maker with flag tape, or self-laminating wrap labels | Both ends of every lead, and the panel and switch ports: the physical half of the port map the swap runbook captures | The operator, 2026-10-16 | Any time; the #919 move is done |
Expand Down
Loading