Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PIA Server List URL Change for piawg.py #26

Open
btbutts opened this issue Oct 21, 2024 · 1 comment
Open

PIA Server List URL Change for piawg.py #26

btbutts opened this issue Oct 21, 2024 · 1 comment

Comments

@btbutts
Copy link

btbutts commented Oct 21, 2024

Hello @hsand,

First, I'd like to complement you on the python script you've created here. It's been much easier to work with when I load it into my containers. Great job! Really. Thank you.

@MikealSouth submitted issue #22, stating that the generated configs are only good for a couple hours. Well, a few months later and it seems that the configs generated via the current v4 URL https://serverlist.piaservers.net/vpninfo/servers/v4 in your piawg.py script are no longer working at all, by and large. The configs generate successfully, as the script exits correctly, and I can establish a WireGuard tunnel, but no traffic will pass through it whatsoever. Occasionally, one of the configs might work, but I found I'd have to regenerate the config using different server targets at random at least a dozen or more times before I could get one to work with the existing v4 URL.

When I compared your script to @pia-foss's get_region.sh script, I noticed that they are using the v6 URL https://serverlist.piaservers.net/vpninfo/servers/v6. @pia-foss's get_region.sh script works the first time, every time so I changed the v4 URL in your piawg.py script to the v6 URL target and then your script began working the first time, every time.

You may want to consider updating your script to use the v6 URL as it seems that there's something either outdated, deprecated, or wrong about the v4 URL, even though that v4 URL is still up and working if you hit it manually in a browser.

Thanks again!
-Brian

Playgame38 added a commit to Playgame38/pia-wg that referenced this issue Oct 27, 2024
@Avnsx
Copy link

Avnsx commented Nov 16, 2024

Based on the provided API responses for v4 and v6, here are the key differences:

  1. Offline Status:

    • v6 includes an offline attribute indicating whether the server is offline.
  2. Server Information:

    • v4 provides basic server information like ip and cn for different protocols (ikev2, meta, ovpntcp, ovpnudp, wg).
    • v6 adds additional attributes to the server details, such as van for ovpntcp and ovpnudp, which might denote extra server capabilities or configurations.

Here’s a summary table for clarity:

Feature v4 v6
Offline Status Not included offline attribute included
Server Details Basic (ip, cn) Additional attributes (e.g., van for ovpn)

The van attribute and offline status in v6 provide more detailed information about server capabilities and status, which could help in making better-informed decisions when connecting to a server.

I would just update to v6 endpoints, I believe v4 are only still available for older outdated versions, of the PIA clients anyways, which users haven't clicked on update yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants