hsand / pia-wg

A WireGuard configuration utility for Private Internet Access
GNU General Public License v3.0
297 stars 50 forks source link

Not Able to Connect #3

Open michaelmagan opened 3 years ago

michaelmagan commented 3 years ago

I used the tool to generate the config and it said everything worked but when I put this in my wireguard set up it doesn't work...

[Interface]
Address = 10.38.134.8
PrivateKey = <>
DNS = 10.0.0.243,10.0.0.242

[Peer]
PublicKey = <>
Endpoint = 46.246.3.218:1337
AllowedIPs = 0.0.0.0/0
PersistentKeepalive = 25
hsand commented 3 years ago

Could you test with a few different PIA servers, and see if you're having the same issue? Just to rule out an issue on PIA's side.

michaelmagan commented 3 years ago

@hsand Yes. I've already done that and confirmed another server works. It's possible it's restricted to this server. Thanks for creating this utility. It's pretty great.

I'm going to spend sometime testing more servers to see what happens.

hsand commented 3 years ago

I don't actually have a PIA subscription at the moment, so it's a bit hard for me to test. But I'm wondering if the server you're having issues with is running on another port than 1337. I set the port statically in my script because that's all I encountered, but it might be worthwhile taking a look at the API responses from PIA to double check.

dkrutsko commented 3 years ago

Yeah I'm having the same issue where I'm able to connect to CA-Toronto but not get internet access. On the other hand, accessing US-New-York works fine. I'll see if I can try and figure out what the issue seems to be. Maybe some of those servers just don't support WG properly?

fracai commented 3 years ago

I'm encountering the same behavior (connection succeeds, but no Internet access). The servers I tried last night are:

Any debugging tips?

whtrbbt1 commented 3 years ago

Same issue. Can connect on mac or windows but no internet access. Tried 4 different US servers.

michaelmagan commented 3 years ago

I was never able to resolve this. Seems like some servers work and others don't. I think its likely PIA, but I just switched to OPENVPN for the servers I needed.

whtrbbt1 commented 3 years ago

I was never able to resolve this. Seems like some servers work and others don't. I think its likely PIA, but I just switched to OPENVPN for the servers I needed.

I'm trying to use this on a Firewalla Gold. I have been able to connect to Houston on my PC but no other server. OpenVPN performance isn't the best but that's what I'm using for now.

chimeforest commented 2 years ago

I'm having the same problem. Using the wireguard app on windows, and a GL.iNet router. Windows can "Activate" all of them, but no internet access. Router can only connect to the one successful one listen below. There's probably not a whole lot we can do, but here are the servers I tried to connect to...

Successful:

Unsuccessful:

Edit: Now Houston is not working either =/

weller9999 commented 1 year ago

It seems that the script hardcodes the IP in the conf file. I can connect but get no traffic. I then noticed that the IP changes every 1 second: This is New Zealand but every site is constantly changing IPs, so then the endpoint will have the wrong IP.

for i in {1..10}; do curl https://serverlist.piaservers.net/vpninfo/servers/v4 2>/dev/null|tr , "\n"|egrep "id.:|wg"|\grep nz -A1|tail -1; sleep 1; done "wg":[{"ip":"179.61.240.179" "wg":[{"ip":"179.61.240.108" "wg":[{"ip":"179.61.240.179" "wg":[{"ip":"179.61.240.142" "wg":[{"ip":"179.61.240.159" "wg":[{"ip":"179.61.240.159" "wg":[{"ip":"179.61.240.164" "wg":[{"ip":"179.61.240.134" "wg":[{"ip":"179.61.240.160" "wg":[{"ip":"179.61.240.170"

Thoughts?

Ph0rk0z commented 11 months ago

I am able to connect but DNS doesn't work. I can go to say 1.1.1.1 by IP but all pings to the pia dns servers fail and I haven't been able to use any other one.

ZenoBell commented 3 months ago

I selected a streaming server and i had the same issue. Changing to something else solved the issue so i guess some of them are not working as expected.