Last active
December 5, 2024 02:56
-
-
Save tecandrew/1760d8850697fed1f752888be047867a to your computer and use it in GitHub Desktop.
Tailscale Lock: Trust Mullvad VPN Nodes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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