From 7f6f39fafdce1c13be06a74f85e5edaf67c55889 Mon Sep 17 00:00:00 2001 From: onyks-os <129986281+onyks-os@users.noreply.github.com> Date: Fri, 27 Nov 2026 13:50:47 +0100 Subject: [PATCH 1/2] Show how to import a WireGuard file into NetworkManager for the VPN mode The VPN guide assumed the profile already existed. Most providers hand out a wg-quick file, often with a hostname endpoint, which TTP refuses. The new section checks the three lines TTP enforces (one peer, numeric endpoint, full-tunnel AllowedIPs), imports the file with nmcli, sets the explicit fwmark the qualified profile uses, and says what to do with the private key the file contains. Co-Authored-By: Claude Opus 5.5 Signed-off-by: onyks-os <129986281+onyks-os@users.noreply.github.com> --- CHANGELOG.md | 8 +++++++ docs/web/how-to/vpn.md | 35 +++++++++++++++++++++++++++++ docs/web/release-notes/changelog.md | 8 +++++++ 3 files changed, 51 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef485a9..e623402 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Documentation + +- The VPN guide shows how to import a provider's WireGuard file into + NetworkManager, and what to check first. It must have one peer, a numeric + endpoint (with how to replace a hostname) and a full-tunnel `AllowedIPs`. The + guide also shows the explicit firewall mark TTP requires and how to handle + the private key the file contains. + ### Tests - The lifecycle VM's capture reader (`scripts/vm/lifecycle/egress.py`) no longer diff --git a/docs/web/how-to/vpn.md b/docs/web/how-to/vpn.md index d6b45e9..930ee93 100644 --- a/docs/web/how-to/vpn.md +++ b/docs/web/how-to/vpn.md @@ -48,6 +48,41 @@ apply. NetworkManager's selected peer must have full-tunnel AllowedIPs, a live nonzero WireGuard fwmark, and consistent kernel settings. TTP refuses ambiguous or changed evidence instead of rewriting the profile or routing policy. +## Bring a WireGuard configuration into NetworkManager + +Most providers hand out a `wg-quick` file (`wg0.conf` below). TTP does not read +it; NetworkManager can import it. Check three lines first, because TTP refuses +a profile that does not meet them: + +```bash +grep -iE '^(Endpoint|AllowedIPs)|^\[Peer\]' wg0.conf +``` + +- **One `[Peer]` only.** +- **`Endpoint` is a numeric address and port**, such as `203.0.113.5:51820` or + `[2001:db8::5]:51820`. A hostname is refused ("VPN requires a stable numeric + endpoint"). Resolve it with `getent ahosts vpn.example.net`, choose one + address, and write it in place of the name. If the provider later moves that + address, the tunnel stops connecting and you repeat this step; TTP never + falls back to the name. +- **`AllowedIPs` is the full tunnel**: `0.0.0.0/0`, plus `::/0` unless you + will start with `--no-ipv6`. A list of networks is a split tunnel, which is + refused. + +Import it, give it a WireGuard firewall mark (TTP requires a nonzero one, and +the qualified profile sets it explicitly), and bring it up: + +```bash +sudo nmcli connection import type wireguard file wg0.conf +sudo nmcli connection modify wg0 wireguard.fwmark 51820 +sudo nmcli connection up wg0 +``` + +The connection and its interface take the file's name, so keep it to 15 +characters. The file contains your `PrivateKey`. NetworkManager now keeps its +own root-only copy, so delete the original or keep it with mode `0600`. Never +share `nmcli --show-secrets` output. + ## Start the session Configure and activate the VPN using your existing trusted workflow. TTP does diff --git a/docs/web/release-notes/changelog.md b/docs/web/release-notes/changelog.md index 05d70c4..9fd030e 100644 --- a/docs/web/release-notes/changelog.md +++ b/docs/web/release-notes/changelog.md @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Documentation + +- The VPN guide shows how to import a provider's WireGuard file into + NetworkManager, and what to check first. It must have one peer, a numeric + endpoint (with how to replace a hostname) and a full-tunnel `AllowedIPs`. The + guide also shows the explicit firewall mark TTP requires and how to handle + the private key the file contains. + ### Tests - The lifecycle VM's capture reader (`scripts/vm/lifecycle/egress.py`) no longer From e36aa51113f6ad743e3b4a40a2e5252d6bb92172 Mon Sep 17 00:00:00 2001 From: onyks-os <129986281+onyks-os@users.noreply.github.com> Date: Fri, 27 Nov 2026 14:00:50 +0100 Subject: [PATCH 2/2] Keep one Documentation section in the Unreleased changelog Co-Authored-By: Claude Opus 5.5 Signed-off-by: onyks-os <129986281+onyks-os@users.noreply.github.com> --- CHANGELOG.md | 14 ++++++-------- docs/web/release-notes/changelog.md | 14 ++++++-------- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e623402..e9c771a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,14 +12,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Documentation - -- The VPN guide shows how to import a provider's WireGuard file into - NetworkManager, and what to check first. It must have one peer, a numeric - endpoint (with how to replace a hostname) and a full-tunnel `AllowedIPs`. The - guide also shows the explicit firewall mark TTP requires and how to handle - the private key the file contains. - ### Tests - The lifecycle VM's capture reader (`scripts/vm/lifecycle/egress.py`) no longer @@ -61,6 +53,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Documentation +- The VPN guide shows how to import a provider's WireGuard file into + NetworkManager, and what to check first. It must have one peer, a numeric + endpoint (with how to replace a hostname) and a full-tunnel `AllowedIPs`. The + guide also shows the explicit firewall mark TTP requires and how to handle + the private key the file contains. + - `assets/social-preview.png`, the image GitHub shows when the repository is linked, and `assets/gif/demo.tape`, which re-records the README demo from a real session with VHS. The README demo is re-recorded with it from a real diff --git a/docs/web/release-notes/changelog.md b/docs/web/release-notes/changelog.md index 9fd030e..876ff2e 100644 --- a/docs/web/release-notes/changelog.md +++ b/docs/web/release-notes/changelog.md @@ -7,14 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Documentation - -- The VPN guide shows how to import a provider's WireGuard file into - NetworkManager, and what to check first. It must have one peer, a numeric - endpoint (with how to replace a hostname) and a full-tunnel `AllowedIPs`. The - guide also shows the explicit firewall mark TTP requires and how to handle - the private key the file contains. - ### Tests - The lifecycle VM's capture reader (`scripts/vm/lifecycle/egress.py`) no longer @@ -56,6 +48,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Documentation +- The VPN guide shows how to import a provider's WireGuard file into + NetworkManager, and what to check first. It must have one peer, a numeric + endpoint (with how to replace a hostname) and a full-tunnel `AllowedIPs`. The + guide also shows the explicit firewall mark TTP requires and how to handle + the private key the file contains. + - `assets/social-preview.png`, the image GitHub shows when the repository is linked, and `assets/gif/demo.tape`, which re-records the README demo from a real session with VHS. The README demo is re-recorded with it from a real