Skip to content

Commit

Permalink
README.md updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryllaz committed Apr 9, 2022
1 parent 3dcbe04 commit 3ee0cab
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,36 @@
# autovpn3
AutoVPN3 config file, prepared for using in Dockerfiles with ENV variables
Autovpn3 script ready for pleasant using.

## Installation

1. `git clone https://github.com/Ryllaz/autovpn3.git`
2. `cd autovpn3`
3. `chmod +x autovpn3`
4. (optional) `mv autovpn3 /usr/local/bin/autovpn3`. Then you will be able to run this script globally: `sudo autovpn3`.

## Usage

1. `cd /path/to/autovpn3`
2. `sudo ./autovpn3`

You can get help information by:
`sudo ./autovpn3 --help`

## Config

You can override next ENV variables:

```bash
country='US' # empty for any or JP, KR, US, TH, etc.
useSavedVPNlist=0 # set to 1 if you don't want to download VPN list every time you restart this script, otherwise set to 0
useFirstServer=0 # set the value to 0 to choose a random VPN server, otherwise set to 1 (maybe the first one has higher score)
vpnList='/tmp/vpns.tmp'
proxy=0 # replace with 1 if you want to connect to VPN server through a proxy
proxyIP=''
proxyPort=8080
proxyType='socks' # socks or http
```

Also you can set any variable above as script parameter. Like:
`sudo ./autovpn3 --country=US --proxyPort=8080`

0 comments on commit 3ee0cab

Please sign in to comment.