summaryrefslogtreecommitdiffstatshomepage
path: root/justfile
diff options
context:
space:
mode:
authorsommerfeld <sommerfeld@sommerfeld.dev>2026-09-22 14:49:06 +0100
committersommerfeld <sommerfeld@sommerfeld.dev>2026-09-22 14:49:06 +0100
commit04caeee050e4f1afdc429d9209f12a027b150056 (patch)
tree9ab2e51ada7e27487b483c498b8537530498c0ee /justfile
parent92c29300d7363b02807f5b5c1aa48eeef5e18bb2 (diff)
downloaddotfiles-04caeee050e4f1afdc429d9209f12a027b150056.tar.gz
dotfiles-04caeee050e4f1afdc429d9209f12a027b150056.tar.bz2
dotfiles-04caeee050e4f1afdc429d9209f12a027b150056.zip
Add secondary Canonical VPN setup and routing controlsHEADmaster
Diffstat (limited to 'justfile')
-rw-r--r--justfile11
1 files changed, 11 insertions, 0 deletions
diff --git a/justfile b/justfile
index ea69469..daeb4f0 100644
--- a/justfile
+++ b/justfile
@@ -100,6 +100,17 @@ _require-canonical:
canonical-system: _require-canonical
@bash scripts/canonical-system.sh
+# Import only the secondary credentials; do not connect the VPN.
+canonical-vpn-install archive="tmp/canonical-vpn-credentials.zip" endpoint="uk": _require-canonical
+ @python3 -m scripts.canonical_vpn install {{ quote(archive) }} --endpoint {{ quote(endpoint) }}
+
+# Connect the secondary VPN with full or split routing.
+canonical-vpn-up mode="split": _require-canonical
+ @python3 -m scripts.canonical_vpn up {{ quote(mode) }}
+
+canonical-vpn-down: _require-canonical
+ @python3 -m scripts.canonical_vpn down
+
# Prepare bond profiles without loading them or changing the active network.
[positional-arguments]
canonical-bond-prepare +profiles: _require-canonical