Skip to content

Instantly share code, notes, and snippets.

View msfjarvis's full-sized avatar
🎵
NP: Daisy (nihmune, Lucy Pyre) (1:27/2:29)

Harsh Shandilya msfjarvis

🎵
NP: Daisy (nihmune, Lucy Pyre) (1:27/2:29)
View GitHub Profile
@msfjarvis
msfjarvis / mullvad-vpn-speedtest-suite.md
Created January 9, 2019 14:28
Collection of bash hackery to determine which Mullvad WireGuard server is the lowest latency from your location
  • Grab all your wireguard configs from Mullvad and dump them in a folder. For this test, this folder is ~/wireguard/.
  • Add the following function to generate a list of all servers you have configs for
lswg ()  { 
    ls ~/wireguard/ | cut -d '-' -f 2 | sed 's/\.conf//'
}
  • Ping each server 10 times to determine latency.
lswg | xargs -I {} ping -c 10 {}-wireguard.mullvad.net | tee mullvadwgstats