Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gluetun - Windscribe - private key is not valid: wgtypes: failed to parse base64-encoded key #42

Open
reddeviluk opened this issue Dec 28, 2023 · 1 comment

Comments

@reddeviluk
Copy link

Hi All, I'm totally new to all of this so please keep that in mind. I've spent the day following Jim's video in relation to setting up a stack which will filter everything through a VPN. I'm almost there but failed at the VPN hurdle on my QNAP NAS using their version of Docker. I've got a paid Windscribe VPN subscription, have got my wireguard credentials and have read a dozen sites or more to try and adapt the compose file to fix this, but I'm getting the error:

2023-12-28T16:00:10Z INFO [routing] default route found: interface eth0, gateway 172.29.0.1, assigned IP 172.29.0.2 and family v4
2023-12-28T16:00:10Z INFO [routing] local ethernet link found: eth0
2023-12-28T16:00:10Z INFO [routing] local ipnet found: 172.29.0.0/22
2023-12-28T16:00:10Z INFO [firewall] enabling...
2023-12-28T16:00:10Z INFO [firewall] enabled successfully
2023-12-28T16:00:12Z INFO [storage] merging by most recent 17685 hardcoded servers and 17685 servers read from /gluetun/servers.json
2023-12-28T16:00:12Z ERROR VPN settings: Wireguard settings: private key is not valid: wgtypes: failed to parse base64-encoded key: illegal base64 data at input byte 0
2023-12-28T16:00:12Z INFO Shutdown successful

My compose file reads like this:

environment:
  - VPN_SERVICE_PROVIDER=windscribe
  - VPN_TYPE=wireguard
  - WIREGUARD_PRIVATE_KEY=redacted 44 character private key=
  - WIREGUARD_ADDRESSES=redacted/32
  - WIREGUARD_PRESHARED_KEY=redacted 44 character key=

- SERVER_REGIONS=United Kingdom

- SERVER_CITIES=Edinburgh

  - HTTPPROXY=on
  - SERVER_HOSTNAMES=edi-369-wg.whiskergalaxy.com:443
  # Timezone for accurate log times
  - TZ=Europe/London
  # Server list updater
  # See https://github.com/qdm12/gluetun-wiki/blob/main/setup/servers.md#update-the-vpn-servers-list
  - UPDATER_PERIOD=24h

I'm throwing myself open to anyone who can help please. I've tried 3 private keys obtained through Windscribe so far and always the same outcome, everything looks fine, but I'm missing something.

Many thanks

@reddeviluk
Copy link
Author

Further to this....with nothing else to try I restarted with a new compose file using the providede template and decided to try OpenVPN..

version: "3"
services:
gluetun:
image: qmcgaw/gluetun
container_name: gluetun
# line above must be uncommented to allow external containers to connect.
# See https://github.com/qdm12/gluetun-wiki/blob/main/setup/connect-a-container-to-gluetun.md#external-container-to-gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
ports:
- 6881:6881
- 6881:6881/udp
- 8085:8085 # qbittorrent
- 9117:9117 # Jackett
- 8989:8989 # Sonarr
- 9696:9696 # Prowlarr
volumes:
- /share/CACHEDEV1_DATA/Container/container-station-data/arr-stack:/gluetun
environment:
# See https://github.com/qdm12/gluetun-wiki/tree/main/setup#setup
- VPN_SERVICE_PROVIDER=windscribe
- VPN_TYPE=openvpn
# OpenVPN:
# - OPENVPN_USER=redacted
# - OPENVPN_PASSWORD=redacted
# Wireguard:
- WIREGUARD_PRIVATE_KEY=<YOUR_PRIVATE_KEY> # See https://github.com/qdm12/gluetun-wiki/blob/main/setup/providers/nordvpn.md#obtain-your-wireguard-private-key
- WIREGUARD_ADDRESSES=10.5.0.2/32
# Timezone for accurate log times
- TZ=Europe/London
# Server list updater
# See https://github.com/qdm12/gluetun-wiki/blob/main/setup/servers.md#update-the-vpn-servers-list
- UPDATER_PERIOD=24h

And I get exactly the same error......

2023-12-28T17:36:46Z INFO [routing] default route found: interface eth0, gateway 172.29.0.1, assigned IP 172.29.0.2 and family v4
2023-12-28T17:36:46Z INFO [routing] local ethernet link found: eth0
2023-12-28T17:36:46Z INFO [routing] local ipnet found: 172.29.0.0/22
2023-12-28T17:36:46Z INFO [firewall] enabling...
2023-12-28T17:36:46Z INFO [firewall] enabled successfully
2023-12-28T17:36:48Z INFO [storage] merging by most recent 17685 hardcoded servers and 17685 servers read from /gluetun/servers.json
2023-12-28T17:36:48Z ERROR VPN settings: Wireguard settings: private key is not valid: wgtypes: failed to parse base64-encoded key: illegal base64 data at input byte 0
2023-12-28T17:36:48Z INFO Shutdown successful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant