|author||Kevin Cernekee <email@example.com>||Thu Jun 02 02:42:13 2016|
|committer||Kevin Cernekee <firstname.lastname@example.org>||Thu Jun 02 02:45:48 2016|
Support downloading alternate OpenVPN configuration files This handles 4 out of the 5 variations on PIA's site. lport is not supported in Chrome OS (AFAICT). Signed-off-by: Kevin Cernekee <email@example.com>
This project lets you set up OpenVPN profiles for privateinternetaccess.com in Chrome OS with minimal fuss. It does not require enabling developer mode.
Short link to this page: http://tinyurl.com/cros-pia
Download the “prebuilt” cros-pia.zip to your Chromebook.
Click “Show in folder,” or open the File Manager with Alt-Shift-M. Then double-click on the zip file to mount it.
chrome://net-internals/#chromeos in the location bar, hit enter, and click “Choose File” under “Import ONC File.”
Double-click ALL.onc (to import configurations for all servers), or import individual VPN configuration(s) one at a time.
Click on the Tray → VPN → one of the PIA configurations.
Fill in Username and Password using your normal PIA (not L2TP) credentials. Always leave OTP blank.
If import failed, scroll down to the end of
file:///var/log/ui/ui.LATEST and look for any errors. (The net-internals UI doesn't provide a whole lot of feedback, unfortunately.)
If your connection fails, do the same for
To delete VPN configurations:
Select Private Network → Preferred networks.
Click the “X” icon on the right side of each configuration you want to delete.
First, clone this repo on a Linux machine:
git clone https://chromium.googlesource.com/experimental/cros-pia
./build_all.sh to download the default OpenVPN configuration files from the official PIA site, convert them into ONC format, and create
cros-pia.zip in the current directory.
To embed your PIA credentials into the generated
cros-pia.zip so that you never need to manually enter them on the Chromebook, use:
./build_all.sh -u "USERNAME" -p "PASSWORD"
To manually convert a single configuration, use:
./ovpn_to_onc.py "US California.ovpn"
To download an alternate set of OVPN files, specify the appropriate flag as the first argument:
The supported flags are:
--pia-ip: Connect via IP address instead of server hostname.
--pia-tcp: Connect over 443/tcp instead of 1194/udp.
--pia-ip-tcp: Same as above, but connect via IP address.
ONC does not currently support the certificate revocation list (CRL) bundled with the PIA .ovpn files.
The converter only handles the fields that are relevant for PIA; it is not a general purpose OVPN→ONC converter.
PIA's official site does not currently offer ONC files for download, but if enough Chromebook users bug them about it, maybe they will reconsider.
The file format is defined in the ONC specification.
(To get a copy in .html format, click the “txt” link at the bottom and run
base64 -d on it. This is a workaround for a gitiles limitation.)
The original OpenVPN ONC walkthrough document can be found here.