aboutsummaryrefslogtreecommitdiff
path: root/scripts/zfs-replicate
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-07-20 15:46:09 -0500
committerCraig Jennings <c@cjennings.net>2026-07-20 15:46:09 -0500
commit51dbae5557f8a336ef442d90f5746d88699024c7 (patch)
tree6cd4d02d96ff745ff1d09a466a58a9f7cd5a5dd7 /scripts/zfs-replicate
parent5eb6755aa18f847395615fa9c1ec8d5ed97d2f7f (diff)
downloadarchsetup-51dbae5557f8a336ef442d90f5746d88699024c7.tar.gz
archsetup-51dbae5557f8a336ef442d90f5746d88699024c7.zip
fix(wireguard): bring the tunnel down before the rename modify
`nmcli connection import` activates a full-tunnel (0.0.0.0/0) Proton profile immediately. The import loop renamed and set autoconnect off, then brought the tunnel down. Under `set -euo pipefail`, a failed modify aborted the script before that down ran, leaving a live full-tunnel VPN routing all traffic through Proton -- the exact unasked-for VPN the script exists to prevent. The next-run guard catches the leftover profile but not the still-active tunnel. Moved the down ahead of the modify. It targets the UUID, which is stable across the rename, so downing first is safe and no failure between import and modify can leave the tunnel up.
Diffstat (limited to 'scripts/zfs-replicate')
0 files changed, 0 insertions, 0 deletions