Simple console client for vpngate (vpngate.net free VPN)
-
wget
-
openvpn
-
dialog
-
Getting a list of servers
-
Sorting the server list
-
Adding additional options to the VPN config
-
Establishing a connection to the server
The script is configured by editing the script variables.
LISTADDR = "http://www.vpngate.net/api/iphone/" - server list address
LISTFILE = "servers" - a file with a list of servers on the local machine
DATADIR = "./ data" - working directory
DIALOG = "dialog" - a command that calls the dialog utility.
OPENVPN = "openvpn" is the command that calls the openvpn utility.
VPN_LOGIN = "vpn" - login.
VPN_PASS = "vpn" - password
AUTH_FILE = "vpngate.auth" - authorization file
AUTH_DIR = "$ DATADIR" - directory with authorization file.
LOG_FILE = "" - path to the log file
LOG_TTYN = "3" - send log to the terminal whose number is specified in the variable
RMLOG = 0 - delete log upon exiting the program (0 - do not delete, 1 - delete)
LOG_APPEND = 0 - append log (0 - do not append 1 - append)
-
Install package (Slackware) or download main script, routing configuration script and VPN options
-
If necessary, change the values of the script variables
-
Change the routing script according to your settings
-
Run the script (vpngate)
-
Update the list of VPN servers (Update VPN List main menu item)
-
If necessary, sort the list of servers and adjust the list of additional VPN options.
-
Select the menu item Connect VPN ...
-
Select the required server and click OK
Main menu
Loading the server list
Preparing the server list
Server list sorting option
Sort order
VPN options
Choosing a VPN Server
VPN Server Information
Server connection
Disconnection
About window
Connection test