brycelarge / xteve-vpn

xTeVe Ubuntu Docker Edition with built in OpenVPN
GNU General Public License v3.0
16 stars 5 forks source link

Container not using passed credentials #21

Open mgregor7 opened 11 months ago

mgregor7 commented 11 months ago

Here is my docker start script for the container. docker run -d \ --name=xteve-vpn \ --net=bridge \ --cap-add=NET_ADMIN\ -e OPENVPN_USERNAME=******\ -e OPENVPN_PASSWORD=******\ -e OPENVPN_PROVIDER=CUSTOM\ -e LOCAL_NETWORK=192.168.75.0/24\ -e PUID=1000 \ -e PGID=1000 \ -e UMASK_SET=022#optional\ -e XTEVE_DEBUG=0#optional\ -e XTEVE_BRANCH=master#optional\ -p 34400:34400#required in bridge mode\ -v /usr/local/etc/xteve-vpn:/config \ -v /usr/local/tmp:/tmp/xteve \ --restart unless-stopped \ brycelarge/xteve-vpn As you can see, I've added the username, password, and provider parameters. However, when running the container and looking at the logs, It shows that no custom config is found. I have my windscribe.ovpn config file in the xteve-vpn/openvpn folder.

Here is the log from the container: https://pastebin.com/iXhi0F1s

Thanks!

jsbear commented 7 months ago

I have NordVPN, I'm using CUSTOM, setting the username and password correctly in the docker settings, I have dropped the OVPN file in the appropriate folder, can I also see that credential file is created (custom-openvpn-credentials.txt) and the .ovpn file is edited to include auth-user-pass /config/openvpn/custom-openvpn-credentials.txt, however the VPN connection is NOT established. I have added --cap-add=NET_ADMIN to the extra parameters in UNRAID. I'm running in bridge mode. I get the following errors in the log over and over while attempting to establish a VPN connection.

2024-01-07 13:55:38 [us9278.nordvpn.com] Peer Connection Initiated with [AF_INET]185.216.74.176:443 2024-01-07 13:55:39 SENT CONTROL [us9278.nordvpn.com]: 'PUSH_REQUEST' (status=1) 2024-01-07 13:55:39 AUTH: Received control message: AUTH_FAILED 2024-01-07 13:55:39 SIGTERM[soft,auth-failure] received, process exiting Error: in prepare, no such table: openvpn (1)

Doesn't seem like the credential are being passed correctly.

I have other binhex VPN containers running, configured similarly. I'm a bit stumped. Would like to get the VPN working. Thanks.

CloakedC commented 5 months ago

@jsbear I was having the same problem. Turns out you should not use the email/password you log into Nord with. Instead, log into your nord account, scroll down to "Manual Setup" and select "Set up NordVPN Manually." They will have you verify your email and then provide you with a username/password combination that will work (it looks like random characters). Hope this helps.