Skip to content

fix(range): disable vmbr1's IPv6 at post-up, so it survives a boot - #1644

Merged
Gerrrt merged 2 commits into
mainfrom
gerrrt/vmbr1-ipv6-post-up
Nov 22, 2026
Merged

Gerrrt merged 2 commits into
mainfrom
gerrrt/vmbr1-ipv6-post-up

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 22, 2026

Copy link
Copy Markdown
Owner

What changed

  • docs/runbooks/build-the-playground.md §2: vmbr1's sysctl -q -w net.ipv6.conf.vmbr1.disable_ipv6=1 moves from pre-up to post-up. The bullet explains why it must be post-up, and that IPv6 on vmbr1 would also accept router advertisements. The dated note records the 2026-11-22 failure.
  • §7's per-session read-back now checks ip addr show dev vmbr1 | grep -c inet reads 0.
  • docs/changelog.md: a 2026-11-22 entry.

Why

The follow-up to the 2026-11-13 gandalf audit rebooted the box into a new kernel. Afterwards, read-only:

  • vmbr1 had fe80::24a3:62ff:fe3f:97ee, with disable_ipv6 = 0 and accept_ra = 1.
  • This boot's networking log has warning: vmbr1: pre-up cmd 'sysctl -q -w net.ipv6.conf.vmbr1.disable_ipv6=1' failed: returned 1 (sysctl: cannot stat /proc/sys/net/ipv6/conf/vmbr1/disable_ipv6: No such file or directory.

pre-up runs before ifupdown2 creates the bridge, so the key does not exist yet. The line was added on 2026-11-07 and proved only with ifreload -a, while the bridge already existed. This was the first boot since.

While it was open, the Proxmox firewall held: the IPv6 management set is empty, so no SSH or 8006 reached the host over IPv6. The host had no global IPv6 address and no IPv6 default route. HOST-IN does pass ICMPv6 types 133–136, router advertisements included, which is why accept_ra matters.

Blast radius

Docs only. On gandalf it is a one-word change to /etc/network/interfaces, plus a sysctl to apply it now. It touches only vmbr1, which has no physical port. A host address on vmbr1 is exactly what §2 forbids, so turning IPv6 off cannot cut anything that should work.

Verification

  • make validate: all checks passed, with 46 skipped because there is no Docker here.
  • ./scripts/lint.sh: passed, with 14 skipped (shellcheck, markdownlint and editorconfig run in CI).
  • Not yet done:
    • Applying it on gandalf.
    • The reboot that proves it. §2's grep -c must read 0 after a boot, not only after ifreload -a.

🤖 Generated with Claude Code

The pre-up sysctl in build-the-playground.md §2 runs before ifupdown2 has
created vmbr1, so at boot it fails (cannot stat .../vmbr1/disable_ipv6) and
the bridge comes up with an fe80:: address and accept_ra=1. It was only ever
proved with ifreload -a, with the bridge already there; the 2026-11-22
reboot was the first since. Move it to post-up, record why, and add the
vmbr1 no-address check to §7's per-session read-back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 22, 2026 23:28
@Gerrrt
Gerrrt enabled auto-merge (squash) November 22, 2026 23:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The changelog claims successful boot persistence despite the reboot remaining unverified, so the dated entry should describe the runbook correction rather than an unproven operational result.

1 open issue
What changed in this PR

This docs-only PR corrects the playground runbook’s IPv6-disable hook so it runs after vmbr1 is created, addressing the boot-order failure on gandalf. Host application and reboot verification remain pending.

Changes:

  • Moves the vmbr1 sysctl from pre-up to post-up and explains the failure.
  • Adds a per-session check that the range bridge has no host address.
  • Records the incident and runbook correction in the changelog.
File Description
docs/​runbooks/​build-the-playground.md Corrects hook timing, documents the boot failure, and adds the address check.
docs/​changelog.md Adds a dated entry covering the incident and correction.

Review effort: Balanced

Comment thread docs/changelog.md Resolved
The reboot that proves the post-up line has not been run, so the dated
entry records the runbook correction and says the proof is outstanding.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gerrrt
Gerrrt merged commit f6ef418 into main Nov 22, 2026
9 checks passed
@Gerrrt
Gerrrt deleted the gerrrt/vmbr1-ipv6-post-up branch November 22, 2026 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants