feat(fw): route appletv through a toggleable cyberghost germany exit #149
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!149
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "lab/20260612-1929"
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?
Adds a second CyberGhost connection (Germany, OpenVPN UDP,
87-1-DE.cg-dialup.net) terminating on fw, policy-routing the Apple TV (10.42.99.15) through it for geo-unblocking ARTE/ARD/ZDF/Joyn.Toggle (off after every boot — Austria is the resting state):
systemctl start cyberghost-de.target→ Apple TV egresses via Germanysystemctl stop cyberghost-de.target→ Apple TV is a normal Austrian client againDesign:
hosts/fw/modules/cyberghost-de.nix: OpenVPN client on pinnedtun-cg-de,route-nopull; tun route (metric 50, tablevpn-de/101) managed by OpenVPN up/down hooks so it tracks tunnel state exactly.cyberghost-de-routinginstalls anunreachable default(metric 100) plus per-client ip rules (local /20 → main at prio 90, rest →vpn-deat prio 100). Rule lifetime is tied to the target, not the openvpn unit: a tunnel crash hard-kills the client's WAN egress instead of leaking the Austrian IP.tun-cg-de, multimedia→tunnel forward accept, masquerade out the tunnel — all static and inert while the target is off.48:e1:5c:b3:65:65 → 10.42.99.15(dnsmasq + dormant Kea mirror). The Apple TV needs one network re-join to move off its dynamic lease (.181).Secrets (
cyberghost-auth/-ca/-cert/-key) already landed on main (7739746).