vpngate

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2026 License: GPL-3.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

vpngate

attackframeOS fork of davegallant/vpngate. Adds tolerant parsing of the vpngate.net server list (bare " in the operator Message column no longer breaks vpngate list / connect). Homebrew and winget packages below install upstream, not this fork; use Build from source to get the fork.

This is a client for vpngate.net.

vpngate

This client fetches the list of available relay servers provided by vpngate.net, and allows you to filter and connect to a server of your liking.

You can check out your current IP address and region at https://ipinfo.io/json, or run the following:

curl ipinfo.io

Requirements

  • OpenVPN
  • macOS, Linux, or Windows

Install

Check out vpngate-mac for a native macOS Client

You can install vpngate in a few different ways, and it will differ slightly depending on your OS.

Homebrew (macOS and linux)

vpngate can be installed with homebrew (if on macOS, ensure that xcode is installed before installing homebrew by running xcode-select --install).

brew install openvpn davegallant/public/vpngate
Windows

vpngate can be installed with winget, which also installs OpenVPN as a dependency:

winget install davegallant.vpngate --source winget

The --source winget flag skips the Microsoft Store source, which can fail with a certificate error (0x8a15005e).

After installing, open a fresh terminal — the vpngate command won't be found in shells that were already open when the install modified PATH.

Alternatively, install OpenVPN from the official website, then manually download and extract the Windows release from the relevant Github release.

Once the release is extracted, open Command Prompt as Administrator, and run vpngate.exe from the location where it was extracted.

image image
Build from source

Ensure that go is installed.

CGO_ENABLED=0 go install github.com/attackframeOS/vpngate@latest

Ensure that the go bin path is discoverable:

echo 'export PATH=$PATH:$HOME/go/bin' >> ~/.profile
source ~/.profile

Usage

For full usage instructions, see the cli docs.

If on macOS, you may need to add openvpn to your PATH (if you installed it with brew): export PATH=$(brew --prefix openvpn)/sbin:$PATH

Examples

Run in the background, then check on it, tail its log, or disconnect later. status, logs, and disconnect need sudo too, since the daemon's state is only readable by the user that ran connect -d (root):

sudo vpngate connect -d --country Japan
sudo vpngate status
sudo vpngate logs -f
sudo vpngate disconnect

List Japanese servers sorted by lowest ping:

vpngate list --country Japan --sort ping

List high-scoring US servers as JSON:

vpngate list --country us --min-score 1000000 --output json

Connect to a random server with quality filters:

sudo vpngate connect --random --country Japan --max-ping 100 --min-score 500000

Refresh the cached server list before listing:

vpngate list --refresh

Bypass the cache entirely:

vpngate list --no-cache

Inspect or clear the cache:

vpngate cache path
vpngate cache clear

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
vpn
tools
gendocs command
Command gendocs regenerates docs/cli/ from vpngate's actual cobra command tree (Use/Short/Long/flags), via cobra's own doc.GenMarkdownTree — a mechanical flag/usage reference, not a replacement for README.md's narrative sections.
Command gendocs regenerates docs/cli/ from vpngate's actual cobra command tree (Use/Short/Long/flags), via cobra's own doc.GenMarkdownTree — a mechanical flag/usage reference, not a replacement for README.md's narrative sections.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL