dagrha / pypia

Configuration of Private Internet Access VPN routes for Linux
GNU General Public License v3.0
78 stars 15 forks source link

Support Gen4 Network #45

Open stobiewan opened 3 years ago

stobiewan commented 3 years ago

PIA are upgrading their network and the majority of servers no longer work with pypia, especially initialise doesn't work. See https://www.privateinternetaccess.com/helpdesk/news/posts/decommissioning-of-legacy-network. I think the generation of network manager files needs to be updated to support nextgen.

dagrha commented 3 years ago

Thanks for the heads up, stobiewan. I'll have to do some research on what the "nextgen" configuration looks like and if it's still possible to use PIA via network-manager

Saltani commented 3 years ago

I made a Bash-script that updates the PIA configuration files to Gen4. It is only meant as a temporary work-around until PyPia has been updated. The script can be found here: https://gist.github.com/Saltani/0295ff17f5084afdd57b0542fe6b99bd

dagrha commented 3 years ago

In addition to Saltani's nice script, I found this page that links to an "official" manual connection set up script: https://www.privateinternetaccess.com/helpdesk/kb/articles/manual-connection-and-port-forwarding-scripts

Might be a bit before I can update pypia to work with the "nextgen" networks, so perhaps people can use Saltani's script or this one in the mean time.

JavaScriptDude commented 3 years ago

@Saltani - FYI, you may want to update you instructions to have the user first install using pypia and then run your script as I found an issue on a new server where the certificates were not deployed with your script causing to VPN connections to fail.

Saltani commented 3 years ago

I have updated the script so it should no longer be nessesary to install PyPia for the VPN to work. Note however, that it has only been testet on my Fedora 33 laptop. It worked well during my own testing but there are no guarantees. Use it at your own risk!.

JavaScriptDude commented 3 years ago

@Saltani - New version works well with just a small tweak needed. I made a note on your gist.

Saltani commented 3 years ago

@JavaScriptDude - I have (hopefully) fixed the bug and replied to your note.