UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How to install PIA VPN on UT (Working!)

    Scheduled Pinned Locked Moved General
    27 Posts 8 Posters 5.8k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • W Offline
        wgarcia @Daryl
        last edited by

        @daryl I haven't used my PIA VPN in my Ubuntu Touch current device (Volla Phone) for a while, but I checked and it still works for one of the PIA servers. I cannot make it work for a couple other servers I tried, despite the configuration is exactly the same. I will tell you the one that works and the configuration I use, just in case it is useful for you.

        I have a hidden folder in my device home folder (/home/phablet) called ".privateinternetacces" and I have decompressed there the "zip" file found in this link:

        https://www.privateinternetaccess.com/openvpn/openvpn.zip

        As far as I can tell, I'm not using the configuration files found there, I'm just using the following file for a certificate needed in the VPN settings configuration of my UT device:
        ca.rsa.2048.crt

        Here is the configuration (Settings -> VPN -> add VPN), in the language of my phone, but you can easily figure out the equivalent settings in yours:

        image1.jpg

        To enter the PIA user and password you first have to choose "Type of autentication -> Password". In the screenshot it shows "Certifcate (TLS)" because it changes to that after saving the configuration.

        For the CA Certificate you have to browse to the above mentioned hidden folder and choose the "ca.rsa.2048.crt" file.

        The last line ("Encryption") is configured as "Default". There is an extra line "Data Compression" that is checked in my configuration.

        As I said, with this configuration, I'm able to connect to the PIA VPN server "de-frankfurt.privacy.network", and it works fine, but not to a couple other servers that used to work for me. I'm still investigating why I can only connect to this server.

        CraigC 1 Reply Last reply Reply Quote 0
        • CraigC Offline
          Craig @wgarcia
          last edited by

          @wgarcia About six years ago I installed Private Internet Access's OpenVPN script on my Ubuntu Touch device. Over time I noticed certain VPN connections stopped working. PIA had retired or changed some IP addresses for certain VPN locations.

          I ran a search today and found about 4 pages on PIA's website regarding OpenVPN. Some of the pages have links to support files that no longer work.
          https://helpdesk.privateinternetaccess.com/kb/openvpn

          This page appears to be the most recent:
          https://helpdesk.privateinternetaccess.com/kb/articles/linux-setting-up-manual-openvpn-connection-through-the-terminal

          The old PIA OpenVPN script from about six years ago had a certain URL in it that allowed it to fetch the latest VPN server IP addresses from the PIA website. A few years ago, PIA began retiring those old servers and released a new Wireguard script. Inside that script, the URL where the new server IP addresses are to be fetched is now different.

          This may help explain why some PIA VPN server locations don't work.

          W D 3 Replies Last reply Reply Quote 1
          • W Offline
            wgarcia @Craig
            last edited by

            @craig Thanks!, indeed, I haven't used PIA VPN too much in my UT device the last couple of years, I use it mostly in my computers and TV set. As I said, I didn't check too much, but "de-frankfurt.privacy.network" is still working for me in my UT device.

            1 Reply Last reply Reply Quote 1
            • W Offline
              wgarcia @Craig
              last edited by

              @craig I tried now with 5 of the servers shown in the configuration files of the updated link you provide, and all work perfectly.

              1 Reply Last reply Reply Quote 1
              • D Offline
                Daryl @wgarcia
                last edited by

                @wgarcia Hi wgarcia: thanks for this post... that I've found finally... 23 days later. I am very grateful for your work and will study it closely, try it out, and report to the group what works. I can say that the openvpn thing with PIA works on all of my raspberry pis. Not sure if thats relevant, but I thought I'd just offer it. Here on the forum just to establish that it works for something.

                DP

                1 Reply Last reply Reply Quote 0
                • D Offline
                  Daryl @Craig
                  last edited by

                  @Craig I tried the methods you recommend that are at https://helpdesk.privateinternetaccess.com/kb/articles/linux-setting-up-manual-openvpn-connection-through-the-terminal

                  ... I ran into a problem: my phablet is a read-only file system and even if I use sudo I can't get anything downloaded or unzipped in /etc/openvpn

                  Can you suggest a solution, please?

                  Thanks, Darly

                  DP

                  IanI CraigC 2 Replies Last reply Reply Quote 0
                  • IanI Offline
                    Ian @Daryl
                    last edited by

                    @Daryl You could install the UT Tweak Tool from the Open Store. Open it up, select 'System' from the top left menu, select 'Make Image Writeable' and then select the option you want on the next screen. To avoid problems don't foeget to make the system read only when you have finished. Also be aware that you may have to make the same changes after each update.

                    D 2 Replies Last reply Reply Quote 0
                    • CraigC Offline
                      Craig @Daryl
                      last edited by

                      @Daryl That page on the PIA website gives instructions on how to install openvpn on Ubuntu Desktop, not Ubuntu Touch. They also have a simple app for Desktop that works well.

                      For Ubuntu Touch, try what I posted here.

                      That's what works for me with Ubuntu Touch 16.04 stable.

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        Daryl @Ian
                        last edited by

                        @Ian HI Ian:
                        I installed UT Tweek tool. There was no "System" on the left.

                        Me so sad. This would have been a great solution.

                        Daryl

                        DP

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          Daryl @Ian
                          last edited by

                          @Ian Oh. I found it after clicking on the hamburger. I'll try it out and let you know how it goes.

                          DP

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            Daryl @Craig
                            last edited by

                            @Craig Hi Craig:
                            I typed the 4 lines separately, and then tried sudo openvpn us_atlanta.ovpn

                            Got the error message: Error opening configuratin file: us_atlanta.ovpn

                            .... us_atlanta.ovpn is definately in the directory I issued the commands in.

                            DP

                            CraigC 1 Reply Last reply Reply Quote 0
                            • CraigC Offline
                              Craig @Daryl
                              last edited by

                              @Daryl What is it you are trying to install? And what OS are you trying to install it on?

                              In a previous post you made it looked like you were taking instructions from the PIA website that was designed for Ubuntu Desktop and trying to install it on Ubuntu Touch.

                              1 Reply Last reply Reply Quote 0
                              • L Offline
                                L-01010
                                last edited by

                                But the new scripts don't work on UT. One reason is the version of curl available on UT is older. Another reason is write permission problems as their newer scripts don't anticipate ARM architecture. Another reason is how we have to prefix all calls of Libertine installed programs in their script with libertine, which is a pain.

                                CraigC 1 Reply Last reply Reply Quote 0
                                • CraigC Offline
                                  Craig @L-01010
                                  last edited by

                                  @mamaji77111 Yes, true. I had to address all those issues to get the VPN install script to work again.

                                  1 Reply Last reply Reply Quote 0
                                  • L Offline
                                    L-01010
                                    last edited by

                                    This post is deleted!
                                    1 Reply Last reply Reply Quote 0
                                    • First post
                                      Last post