sh script to automate the signing of Mullvad exit nodes on a tailnet with Tailnet Lock enabled. This script is compatible with any system capable of running sh scripts.
This script has no mandatory arguments, but you can specify -v
to view more verbose output.
-
Install
jq
: You must havejq
installed for the script to work. Follow the installation instructions on the jq GitHub repository.# macOS or Linux brew install jq # Arch Linux (btw) sudo pacman -S jq # Debian/Ubuntu sudo apt-get install jq # Fedora/RHEL sudo dnf install jq # Windows (via WinGet, Scoop, or Chocolatey) winget install jqlang.jq scoop install jq chocolatey install jq
-
Setup
tailscale
CLI: Thetailscale
CLI command must be setup properly. The CLI is configured properly by default on Linux. On macOS, follow the instructions here in the Tailscale documentation to setup the CLI: https://tailscale.com/kb/1080/cli.
-
Download the Script: Either clone the repo or copy the contents of the script to a local file.
-
Make the Script Executable: Navigate to the directory where the script is located and make it executable.
chmod +x signNodes.sh
-
Run the Script: Execute the script with the proper info in the arguments.
./signNodes.sh
-
Follow the Prompts: The script will prompt you to confirm that you want to sign Mullvad exit nodes, and for the country prefix for the country's exit nodes you want to sign. Use ".." to sign all Mullvad exit nodes.
-
Download the Script: Either clone the repo or copy the contents of the script to a local file.
-
Enable Execution Policy: Open PowerShell as an administrator and run the following command to enable the execution of the script.
Set-ExecutionPolicy Unrestricted -Scope CurrentUser
You'll receive a the following prompt:
Execution Policy Change The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose you to the security risks described in the about_Execution_Policies help topic at https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"):
Select
Y
to continue. -
Run the Script: Execute the script with the proper info in the arguments.
.\signNodes.ps1
-
Follow the Prompts: The script will prompt you to confirm that you want to sign Mullvad exit nodes, and for the country prefix for the country's exit nodes you want to sign. Use ".." to sign all Mullvad exit nodes.
-
Return Execution Policy to Default: Once you're done using the script, you should reset the execution policy to its default value.
Set-ExecutionPolicy Default -Scope CurrentUser