Closed Modged closed 9 months ago
Did you try and regenerate the Wireguard config file? I have had a working container that stopped and started giving me very similar issues, and regenerating the configuration and reapplying them to the container allowed it to start working. I was working from a container that was already working, so it's not exactly the same and may not be the right fix.
I would also try a different endpoint (destination country and server), just in case PureVPN connections from your selected endpoint are being blocked.
@Modged did you ever get this working? I'm having the same issue as you (except I have set my VPN_SERVICE_PROVIDER=custom because if I choose VPN_SERVICE_PROVIDER=purevpn the console reports that wireguard is not valid for purevpn.
didnt see the container is waiting the CIDR for the variable "WIREGUARD_ADDRESSES" the so I added the /32
a9ada1a3bbe7aa676d61bb4a6519a222f3eb1482 automagically adds /32
in case there is none specified.
the container doesn't resolve the endpoint address which is sxXXXXXXX-wg.pointtoserver.com as an IP address so I pinged it and it returned an IP which I used to replace the "VPN_ENDPOINT_IP".
Yes for now you cannot use hostnames, you have to resolve the hostname yourself. You can use generally nslookup hostname.com
to get one or more ip addresses.
Edit 4 : Now the container starts but can't establish connection to PureVPN
Try what @dvermeulen suggested (and I guess you had to set VPN_SERVICE_PROVIDER=custom
anyway, as @evilalmus mentions). I cannot help much since it could be anything outside my control not working (VPN server down, router firewall blocking it, ISP, etc.)
Also I'm sorry I'm quite very late at answering, this project got way too popular for me to handle it in my spare time, so doing my best 😉
Hello I like your project. So firstly thank you ! I don't know if its better to create "issue" or trying to find answer elsewhere, I hope I am not going something I shouldn't ?
I am github, dockerhub and docker enthusiast but beginner ... :(
The project seems very complete but I am missing some information PureVPN WireGuard is "straight forward" on my host ! All I have to do is :
sudo wg-quick up wg0
And one sec later I am connected. Of course I had to insert their conf file on my host :sudo nano /etc/wireguard/wg0.conf
Which is a this momentSo when I have run
It asks me the parameters but in the documentation I have read that I only needed a conf file mounted to /gluetun/wireguard/wg0.conf.
ERROR reading from files: provider: server selection: wireguard: parsing peer section: endpoint host is not an IP: ParseAddr("sx**_SERVERNAME_**-wg.pointtoserver.com"): unexpected character (at "sx**_SERVERNAME_**-wg.pointtoserver.com")
Where is my mistake ? By the way its not a problem for me to give the variables ... Thanks again :)Edit1 : if i give the variables :
ERROR reading from environment variables: wireguard: environment variable WIREGUARD_ADDRESSES: netip.ParsePrefix("**_X.X.X.X_**"): no '/'
So welcome to edit2 I guess ...
Edit2 : didnt see the container is waiting the CIDR for the variable "WIREGUARD_ADDRESSES" the so I added the /32 Edit3 : the container doesn't resolve the endpoint address which is sxXXXXXXX-wg.pointtoserver.com as an IP address so I pinged it and it returned an IP which I used to replace the "VPN_ENDPOINT_IP". Edit 4 : Now the container starts but can't establish connection to PureVPN
Error (I only have modified X.X.X.X:51820 and Y.Y.Y.Y:44550) :
There is the complete Docker Run :