Skip to content

OpenVPN VPN Gate Client for Linux, connects you to a random Free VPN in a country of your choice by country code.

Notifications You must be signed in to change notification settings

UA-IT-Army/autovpn2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 

Repository files navigation

autovpn2

Maintenance

VPN Gate Client to Free VPN Access. You can get through firewalls and beyond to browse restricted websites.


Usage:

sudo autovpn2 JP
Expand for usage

How to connect to a VPN Gate server:

Expand for VPN Gate Servers List

vpngate-x86_64.AppImage

Expand for Connectable countries

Execute ./vpngate-x86_64.AppImage to get an updated list of connectable countries.

[?] Fetching vpngate servers
[+] Parsing servers response

            Connectable countries

    JP) Japan                    KR) Korea Republic of    
    TH) Thailand                 TW) Taiwan               
    US) United States            VN) Viet Nam

VPN Gate Servers List

E.g. Korea Republic (KR 🇰🇷)

To start the VPN: E.g. sudo autovpn2 KR

To stop the VPN: Press CTRL + c

The autovpn2 script will ask if you want to try another VPN.

If you want to retry another VPN, then press y, if you want to quit, press n


Expand for ISO 3166 country codes
Country Code
ASCENSION ISLAND ac
AFGHANISTAN af
ALAND ax
ALBANIA al
ALGERIA dz
ANDORRA ad
ANGOLA ao
ANGUILLA ai
ANTARCTICA aq
ANTIGUA AND BARBUDA ag
ARGENTINA REPUBLIC ar
ARMENIA am
ARUBA aw
AUSTRALIA au
AUSTRIA at
AZERBAIJAN az
BAHAMAS bs
BAHRAIN bh
BANGLADESH bd
BARBADOS bb
BELARUS by
BELGIUM be
BELIZE bz
BENIN bj
BERMUDA bm
BHUTAN bt
BOLIVIA bo
BOSNIA AND HERZEGOVINA ba
BOTSWANA bw
BOUVET ISLAND bv
BRAZIL br
BRITISH INDIAN OCEAN TERR io
BRITISH VIRGIN ISLANDS vg
BRUNEI DARUSSALAM bn
BULGARIA bg
BURKINA FASO bf
BURUNDI bi
CAMBODIA kh
CAMEROON cm
CANADA ca
CAPE VERDE cv
CAYMAN ISLANDS ky
CENTRAL AFRICAN REPUBLIC cf
CHAD td
CHILE cl
PEOPLE’S REPUBLIC OF CHINA cn
CHRISTMAS ISLANDS cx
COCOS ISLANDS cc
COLOMBIA co
COMORAS km
CONGO cg
CONGO (DEMOCRATIC REPUBLIC) cd
COOK ISLANDS ck
COSTA RICA cr
COTE D IVOIRE ci
CROATIA hr
CUBA cu
CYPRUS cy
CZECH REPUBLIC cz
DENMARK dk
DJIBOUTI dj
DOMINICA dm
DOMINICAN REPUBLIC do
EAST TIMOR tp
ECUADOR ec
EGYPT eg
EL SALVADOR sv
EQUATORIAL GUINEA gq
ESTONIA ee
ETHIOPIA et
FALKLAND ISLANDS fk
FAROE ISLANDS fo
FIJI fj
FINLAND fi
FRANCE fr
FRANCE METROPOLITAN fx
FRENCH GUIANA gf
FRENCH POLYNESIA pf
FRENCH SOUTHERN TERRITORIES tf
GABON ga
GAMBIA gm
GEORGIA ge
GERMANY de
GHANA gh
GIBRALTER gi
GREECE gr
GREENLAND gl
GRENADA gd
GUADELOUPE gp
GUAM gu
GUATEMALA gt
GUINEA gn
GUINEA-BISSAU gw
GUYANA gy
HAITI ht
HEARD & MCDONALD ISLAND hm
HONDURAS hn
HONG KONG hk
HUNGARY hu
ICELAND is
INDIA in
INDONESIA id
IRAN, ISLAMIC REPUBLIC OF ir
IRAQ iq
IRELAND ie
ISLE OF MAN im
ISRAEL il
ITALY it
JAMAICA jm
JAPAN jp
JORDAN jo
KAZAKHSTAN kz
KENYA ke
KIRIBATI ki
KOREA, DEM. PEOPLES REP OF kp
KOREA, REPUBLIC OF kr
KUWAIT kw
KYRGYZSTAN kg
LAO PEOPLE’S DEM. REPUBLIC la
LATVIA lv
LEBANON lb
LESOTHO ls
LIBERIA lr
LIBYAN ARAB JAMAHIRIYA ly
LIECHTENSTEIN li
LITHUANIA lt
LUXEMBOURG lu
MACAO mo
MACEDONIA mk
MADAGASCAR mg
MALAWI mw
MALAYSIA my
MALDIVES mv
MALI ml
MALTA mt
MARSHALL ISLANDS mh
MARTINIQUE mq
MAURITANIA mr
MAURITIUS mu
MAYOTTE yt
MEXICO mx
MICRONESIA fm
MOLDAVA REPUBLIC OF md
MONACO mc
MONGOLIA mn
MONTENEGRO me
MONTSERRAT ms
MOROCCO ma
MOZAMBIQUE mz
MYANMAR mm
NAMIBIA na
NAURU nr
NEPAL np
NETHERLANDS ANTILLES an
NETHERLANDS, THE nl
NEW CALEDONIA nc
NEW ZEALAND nz
NICARAGUA ni
NIGER ne
NIGERIA ng
NIUE nu
NORFOLK ISLAND nf
NORTHERN MARIANA ISLANDS mp
NORWAY no
OMAN om
PAKISTAN pk
PALAU pw
PALESTINE ps
PANAMA pa
PAPUA NEW GUINEA pg
PARAGUAY py
PERU pe
PHILIPPINES (REPUBLIC OF THE) ph
PITCAIRN pn
POLAND pl
PORTUGAL pt
PUERTO RICO pr
QATAR qa
REUNION re
ROMANIA ro
RUSSIAN FEDERATION ru
RWANDA rw
SAMOA ws
SAN MARINO sm
SAO TOME/PRINCIPE st
SAUDI ARABIA sa
SCOTLAND uk
SENEGAL sn
SERBIA rs
SEYCHELLES sc
SIERRA LEONE sl
SINGAPORE sg
SLOVAKIA sk
SLOVENIA si
SOLOMON ISLANDS sb
SOMALIA so
SOMOA,GILBERT,ELLICE ISLANDS as
SOUTH AFRICA za
SOUTH GEORGIA, SOUTH SANDWICH ISLANDS gs
SOVIET UNION su
SPAIN es
SRI LANKA lk
ST. HELENA sh
ST. KITTS AND NEVIS kn
ST. LUCIA lc
ST. PIERRE AND MIQUELON pm
ST. VINCENT & THE GRENADINES vc
SUDAN sd
SURINAME sr
SVALBARD AND JAN MAYEN sj
SWAZILAND sz
SWEDEN se
SWITZERLAND ch
SYRIAN ARAB REPUBLIC sy
TAIWAN tw
TAJIKISTAN tj
TANZANIA, UNITED REPUBLIC OF tz
THAILAND th
TOGO tg
TOKELAU tk
TONGA to
TRINIDAD AND TOBAGO tt
TUNISIA tn
TURKEY tr
TURKMENISTAN tm
TURKS AND CALCOS ISLANDS tc
TUVALU tv
UGANDA ug
UKRAINE ua
UNITED ARAB EMIRATES ae
UNITED KINGDOM (no new registrations) gb
UNITED KINGDOM uk
UNITED STATES us
UNITED STATES MINOR OUTL.IS. um
URUGUAY uy
UZBEKISTAN uz
VANUATU vu
VATICAN CITY STATE va
VENEZUELA ve
VIET NAM vn
VIRGIN ISLANDS (USA) vi
WALLIS AND FUTUNA ISLANDS wf
WESTERN SAHARA eh
YEMEN ye
ZAMBIA zm
ZIMBABWE zw

Expand for screenshot, demo and test

▹ Check My IPx

▹ Anonymity check

▹ What is my proxy

▹ DNS leak test

🔳 | Screenshot | Demo |


Dependencies:

apt install openvpn

Installation:

sudo mv autovpn2.py /usr/local/bin/autovpn2

Frequently Asked Questions:

Expand for Frequently Asked Questions

FAQ:

Why do I sometimes get [autovpn2] rewriting config file stuck in a loop when I use country code JP?

The parser got a bad or corrupt config file for said country from the servers CSV List.

Retry that country code later or just try another country code (KR 🇰🇷).

You can also use the vpngate-x86_64.AppImage utility to fetch the list of connectable countries.

The default USA (US 🇺🇸) servers seems to be slow to me, which country is the fastest?

In "my" seat-of-the-pants testing, Japan (JP 🇯🇵) or Korea Republic (KR 🇰🇷) servers seem to be "faster".

Can I change the default country code?

Yes, you can change the default ISO 3166-2 standard code in the script.

Change Line 21 and Line 45 to the country code (Uppercase) of your choice.

How can I get a list of Connetable countries without goinng to vpngate.net website.

You can use the vpngate-x86_64.AppImage utility to go fetch the connectable list of countries.

How to fix my DNS leak?

Pick one of these free and public DNS Servers.

This is a technical question, WHY Python 2.7???! It's EOL dude! 😕

Haha, The truth is, I didn't want to fight (choosing my battles;) with Python3's bytes to string conversions for this one-off script.

Personally, I compile my legacy Python 2.7 standalone scripts to a Linux ELF 64-bit LSB executable using Nuitka and appimagekit.

The created binary executes independent of a Python installation.

A precompiled x86_64 autovpn2 binary can be found under releases.

What's with the name and the "2"?

I wrote this as a drop in replacement for the original autovpn written in Go, that's now in Github's Digital Haven.

The "2" is to not conflict with the original script if installed on said system.

- Note: autovpn2 defaults to the US servers. The Japan or Korea (JP, KR) servers are preferred.

Legal Disclaimer:

We are not affiliated with VPN Gate in any way. We are not advocating the use of their or any Free VPN service.

About

OpenVPN VPN Gate Client for Linux, connects you to a random Free VPN in a country of your choice by country code.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%