vpngate

package module
v0.0.0-...-f4056ca Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2014 License: Apache-2.0 Imports: 10 Imported by: 0

README

vpngate tools

Build Status Godoc

go get github.com/StalkR/vpngate

Bugs, comments, questions: create a new issue or email vpngate@stalkr.net.

Documentation

Overview

Package vpngate implements parsing of http://www.vpngate.net list of VPN servers and generation of OpenVPN config.

Index

Constants

View Source
const CSV_URL = "http://www.vpngate.net/api/iphone/"

CSV_URL is the URL of all vpngate servers in CSV format.

Variables

This section is empty.

Functions

This section is empty.

Types

type VPN

type VPN struct {
	Hostname     string
	Score        int
	Ping         time.Duration
	Speed        int    // bps
	Country      string // e.g. Japan
	CountryShort string // e.g. JP
	Sessions     int    // Currently active
	Uptime       time.Duration
	Users        int // Total users
	Traffic      int // Total traffic
	LogType      string
	Operator     string
	Message      string

	// Extracted from OpenVPN config.
	Proto  string
	IP     string
	Port   int
	Cipher string
	Auth   string
	CA     string
	Cert   string
	Key    string
}

A VPN represents a vpngate server.

func Get

func Get(c *http.Client) ([]*VPN, error)

Get obtains obtains the list of all vpngate servers.

func (*VPN) OpenVPN

func (v *VPN) OpenVPN() string

OpenVPN config of this VPN.

Directories

Path Synopsis
Binary chooser provides a web interface to choose a VPN from the list of http://www.vpngate.net, create the OpenVPN config and restart OpenVPN daemon.
Binary chooser provides a web interface to choose a VPN from the list of http://www.vpngate.net, create the OpenVPN config and restart OpenVPN daemon.
Binary list shows VPNs of http://www.vpngate.net with their OpenVPN config.
Binary list shows VPNs of http://www.vpngate.net with their OpenVPN config.

Jump to

Keyboard shortcuts

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