routeros: DNS lock on the client VLANs, crs309 resolver to the recursor #164

Merged
ginjiruu merged 1 commit from dns-client-lock into master 2026-11-20 01:18:57 +00:00
Owner

Turns on the DNS lock from #163 and moves crs309's own resolver to the c1 recursor. Part of lab/clusters#1673.

Merge after the arm-lock fix (lab/iac PR "rollback: arm lock for the router pair"). This PR changes all three router roots, and without that fix one merge arms both routers at once (seen on #163).

Changes

  • modules/site: client_dns_lock = true. Each router gets 8 forward drops: 53 and 853, udp and tcp, to the WAN, from 10.30.10/30/40/50.0/24. The rules are the ones simmed in #163 (case 3).
  • crs309/switch.tf: new routeros_ip_dns, servers 10.30.100.53. Nothing owned the switch's resolver before, so it kept the bootstrap's 8.8.8.8, 1.1.1.1. Its DHCP client has use-peer-dns=false. The lock would have dropped its NTP name lookups.
  • crs309/rollback.tf: the dns probe now asks the recursor for resolver.caosh.int.animeteamspeak.moe. Its old target, 8.8.8.8 from VLAN 10, is dropped by the lock.
  • Docs: docs/routeros/README.md "Client DNS" now describes the lock as on and gives the real rollback window (about 30 s after the apply, the early confirm). ADR-0008 note updated.

Clients on the switched networks

On 2026-11-19 the switched networks held two leases:

  • arch-ws (VLAN 30): renewed by hand this morning. NetworkManager now has 10.30.100.53, and Tailscale falls through to it.
  • crs309 (VLAN 10): ignores DHCP DNS. This PR moves its resolver.

No other client is on VLAN 10, 30, 40 or 50 yet.

Checks

  • task routeros:validate (rb5009-a, rb5009-b, crs309), routeros:guard and tofu fmt pass.
  • From crs309: :resolve resolver.caosh.int.animeteamspeak.moe server=10.30.100.53 returns 10.30.100.53, through the live mgmt allow rule.
  • Not simmed again: the lock rules are unchanged from the #163 sim. The crs309 root has no sim.

After merge

  • dig @8.8.8.8 example.com from arch-ws on VLAN 30 should time out, and a plain dig example.com should still answer.
  • crs309: /system/ntp/client stays synchronized.
Turns on the DNS lock from #163 and moves crs309's own resolver to the c1 recursor. Part of lab/clusters#1673. **Merge after the arm-lock fix (lab/iac PR "rollback: arm lock for the router pair").** This PR changes all three router roots, and without that fix one merge arms both routers at once (seen on #163). ## Changes - `modules/site`: `client_dns_lock = true`. Each router gets 8 forward drops: 53 and 853, udp and tcp, to the WAN, from 10.30.10/30/40/50.0/24. The rules are the ones simmed in #163 (case 3). - `crs309/switch.tf`: new `routeros_ip_dns`, servers `10.30.100.53`. Nothing owned the switch's resolver before, so it kept the bootstrap's `8.8.8.8, 1.1.1.1`. Its DHCP client has `use-peer-dns=false`. The lock would have dropped its NTP name lookups. - `crs309/rollback.tf`: the `dns` probe now asks the recursor for `resolver.caosh.int.animeteamspeak.moe`. Its old target, 8.8.8.8 from VLAN 10, is dropped by the lock. - Docs: `docs/routeros/README.md` "Client DNS" now describes the lock as on and gives the real rollback window (about 30 s after the apply, the early confirm). ADR-0008 note updated. ## Clients on the switched networks On 2026-11-19 the switched networks held two leases: - arch-ws (VLAN 30): renewed by hand this morning. NetworkManager now has `10.30.100.53`, and Tailscale falls through to it. - crs309 (VLAN 10): ignores DHCP DNS. This PR moves its resolver. No other client is on VLAN 10, 30, 40 or 50 yet. ## Checks - `task routeros:validate` (rb5009-a, rb5009-b, crs309), `routeros:guard` and `tofu fmt` pass. - From crs309: `:resolve resolver.caosh.int.animeteamspeak.moe server=10.30.100.53` returns `10.30.100.53`, through the live mgmt allow rule. - Not simmed again: the lock rules are unchanged from the #163 sim. The crs309 root has no sim. ## After merge - `dig @8.8.8.8 example.com` from arch-ws on VLAN 30 should time out, and a plain `dig example.com` should still answer. - crs309: `/system/ntp/client` stays `synchronized`.
client_dns_lock = true: drop 53/853 udp+tcp to the WAN from VLANs 10, 30,
40 and 50. The two leased clients were handled first: arch-ws renewed by
hand, crs309 ignores DHCP DNS and gets routeros_ip_dns -> 10.30.100.53 (it
kept the bootstrap 8.8.8.8 until now). crs309 rollback dns probe targets
the recursor. Merge after the rollback arm-lock fix.

Part of lab/clusters#1673.
Author
Owner

Merge after #165 (the arm lock). This PR changes all three router roots, and without #165 one merge arms both rb5009s at once.

Merge after #165 (the arm lock). This PR changes all three router roots, and without #165 one merge arms both rb5009s at once.
ginjiruu merged commit 7c25c46aeb into master 2026-11-20 01:18:57 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lab/iac!164
No description provided.