mirror of
https://github.com/davegallant/vpngate.git
synced 2025-08-06 00:33:40 +00:00
61f577934623aaeb2f5702cb038cf57a1203612a
vpngate
This is a client for vpngate.net.
This client fetches the list of available relay servers provided by vpngate.net.
You can check out your current IP address and region at https://nordvpn.com/what-is-my-ip/, or simply run the following command in a terminal:
$ curl ipinfo.io
Requirements
- openvpn
- macOS or Linux
Install from source
Ensure that go is installed.
$ CGO_ENABLED=0 go get github.com/davegallant/vpngate
Ensure that the go bin path is discoverable:
$ echo 'export PATH=$PATH:$HOME/go/bin' >> ~/.profile
$ source ~/.profile
MacOS
OpenVPN can be installed with homebrew.
$ brew install openvpn
Usage
List available servers
$ vpngate list
Connect to a server
On macOS, openvpn
may not be within your PATH. To fix this, run:
$ export PATH=$(brew --prefix openvpn)/sbin:$PATH
The above command can also be added to a bash/zsh profile for future use.
Because openvpn creates a network interface, run the connect command with sudo
or a user with escalated privileges.
$ sudo vpngate connect
Random
If the country doesn't matter, a random server can be selected:
$ sudo vpngate connect --random
Notes
- I do not maintain any of the servers on vpngate.net (connect to these servers at your own discretion)
- Many of the listed servers claim to have a logging policy of 2 weeks
Todo
- Allow for servers to be cycled periodically (--cycle)
Languages
Go
90.1%
Nix
7.9%
Makefile
2%