Coder Social home page Coder Social logo

mullvad-ping's Introduction

Mullvad Ping

Gets the list of Mullvad servers with the best latency according to ping.

Running

  1. First install Deno, an open-source runtime for TypeScript and JavaScript.

  2. Run the following command

deno run --allow-net=api.mullvad.net,deno.land --allow-run=ping https://raw.githubusercontent.com/grant0417/mullvad-ping/v0.8.0/script.ts
  1. Alternatively, you can download a compiled release from the releases page.

Note: The Windows version of ping is somewhat more limited than that of Linux or Mac so the times are less precise and the script will take ~5x longer.

CLI Usage

Usage: mullvad-ping [OPTIONS]

Options:
  -c, --country <CODE>      the country you want to query (eg. us, gb, de)
  -l, --list                lists the available servers
      --list-countries      lists the available countries
      --list-providers      lists the available providers
  -t, --type <TYPE>         the type of server to query (openvpn, bridge, wireguard, all)
  -C, --count <COUNT>       the number of pings to the server (default 5)
  -n, --top <TOPN>          the number of top servers to show, (0=all, default 5)
  -s, --port-speed <SPEED>  only show servers with at least n Gbps port speed
  -p, --provider <NAME>     only show servers from the given provider
      --owner <OWNER>       only show servers by owner (mullvad, rented, all)
      --run-mode <TYPE>     only show servers running from (ram, disk, all)
      --include-inactive    include inactive servers
  -j, --json                output the results in JSON format
  -h, --help                display this help and exit
  -V, --version             display version information and exit

mullvad-ping's People

Contributors

cristopheridlc avatar exolocity avatar grant0417 avatar ipha avatar knugihk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mullvad-ping's Issues

Debian 12

How do you install this on Debian 12 ?

Thanks!

Force lowercase for countrycode & potentially other fields

Took quite a bit of time to figure out why the tool was not working when specifying country.
Do not want case sensitivity.

Output when uppercase country code.

PS C:\> .\mullvad-ping-windows.exe --country US --type wireguard --port-speed 9 --owned false --top 0 --provider DataPacket
Fetching currently avaiable relays...
No servers found

Expecting same result as lowercase.

PS C:\> .\mullvad-ping-windows.exe --country us --type wireguard --port-speed 9 --owned false --top 0 --provider DataPacket
Fetching currently available relays...
Pinged us-atl-wg-001.mullvad.net, avg 0ms
Pinged us-atl-wg-002.mullvad.net, avg 0ms
Pinged us-bos-wg-101.mullvad.net, avg 0ms
Pinged us-bos-wg-102.mullvad.net, avg 0ms
Pinged us-chi-wg-201.mullvad.net, avg 0ms
Pinged us-chi-wg-202.mullvad.net, avg 0ms
Pinged us-chi-wg-203.mullvad.net, avg 0ms

etc.

network_port_speed Selector

Hi,

Could you add network_port_speed as an arg to select servers using your script.
For example, if we only need 10Gigabit or 1Gigabit> server.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.