qdm12 / gluetun

VPN client in a thin Docker container for multiple VPN providers, written in Go, and using OpenVPN or Wireguard, DNS over TLS, with a few proxy servers built-in.
https://hub.docker.com/r/qmcgaw/gluetun
MIT License
6.74k stars 333 forks source link

Feature request: Add support for VyprVPN in a GIGANEWS Account #872

Closed Draxter closed 10 months ago

Draxter commented 2 years ago

What's the feature 🧐

The company that owns VyprVPN also sells it via their GIGANEWS website bundled together with a Usenet service.

Currently Gluetun supports using VyprVPN only if it was purchased on vyprvpn.com. It would be useful to also enable its use for users who purchased it on giganews.com.

Extra information and references

Region names appear to be the same, but the hostnames have eu1.vpn.giganews.com format instead of eu1.vyprvpn.com

qdm12 commented 2 years ago

Hey there, thanks for proposing this.

  1. Did you try with the current VyprVPN gluetun setup (see the wiki), what error do you get?
  2. Try adding -e VPN_ENDPOINT_IP=128.90.96.17 to see if it works? (IP found with nslookup eu1.vpn.giganews.com)
  3. Is it the only difference? Did you compare both OpenVPN configuration files from vyprvpn.com and giganews.com? If you don't have a vyprvpn openvpn config, please share a giganews config file (and remove your username+password)
Draxter commented 2 years ago

Hi. Here is the info you requested:

  1. Yes, I ran the following command: docker run --cap-add NET_ADMIN -e VPN_SERVICE_PROVIDER=vyprvpn -e OPENVPN_USER=someusername -e OPENVPN_PASSWORD=somepassword qmcgaw/gluetun:latest

Part of the log output:

2022/03/07 10:49:03 INFO openvpn: library versions: OpenSSL 1.1.1l  24 Aug 2021, LZO 2.10
2022/03/07 10:49:03 INFO openvpn: TCP/UDP: Preserving recently used remote address: [AF_INET]209.99.93.18:443
2022/03/07 10:49:03 INFO openvpn: UDP link local: (not bound)
2022/03/07 10:49:03 INFO openvpn: UDP link remote: [AF_INET]209.99.93.18:443
2022/03/07 10:49:06 INFO openvpn: [us6.vyprvpn.com] Peer Connection Initiated with [AF_INET]209.99.93.18:443
2022/03/07 10:49:07 ERROR openvpn: AUTH: Received control message: AUTH_FAILED

Your credentials might be wrong 🤨
  1. I added the environment viable as follows: docker run --cap-add NET_ADMIN -e VPN_SERVICE_PROVIDER=vyprvpn -e OPENVPN_USER=someusername -e OPENVPN_PASSWORD=somepassword -e VPN_ENDPOINT_IP=128.90.96.17 qmcgaw/gluetun:latest

Part of the log output:

2022/03/07 10:42:59 INFO openvpn: TCP/UDP: Preserving recently used remote address: [AF_INET]128.90.96.17:443
2022/03/07 10:42:59 INFO openvpn: UDP link local: (not bound)
2022/03/07 10:42:59 INFO openvpn: UDP link remote: [AF_INET]128.90.96.17:443
2022/03/07 10:43:00 INFO openvpn: [eu1.vpn.giganews.com] Peer Connection Initiated with [AF_INET]128.90.96.17:443
2022/03/07 10:43:01 INFO openvpn: TUN/TAP device tun0 opened
2022/03/07 10:43:01 INFO openvpn: /sbin/ip link set dev tun0 up mtu 1500
2022/03/07 10:43:01 INFO openvpn: /sbin/ip link set dev tun0 up
2022/03/07 10:43:01 INFO openvpn: /sbin/ip addr add dev tun0 10.2.0.21/24
2022/03/07 10:43:01 INFO openvpn: UID set to nonrootuser
2022/03/07 10:43:01 INFO openvpn: Initialization Sequence Completed
2022/03/07 10:43:01 INFO dns over tls: downloading DNS over TLS cryptographic files
2022/03/07 10:43:10 INFO dns over tls: downloading hostnames and IP block lists
2022/03/07 10:43:15 INFO dns over tls: init module 0: validator
2022/03/07 10:43:15 INFO dns over tls: init module 1: iterator
2022/03/07 10:43:15 INFO dns over tls: start of service (unbound 1.13.2).
2022/03/07 10:43:15 INFO dns over tls: generate keytag query _ta-4a5c-4f66. NULL IN
2022/03/07 10:43:15 INFO dns over tls: generate keytag query _ta-4a5c-4f66. NULL IN
2022/03/07 10:43:16 INFO dns over tls: ready
2022/03/07 10:43:16 INFO vpn: You are running on the bleeding edge of latest!
2022/03/07 10:43:16 INFO ip getter: Public IP address is 128.90.138.60 (Netherlands, North Holland, Amsterdam)

So, it works nicely.

  1. Unfortunately, I only have the giganews subscription that gives me vyprvpn, instead of the direct vyprvpn one, so i can't compare the two. However, I found their .ovpn config files, which can be downloaded here
mossyblog commented 1 year ago
  1. Try adding -e VPN_ENDPOINT_IP=128.90.96.17 to see if it works? (IP found with nslookup eu1.vpn.giganews.com)

I had the same issue, once i put in this endpoint it fixed the issue and now works. Legend.