sfiorini / NordVPN-Wireguard

A bash scripts that generates Wireguard configuration file for a NordVPN connection.
234 stars 40 forks source link

Exported Config cannot be read by qbittorentvpn #13

Open DieSchoeneWolke opened 1 year ago

DieSchoeneWolke commented 1 year ago

Hey, I don't know if the Issue comes from the config file or the qbittorrentvpn image b ut I get this error message when I want to use the generated config:

[cont-init.d] 02-vpn.sh: executing... 
2023-01-17 09:12:12 [INFO] Choosen VPN config: 'NordVPN-.conf'
dos2unix: converting file /config/wireguard/NordVPN-.conf to Unix format...
2023-01-17 09:12:12 [INFO] VPN remote line defined as ':51820'
2023-01-17 09:12:12 [ERROR] VPN_REMOTE not found in /config/wireguard/NordVPN-.conf, exiting...
[cont-init.d] 02-vpn.sh: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[Interface]
PrivateKey = censored
ListenPort = 51820
Address = /32
DNS = censored, censored

[Peer]
PublicKey = 
AllowedIPs = 0.0.0.0/0
Endpoint = :51820
PersistentKeepalive = 25

I don't know how a wireguard config should look like but according to the logs im missing an IP adress in front of the port? Is this an issue with the generator or the docker image I want to put the config in?

Thanks for your replies!

sfiorini commented 5 months ago

Sorry for the late reply. From what I see, your script wasn't created correctly. Did you login to nordvpn per README before running the script?

Also, I have released a new version of the script. Please make sure you login to nordvpn, then sun the script again.

Stefano