Skip to content

Instantly share code, notes, and snippets.

@tecandrew
Last active December 5, 2024 02:56
Show Gist options
  • Save tecandrew/1760d8850697fed1f752888be047867a to your computer and use it in GitHub Desktop.
Save tecandrew/1760d8850697fed1f752888be047867a to your computer and use it in GitHub Desktop.
Tailscale Lock: Trust Mullvad VPN Nodes
#!/usr/bin/env bash
tailscale lock status | \
grep '.mullvad.ts.net' | \
awk -F'nodekey:' '/nodekey:/ {print $2}' | \
while read nodekey; do
echo "Signing nodekey: $nodekey"
tailscale lock sign "nodekey:$nodekey"
sleep 1
done
echo 'OK! Done'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment