Package Details: private-internet-access-vpn 2.4.6-1

Package Base: private-internet-access-vpn
Description: Installs VPN profiles for Private Internet Access Service
Upstream URL: https://www.privateinternetaccess.com/
Category: system
Licenses: GPL
Submitter: flamusdiu
Maintainer: flamusdiu
Last Packager: flamusdiu
Votes: 10
First Submitted: 2014-08-14 01:22
Last Updated: 2015-07-21 21:38

Dependencies (5)

Required by (0)

Sources

Latest Comments

Comment by flamusdiu

2015-07-21 21:38

@drism: yeah, should be fixed now.

Comment by drism

2015-07-21 13:20

Getting this traceback from python trying to run the `pia` script immediately after install:
http://hastebin.com/raw/izivuyupev

Comment by flamusdiu

2015-06-01 20:46

updated the sha hashes. =) In the future, just flag it out of date so that I notice it quicker. Thanks!

Comment by CyberGhost

2015-05-29 13:44

The openvpn.zip has needs to be update to :
c2f9af251ae63395896366e0be03ff4eea7748dcc6333fbe777a8f09317bba92

In the mean time you can just manually edit the pkgbuild file

Comment by twisted-space

2015-05-26 20:20

Same problem again...

==> Validating source files with sha256sums...
openvpn.zip ... FAILED
update-resolv-conf.sh ... Passed
source.tar.gz ... Passed
pia-auto-login.py ... Passed
pia-auto-login.py.8.gz ... Passed
==> ERROR: One or more files did not pass the validity check!
:: failed to verify private-internet-access-vpn integrity

Comment by flamusdiu

2015-04-06 02:46

@talonz: fixed

Comment by flamusdiu

2015-04-06 02:35

More than likely PIA updated the certs in the zip. I'll have to upload a updated PKGBUILD to fix it.

Comment by talonz

2015-04-06 02:12

==> Validating source files with sha256sums...
openvpn.zip ... FAILED
update-resolv-conf.sh ... Passed
source.tar.gz ... Passed
pia-auto-login.py ... Passed
pia-auto-login.py.8.gz ... Passed
==> ERROR: One or more files did not pass the validity check!
:: failed to verify private-internet-access-vpn integrity

Comment by flamusdiu

2015-03-27 15:03

I added a wiki page for more information. You can get to it under "Package actions."

Comment by flamusdiu

2015-02-16 00:57

@timidger: Thanks for that. You have to do that because of what I can find about OpenVPN. I don't see any other way to do it to allow OpenVPN to autologin using the file.

Comment by timidger

2015-02-15 23:23

@musasabi: I was having the exact same problem as you. It turns out the login.conf file should contain ONLY the username and password on the two lines. No "VPN-USERNAME=<username>", just:

<username>
<password>

Comment by flamusdiu

2015-01-20 23:56

@wilberfan

Did you remove your comment? I don't see it. I am not sure why Gnome3 would have a DNS leak. Can you email me about how you are seeing the leak?

Comment by flamusdiu

2015-01-11 00:39

@orbarry:

Fixed. Can you email a couple of working configurations for connman that are working for PIA? Make sure to mask out username/password!

I will add it into the script.

Comment by ozbarry

2015-01-10 19:15

With python 3.4.2, I get the following error:

[alex@localhost ~]$ sudo pia-auto-login.py --auto-login
Traceback (most recent call last):
File "/usr/bin/pia-auto-login.py", line 172, in <module>
nm_autologin(id, filename, args.auto_login)
File "/usr/bin/pia-auto-login.py", line 95, in nm_autologin
with open(nm_conf,"w") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/etc/NetworkManager/system-connections/US Midwest'

I am using connman, not NetworkManager, so maybe you should add NetworkManager as a dependency?

Comment by flamusdiu

2015-01-08 13:53

@raberrett: From aura git response by Razz:

Installing any AUR package as root gives this error:
makepkg: invalid option '--asroot'

Pacman changelog:
https://projects.archlinux.org/pacman.git/tree/NEWS#n57

I found the affected aura code in this line:
https://github.com/aurapm/aura/blob/master/src/Aura/MakePkg.hs#L69

Workaround is to only run sudo aura without root.

Comment by flamusdiu

2015-01-06 03:50

@musasabi: how are you starting the VPN? It works for me both through NetworkManager and CLI (using openvpn command).

Make sure the login.conf has only two lines and no extra spaces after your login information.

Comment by flamusdiu

2015-01-06 02:42

@musasabi, let me see what I can find out. Thanks for the report back.

Comment by musasabi

2015-01-06 02:02

Just grabbed your package and it seems to have set everything up properly, except that OpenVPN gives me an AUTH_FAILED. Other than that my account otherwise works with the credentials I've got in /etc/private-internet-access/login.conf and that login.conf is root:root and 600, here's what I did:

Installed openvpn and your scripts.
Filled in the login information and renamed the file to login.conf
Ran pia-auto-login.pi as root with -l
Ran openvpn as root with my suitable location conf

And that results in AUTH_FAILED. I changed my password twice (both times verifying that PIA's web interface still let me in) and am out of ideas. Sorry for being a VPN newb, but everything on your end seems to be correct despite my login being rejected!

Comment by flamusdiu

2015-01-05 00:05

Lots of changes here.

Uploaded PKGBUILD + source files to here: https://github.com/flamusdiu/aur-pkgbuilds/blob/master/private-internet-access-vpn/

You can submit packages changes on Github.

Moved all extra files to the source.gz to better install them.

Added `pia-auto-login.py` which will setup VPN credentials. However, there are a couple of issues you need to be aware of:
1) This script will not run if not run from `root` or through `sudo`
2) Log-in information is stored /etc/private-internet-access/login.conf in the same format as openvpn. It requires 2 lines of information: username (line 1) and password (line 2). This must be owned by root with permissions of 600 or my script will stop.
3) There is no filter for remote servers. It's all or none (might add filtering later).

If there are any issues right now, please post here (or better on Github).

Comment by flamusdiu

2014-12-30 23:34

@raberrett: I got side tracked with holiday stuff. =\

Not sure about the makepkg error since that shows to the be right option according to "makepkg --help"

Comment by rabarrett

2014-12-30 19:42

I emailed you those steps a few weeks ago. Were any of them useful?

I recently tried to install this AUR package on my laptop. I got this error:
[code] makepkg: invalid option '--asroot'
The build failed. [/code]

Comment by flamusdiu

2014-12-11 22:11

@rabarrett: Can you break down exactly the steps you took? I want to see the process and see if its something I wan to add.

Comment by rabarrett

2014-12-11 16:58

I listed them below.

Comment by flamusdiu

2014-12-10 03:49

@rabarrett: What changes did you make to your configs?

Comment by rabarrett

2014-12-10 02:05

Your most recent update fails for me complaining:
"mkdir: cannot create directory 'vpn-configs': File exists"

Of course, I don't want it to replace my modified files, but it seems an update should deal with that better. Otherwise I'll have to tell pacman to ignore updates to that package (which is fine, but sub-optimal).

Comment by rabarrett

2014-12-10 02:02

I got it working with nmcli-dmenu with dwm. It required a combination of importing the profiles with nmcli-demnu and then editing them to include user info in /etc/NetworkManager/system-connections/. Now I can choose whichever one I want from the nmcli-dmenu that drops down and it shows a * by whichever profile is active. (Oh, I also have them activated by NetworkManager by adding a simple script (from the arch wiki on openvpn) that I place in /etc/NetworkManager/dispatcher.d/10-openvpn

Comment by mikezackles

2014-12-09 18:49

@flamusdiu: Sure, your call. Note that my password solution should also work with environment variables, is completely optional, and has no moving parts after install.

Comment by flamusdiu

2014-12-09 18:18

@mikezackles: I think I am going to setup the auto-login differently. I would rather not have ppl edit the PKGBUILD for it. I can do it through a shell script instead. I'll add that in later.

I added the DNS stuff in already.

Comment by flamusdiu

2014-12-09 17:59

@rabarret: I have been using NetworkManager applet which works fine.

@mikezackles: I'll get that added. I've been busy with Ingress stuff.

Comment by mikezackles

2014-12-08 21:42

@flamusdiu -- thanks for including and adding the suspend stuff! If it's helpful, I updated the PKGBUILD I linked earlier to do DNS switching and automatic login. Automatic login is optional and requires the user to edit the PKGBUILD to add their username/password.

Comment by mbennehar

2014-12-08 18:00

@rabarret
I'm using awesome without a desktop manager. I'm using netctl-auto for LAN as a systemd service "systemctl enable netctl-auto@interface". To use this openvpn configuration you should start/enable openvpn systemd service for the profile (e.g. systemctl enable openvpn@Netherlands).
More details: https://wiki.archlinux.org/index.php/netctl
https://wiki.archlinux.org/index.php/OpenVPN

Comment by rabarrett

2014-12-07 22:04

I've wasted a lot of time trying to manually make pia into nmcli connections (got close, but not quite there after hours). Now I'm pleased to have found this in the AUR; it installed fine, but I'm not sure how to use it.

How are you launching these after you install this from AUR? Does anyone use networkmanager or are you doing something else?

I'm running dwm (and have no Desktop Environment). I've played around with dmenu-nmcli also, but without any luck. (nm-applet isn't great under dwm and I'd rather not install a status bar)

Comment by flamusdiu

2014-12-06 02:02

@mikezackles, I didn't even realize there was a systemd for OpenVPN. I use the NetworkManager applet to control the VPN when I need it. I also added the patches for the VPN on restart when computer goes to sleep. If you have any issues, let me know, thanks!

Comment by mikezackles

2014-12-05 19:05

I updated the checksum and made things a bit more systemd friendly if anyone finds it useful: https://gist.github.com/mikezackles/0fa3928625d4c6242db5

Comment by flamusdiu

2014-11-22 02:25

@thewooster:

Did you manually install the configs? If you did, that's why are you getting this error. You need to remove the configs then install the package.

Comment by thewooster

2014-11-20 14:42

Hi! I am getting this error when trying to build:

==> Validating source files with sha256sums...
openvpn.zip ... Passed
==> Extracting sources...
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting package()...
mkdir: cannot create directory ‘vpn-configs’: File exists
==> ERROR: A failure occurred in package().
Aborting...

Comment by flamusdiu

2014-10-15 12:38

cert file updated.