Commit Graph

19 Commits

Author SHA1 Message Date
Kristian Haugene
5a511d6d9e Restructure start script, extract provider specific scripts and add support for fetching configs from URL 2020-08-23 19:45:05 +02:00
Koen van der Linden
f380be82ca Fix for NORDVPN default and specific vpn config download 2019-10-26 11:46:09 +02:00
Kristian Haugene
c70b2dca27 Yet another NordVPN script update #932 2019-10-26 00:04:58 +02:00
Kristian Haugene
7fd156b6e1 Merge pull request #933 from koenvanderlinden/nordvpn_download_config_fix
Fix for NordVPN as UDP and TCP CDN changed
2019-10-25 10:09:08 +02:00
Koen van der Linden
eb0898e413 code cleanup 2019-10-24 22:11:40 +02:00
Koen van der Linden
26f2d39158 Fix for NordVPN as UDP and TCP cdn changed 2019-10-24 21:54:00 +02:00
namekal
567d37066a [NORDVPN] Fix setting download URL
I do not provide the `NORDVPN_PROTOCOL` variable in my container.

`NORDVPN_PROTOCOL` is defaulted to `"udp"` in `/openvpn/start.sh`

L96 here checks and provides the final portion of the .ovpn download URL which includes `.udp1194` (or `.tcp443` if `NORDVPN_PROTOCOL` was set to "tcp")

The end result in these checks and definitions causes the download URL to include an extra `.udp` in the address.
In my logs, this is the url it provides to `curl` from which is invalid:
`https://downloads.nordcdn.com/configs/files/ovpn_legacy/servers/us4436.nordvpn.com.udp.udp1194.ovpn`

It should end up being this instead:
`https://downloads.nordcdn.com/configs/files/ovpn_legacy/servers/us4436.nordvpn.com.udp1194.ovpn`

Log below:
```
Using OpenVPN provider: NORDVPN
2019-09-21 22:07:03 Checking curl installation
2019-09-21 22:07:03 Removing existing configs
2019-09-21 22:07:03 Selecting the best server...
2019-09-21 22:07:03 Searching for group: legacy_p2p
2019-09-21 22:07:03 Searching for technology: openvpn_udp
2019-09-21 22:07:03 Best server : us4436.nordvpn.com
2019-09-21 22:07:03 Downloading config: default.ovpn
2019-09-21 22:07:03 Downloading from: https://downloads.nordcdn.com/configs/files/ovpn_legacy/servers/us4436.nordvpn.com.udp.udp1194.ovpn
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current   Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   162  100   162    0     0    809      0 --:--:-- --:--:-- --:--:--   810
2019-09-21 22:07:03 Checking line endings
2019-09-21 22:07:03 Updating configs for docker-transmission-openvpn
Starting OpenVPN using config default.ovpn
Setting OPENVPN credentials...
adding route to local network 0.0.0.0 via 172.18.0.1 dev eth0
Options error: Unrecognized option or missing or extra parameter(s) in /etc/openvpn/nordvpn/default.ovpn:1: html (2.4.7)
Use --help for more information.
```
2019-09-21 20:09:06 -04:00
Teran Peterson
416c963de2 Fixed nordvpn config download function
See issue #867 for a more in depth explanation
2019-07-28 01:31:59 -06:00
Tom Humphrey
43da3ea5f6 Fix for automatic setting of NORDVPN_PROTOCOL
NORDVPN_PROTOCOL wasn't being set correctly when an OPENVPN_CONFIG was provided. Now fixed.
2019-03-27 13:09:43 +00:00
Tom Humphrey
ca99395250 NordVPN On Demand
After resolving an issue with the default.ovpn symlink, it was bugging me that each time the container ran it would download all of the NordVPN configs. After a bit of research I found a url where I could download just one ovpn file. A bit of rework and now only downloads the applicable config based off of NordVPNs api. No more 4000+ configs.

User can configure this using either NORDVPN_COUNTRY to connect to the best server in that country or a specific config using the OPENVPN_CONFIG parameter. If neither are specified config will be selected based off of NordVPN api and if both are specified it will connect to OPENVPN_CONFIG server first using the api to decide on a backup 'default.ovpn' config in case it fails.

In my rewriting of this I also realised there was no need for the updateConfigs.sh script anymore, but to keep everything in keeping I replaced the contents of the updateConfigs.sh script with the NordVPN_selector one and removed the latter.
2019-03-26 17:02:11 +00:00
Tom Humphrey
aaab2f0155 Fixed issue with default.ovpn stopping container from running
container was being stopped due to sed not liking default.ovpn symlink. Updated so that sed skipped this symlink. container was then also being stopped due to updateConfigs.sh script erroring if default.ovpn existed when trying to create symlink. Added option 'f' so that the symlink would be recreated even if existed
2019-03-26 12:18:29 +00:00
Tom Humphrey
04b117c521 Update NordVPN.sh
Added NordVPN Variables to docker file

Update start.sh

Update NordVPN.sh

Update NordVPN configs on run

NordVPN was missing server files. Have updated to run the nordvpn updateConfigs.sh script on start

Update NordVPN_Server_Selector.sh

Update start.sh

Moved Selector script to NordVPN directory

Update NordVPN_Server_Selector.sh

Update NordVPN_Server_Selector.sh

Update updateConfigs.sh

Update updateConfigs.sh

Added auto-update of NordVPN

container will auto-update NordVPN files on start. This increases the start up time by a bit. But ensures that all configs are present for the auto-selector script

Create default.ovpn

Update default.ovpn
2019-03-09 21:48:47 +00:00
Kristian Haugene
07005fe442 Updated config script from #644 2018-12-16 16:34:56 +01:00
Kristian Haugene
14695cf975 Updating NordVPN configs #633 2018-11-09 21:24:36 +01:00
Pynx Echaup
baccca03e2 made script executable
chmod u+x updateConfigs.sh
2018-07-19 15:51:25 +02:00
Pynx Echaup
c97b7d4a38 Unnecessary lines of code removed
Removed some useless code, that was commented anyway
2018-07-19 15:39:49 +02:00
Pynx Echaup
b2343bfa0b Create updateConfigs.sh for Nordvpn
Added updateConfigs.sh file in the nordvpn directory, so the .ovpn files will be automatically updated regularly.
2018-07-19 15:26:50 +02:00
Levi Figueira
3eef01890b Updated NordVPN OpenVPN config files 2017-11-18 23:53:34 -06:00
David Stephens
873c774cf9 Add NordVPN update script, update NordVPN configs 2017-07-13 00:41:56 +01:00