Nordvpn is a VPN and SOCKS proxy provider (among other things). Unfortunately they keep changing the host names of their servers, which means that you have to either use their app which takes care of network connectivity for you or look up the current server name yourself every time it changes. This script:
- looks up a currently valid nordvpn SOCKS5 server name
- runs haproxy with that configuration
Any applications can now connect to localhost:1080 using the SOCKS5 protocol, providing connection credentials.
Prerequisites: haproxy, jq, curl
./update-proxy.sh
docker run -d -t -i -p 1080:1080 --name nordvpn-proxy -e COUNTRY_CODE=30 georgovassilis/nordvpn-proxy:latest
(please look up the latest tag on docker hub)
Please look up the country codes from nordvpn's website at https://nordvpn.com/servers/tools/
Some country codes (July 2020) are: Canada 38 France 74 Switzerland 209
Edit "test-proxy.sh" replacing your credentials in the format "[email protected]:yourpassword"
./test-proxy.sh localhost