haugene / vpn-configs-contrib

A collection of configs for various VPN providers
GNU General Public License v3.0
172 stars 739 forks source link

fix nordvpn ping issue #260

Closed marcelrv closed 4 months ago

marcelrv commented 6 months ago

Breaking change

Proposed change

Fixing #240  by re-using the existing environmental variable in this script as well
It uses the HEALTH_CHECK_HOST environment variable if set instead of the fixed to the nordvpn server

Type of change

Additional information

Checklist

If user exposed functionality or configuration variables are added/changed:

pkishino commented 6 months ago

I’m ok with this, I’ll give it a few days for more comments

GinoBadouri commented 4 months ago

Please merge this, the CDN is unavaileble here: https://downloads.nordcdn.com/configs/files I've also reported it here: https://github.com/haugene/docker-transmission-openvpn/issues/2806

marcelrv commented 4 months ago

Thanks

oconnoob commented 4 months ago

It appears using the edge tag in compose as mentioned in the dockerhub readme doesn't resolve this issue, presumably because the VPN config repo is separate from the main project repo.

Is there any way to incorporate this patch currently, or is it best to wait for a new release on dockerhub? Thanks!

leewc commented 4 months ago

Switching to edge now works, and thanks to: https://github.com/haugene/vpn-configs-contrib/issues/258 as well.

The issue I had was what @GinoBadouri mentioned:

the CDN is unavaileble here: https://downloads.nordcdn.com/configs/files

Manually opening https://downloads.nordcdn.com/configs/files on the browser shows a gateway error too.

It took awhile because the logs look fine, but I had to inspect the container with docker inspect <container-id> or docker inspect transmission (if you use compose and have it named as transmission.

Once i see "DNS resolution failed", I just needed to move to edge.

   transmission:
-    image: haugene/transmission-openvpn
+    image: haugene/transmission-openvpn:edge
     container_name: transmission
     restart: unless-stopped
     environment:
@@ -140,6 +140,7 @@ services:
       - NORDVPN_COUNTRY=US
       - NORDVPN_CATEGORY=the_americas
       - NORDVPN_PROTOCOL=udp
+      - HEALTH_CHECK_HOST=github.com
       - OPENVPN_USERNAME=**None**
       - OPENVPN_PASSWORD=**None**
       - OPENVPN_OPTS=--inactive 3600 --ping 10 --ping-exit 60 # Restart if VPN goes down