-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` | ||
|