How to install VPNGate on Ubuntu 20.04

VPNGate  is an online service as an academic research at Graduate School of University of Tsukuba, Japan.As Academic Experiment Project ,The purpose of this research is to expand the knowledge of “Global Distributed Public VPN Relay Servers”.

The  project  offers free VPN servers that are ran by volunteers who use SoftEther1. It was designed with the Great Firewall of China in Mind and is sponsored by the University of Tsukuba,

It‘s important to note that free VPNs are insecure, and they shouldn’t be used for sensitive or high important stuff!

VPNGate and softether  are open source and work on windows, linux, macos ,and android.

Install Indicator: is optional.

sudo apt-get install gir1.2-appindicator3-0.1 gir1.2-notify-0.7 python-gobject


  • openvpn: $ sudo apt-get install openvpn
  • python-requests: $ sudo apt-get install python-requests
  • python-urwid 1.3+: $ sudo apt-get install python-urwid , for tui version (terminal user interface)
  • wmctrl: $ sudo apt-get install wmctrl, for Indicator of tui version, use for focusing window from indicator.

0. Pre-installation

  • If your network is behind a proxy
  $ export http_proxy="http://your_proxy:your_port"
  $ export https_proxy="http://your_proxy:your_port"
  • If you has just installed your os, please update your os for it to fetch packages list and know where to download other packages later.
$ sudo apt-get update && sudo apt-get upgrade

1. Installation:

Using git:

$ sudo apt-get install git
$ git clone

If your network is behind a proxy:

$ sudo -E apt-get install git
$ git clone

You can also download the zip file It contains the “vpngate-with-proxy” folder. Extract it into anywhere you want eg: $HOME.


Within this folder, there should be a file This file allow you to run extra commands to fit your need. You have to manually edit this file and don’t change the file name. Commands are divided into 2 groups:

  • up: execute after vpn tunnel is established successfully.
  • down: execute after vpn tunnel is broken/terminated.

2. First run:

If you have configured system wide proxy or proxy in firefox, it’d better to turn it off. After vpn tunnel is established, the programs that use system wide proxy may failed to connect to the internet using your proxy.

Launch vpngate-with-proxy by

$ cd vpngate-with-proxy
$ ./run [arg]
    • arg could be either none or tui or cli.
    • has better UI, colorful and easier to use. Run when arg is none or tui
    • is normal terminal application, lightweight and is aim to run on server (RaspberryPi ?). Run when arg is cli

    Then the program will first setup a configuration file config.ini by asking you for proxy if needed to connect to the Internet. After that it will show the default configuration of the program. Change any parameter to suit you and press Enter to continue. Next time launching this program, you won’t see this configuration again. Either modify config.ini or check 5. Some notes

    If no thing goes wrong, the vpn server’s list will show up.

Leave a Reply