[roads] QA F-08: a mesh address is never an internet address

devices.address refused only special and IPv4-embedding ranges, so a public
address was accepted, and an exit's forward-to-internet rule then covered that
device's mesh address. Mesh addresses now stay inside the not-internet ranges
(100.64.0.0/10, RFC 1918, ULA). Two fixtures, IPv4 and IPv6.
This commit is contained in:
2026-11-25 08:50:23 +01:00
parent 31a46d0367
commit ff78361165
6 changed files with 45 additions and 4 deletions
+1 -1
View File
@@ -175,7 +175,7 @@ what makes the snapshot unreadable: bad JSON, a wrong format, a malformed or dup
| `key` | — | a device key (`devices.key`), unique (`devices.duplicate`) |
| `name` | — | 1–64 characters of `[a-z0-9-]`, unique (`devices.name`) |
| `owner` | none | a person id (`devices.owner`). One that is not in the directory leaves the device ownerless (`devices.owner-unknown`, reported). A device with no owner is reached only by `device:` roads |
| `address` | — | the device's mesh address, one IPv4 or IPv6 address, unique, not inside any device's routes, not loopback, link-local, multicast or IPv4-embedding IPv6 (`devices.address`) |
| `address` | — | the device's mesh address, one IPv4 or IPv6 address, unique, not inside any device's routes, not loopback, link-local, multicast or IPv4-embedding IPv6, and never an internet address, so an exit's `internet` rule can never cover a mesh device (QA F-08): use `100.64.0.0/10` or a ULA (`devices.address`) |
| `classic` | `false` | a classic WireGuard peer, **not post-quantum** |
| `exit` | `false` | offers itself as an exit |
| `relay` | `false` | may be named by `via` |