* Fixed typo in line 95
`form` to `from`
* supported setting DISABLE_PORT_UPDATER to false
previously DISABLE_PORT_UPDATER had to not exist..now it can also be set to false
* Fix minor typos (#2074)
* Fixed missing $ from UFW variable use
There were a number of variable references missing $
* Fixed some more variables missing $
* Removed outdated typeset
this fixes and closes#2095
* Fix building-blocks links (#2126)
* Update bug_report.yaml
* Update start.sh
Co-authored-by: Kobi <kobirosenstein@gmail.com>
Co-authored-by: Kristian Haugene <haugene@users.noreply.github.com>
Co-authored-by: Patrick Kishino <patrick.a.kishino@gmail.com>
Co-authored-by: Sean Kelly <xconverge@users.noreply.github.com>
Co-authored-by: Chris Buckley <chris@cmbuckley.co.uk>
* Fixed typo in line 95
`form` to `from`
* supported setting DISABLE_PORT_UPDATER to false
previously DISABLE_PORT_UPDATER had to not exist..now it can also be set to false
* Fix minor typos (#2074)
* Fixed missing $ from UFW variable use
There were a number of variable references missing $
* Fixed some more variables missing $
* Removed outdated typeset
this fixes and closes#2095
* add capability for routes-post-start.sh
* update docs
* amended position
placed entry where it should be in logical order when thinking about container lifecycle
Co-authored-by: Kobi <kobirosenstein@gmail.com>
Co-authored-by: Kristian Haugene <haugene@users.noreply.github.com>
Co-authored-by: Patrick Kishino <patrick.a.kishino@gmail.com>
Co-authored-by: Sean Kelly <xconverge@users.noreply.github.com>
* DEBUG: print all lines before execution
if var DEBUG is set to anything other than false, each bash script will be run with a set -x. This would ease debugging
* DEBUG: centralize commands in utils.sh
* Add openvpn-post-config hook
Adds a script check for /scripts/openvpn-post-config.sh, designed so you can make any custom changes to the selected openvpn config file after everything else is ready.
* Update config documentation
Added openvpn-post-config to the documentation. Not sure if openvpn-pre-start should be edited to say before the configuration is processed.
* Fix typo
Serves me right for making changes before bed.
VYPRVPN sets $PWD to a deleted directory, which causes a cascade of
issues for the rest of `start.sh`.
This saves the current directory before sourcing `configure-openvpn.sh`
scripts, making sure such an issue cannot happen for any VPN.
A proper fix would be to avoid sourcing the script in the first place.
* Add dns resolution test to healthcheck script
* Add dns resolution test to start script
Co-authored-by: Patrick Kishino <patrick.a.kishino@gmail.com>
VPNBOOK password is provided as a picture/image. The http://api.ocr.space/parse/image service erroneously sees a space between certain character combinations. Since passwords generally do not contain spaces, this extra awk expression removes the space.
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.