Closed Carl-Elkhoury closed 3 months ago
I also encountered this issue today. I similarly am using docker compose, Private Internet Access and running the latest version.
Yep I didn't foresee this usage. I pushed 72e2e4b82c481090d8287f7c8e4dc50d3de6a540 where now the server name required for port forwarding (for TLS name verification of PIA's API web server) is set from the first value of SERVER_NAMES
if it is set. Can you please try it and see if it works? So for example set SERVER_NAMES=adelaide401
for the au-adelaide-pf.privacy.network
server. You can lookup the server name matching your desired server in https://github.com/qdm12/gluetun/blob/master/internal/storage/servers.json if needed. If this works, I'll add extra checks to enforce SERVER_NAMES is set if using pia as the port forwarding code.
Hello
I am trying to connect to PIA with wireguard
I have:
gluetun: container_name: gluetun image: qmcgaw/gluetun:latest cap_add:
The config file is in /gluetun/wireguard/wg0.conf with:
[Interface] Address = 10.16.223.98 PrivateKey = XXXXX DNS = 10.0.0.243 [Peer] PersistentKeepalive = 25 PublicKey = XXXXXX AllowedIPs = 0.0.0.0/0 Endpoint = 178.249.214.49:1337
And for the logs I can see that gluetun is correctly reading that file because it is using that endpoint
I am receiving the following message:
2024-05-10T01:56:22Z INFO [wireguard] Wireguard setup is complete. Note Wireguard is a silent protocol and it may or may not work, without giving any error message. Typically i/o timeout errors indicate the Wireguard connection is not working.
And after that a lot of timeout errors and restarts
I went into the container console to check if there is connection to internet (ping google.com) and there is not.
What am I missing ?
Thanks for the attention
Let's continue the conversation on (still unresolved) #2320 regarding PIA & Wireguard. Thanks!
Closed issues are NOT monitored, so commenting here is likely to be not seen. If you think this is still unresolved and have more information to bring, please create another issue.
This is an automated comment setup because @qdm12 is the sole maintainer of this project which became too popular to monitor issues closed.
Note #2320 is now resolved, and the wiki (PIA's page) updated on how to do this!
Is this urgent?
No
Host OS
Ubuntu Jammy
CPU arch
x86_64
VPN service provider
Private Internet Access
What are you using to run the container
Portainer
What is the version of Gluetun
Running version latest built on 2024-03-07T12:32:25.391Z (commit 3254fc8)
What's the problem 🤔
As Wireguard isn't officially supported for PIA, I was able to run my PIA wireguard configuration via custom service provider which works great. I was trying to add port forwarding by setting VPN_PORT_FORWARDING_PROVIDER to private internet access as written in the wiki here that states: Choose the custom port forwarding code to use. This is useful when using the custom provider with Wireguard.
When I do I get error "panic: server name cannot be empty" (see logs below) When I try to add the server name, it seems like it is not an accepted parameter under custom provider: "VPN settings: provider settings: server selection: for VPN service provider custom: the server name specified is not valid: one or more values is set but there is no possible value available"
Would you know what I am doing wrong?
Thank you for the help! Love your work on gluetun, this service is awesome
Share your logs (at least 10 lines)
Share your configuration