feat(fw,web-arm): replace cyberghost germany exit with a wireguard tunnel via web-arm #152
No reviewers
Labels
No labels
bug
enhancement
in-progress
needs-info
needs-triage
p0
ready-for-agent
ready-for-human
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Cloonar/nixos!152
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "afk/151"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #151
web-arm becomes a WireGuard exit node and fw's German-exit toggle routes the Apple TV through it instead of CyberGhost, which is removed entirely.
web-arm (
hosts/web-arm/modules/de-exit.nix, new)wg_de_exitinterface, listen UDP 51820 (opened in the firewall), one peer (fw, no endpoint — fw initiates with keepalive since its WAN IP is dynamic)..2, fw.1) — deliberately outside wg_cloonar's 10.42.0.0/16, ghetto's 10.43.0.0/16 and epicenter's 10.14.x/10.50.x claims, so replies can't land in the wrong tunnel.networking.natmasquerades the /30 outenp1s0(IPv4 only). Docker sets the iptables FORWARD policy to DROP on this host, so the tunnel gets explicit forward accepts via an idempotentde-exit-fwdchain.wg_cloonar, the ADR-0010 IPv6 setup, and public web services are untouched.fw (
hosts/fw/modules/de-exit.nix, replacescyberghost-de.nix)wg_de_exitinterface toweb-arm.cloonar.com:51820;allowedIPs 0.0.0.0/0withallowedIPsAsRoutes = falseso it never touches the main table.cyberghost-de.target→de-exit.target, same semantics: start = Apple TV German, stop = Austrian, off after every boot. The target toggles only the policy-routing unit (rules at priorities 90/100, table vpn-de/101, client list unchanged).postSetupreinstalls it after interface recreation (e.g. a rebuild restarting the wg unit while the target is on), since deleting the interface flushes the route.tun-cg-dereferences (rpfilter exemption, multimedia forward accept, masquerade) now namewg_de_exit.Maintainer cleanup
The following fw secrets are no longer referenced by any module and can be removed from
hosts/fw/secrets.yaml(not touched here, per policy):cyberghost-authcyberghost-cacyberghost-certcyberghost-keyVerification