Skip to content

Instantly share code, notes, and snippets.

@geeknik
Created June 17, 2021 17:13
Show Gist options
  • Save geeknik/ca9fd5b2a375bc33b31bd62766d0d0c4 to your computer and use it in GitHub Desktop.
Save geeknik/ca9fd5b2a375bc33b31bd62766d0d0c4 to your computer and use it in GitHub Desktop.
random mullvad wireguard server
#!/bin/bash
wg-quick down "$(ifconfig | grep -Po ^mullvad-us[[:digit:]]{3})"
wg-quick up /etc/wireguard/"$(ls /etc/wireguard/ | shuf -n 1)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment