How to get Private Internet Access running in Tahr?

Antivirus, forensics, intrusion detection, cryptography, etc.
Post Reply
Message
Author
bh56
Posts: 55
Joined: Tue 07 Apr 2009, 08:04

How to get Private Internet Access running in Tahr?

#1 Post by bh56 »

Hi all,
Has anybody managed to get the client program from Private Internet Access running in Tahrpup 605?
Thanks
Brendan

superchook
Posts: 117
Joined: Mon 13 Mar 2006, 07:39
Location: Sydney, Australia

How to get Private Internet Access running in Tahr?

#2 Post by superchook »

Yes I have. I have forgotten the details :-( but an important ingredient was creating the file

/etc/resolv.conf.tail

which contains the line

nameserver 8.8.8.8

There is a brief thread at

http://www.murga-linux.com/puppy/viewtopic.php?t=106033

HTH if not pm me and I will try to recall what I did.

cheers,
Ken

bh56
Posts: 55
Joined: Tue 07 Apr 2009, 08:04

How to get PIA running in Tahrpup

#3 Post by bh56 »

Thanks for the reply.
I renamed AU\ Sydney.ovpn to Sydney.ovpn.
Using openvpn /etc/openvpn/Sydney.ovpn
I get
Options error: --ca fails with 'ca.crt': No such file or directory
Options error: --crl-verify fails with 'crl.pem': No such file or directory
Options error: Please correct these errors.
Use --help for more information.
Should the files ca.crt and crl.pem be in /etc/openvpn?
If so how did you get them?
There are sample keys in /usr/share/doc/openvpn/examples/sample-keys
Brendan

superchook
Posts: 117
Joined: Mon 13 Mar 2006, 07:39
Location: Sydney, Australia

#4 Post by superchook »

I think I obtained my /etc/openvpn from the PIA website

https://www.privateinternetaccess.com/p ... t-support/

Under "EASY Setup Guides for Alternate Configurations (Advanced):" you should find
+ Advanced OpenVPN SSL Usage Guides
click on the + symbol and a sub menu opens up the last item being
OpenVPN Configuration Files (Default)
click on this and you should download the file openvpn.zip
Unzip this file into /etc/openvpn
The /etc/openvpn directory will contain many PIA servers including
"AU Sydney.openvpn" and also the files ca.crt and crl.pem
Do not rename the file "AU Sydney.openvpn".

I then created the file /etc/resolv.conf.tail as described in my earlier post.

to set up PIA I go to their website at

https://www.privateinternetaccess.com/p ... nt-sign-in

and enter the Username and Password that you received from PIA then click Submit
That should be all that is required.

HTH
Ken

superchook
Posts: 117
Joined: Mon 13 Mar 2006, 07:39
Location: Sydney, Australia

#5 Post by superchook »

I just noted that I have the following .pet on this box as well so I must have installed it as well.

gadmin-openvpn-client-0.1.8-i686.pet

bh56
Posts: 55
Joined: Tue 07 Apr 2009, 08:04

PIA access in Tahrpup

#6 Post by bh56 »

Thanks.
Getting closer.
The command openvpn Au\ Sydney.ovpn now runs correctly.
It asks for my username which I provide.
it then asks for my password.
I can't type the password into urxvt or paste it.
I downloaded another terminal (Sakura) but same problem: can't input the password.
The command then fails with an authorization failure.
Entering the username/password in the client logon just allows me to change my profile.
However each time I've tried I'm asked to download a file from PIA eg the name of one was ga-notify with lots of numbers.
The gadmin package seems to be a gui for logging on.
Brendan

bh56
Posts: 55
Joined: Tue 07 Apr 2009, 08:04

How to get Private Internet Access running in Tahr?

#7 Post by bh56 »

And closer.
It seems that the password is hidden as you type it; the cursor doesn't even move.
However, the command now works correctly.
It changes the wlan0 interface I use; the icon on the taskbar changes to the computer icon. It states however that there is still a connection.
Another interface is created: tun0.
I've made the file /etec/resolve.conf.tail with nameserver 8.8.8.8 in it but still no connection with the browser.
Brendan

superchook
Posts: 117
Joined: Mon 13 Mar 2006, 07:39
Location: Sydney, Australia

#8 Post by superchook »

I had not used PIA since last March and my memory was faulty. A short while ago I tried the following experiment.

Step 1. I visited

https://www.privateinternetaccess.com/

and observed a note at the top of the page saying "You are not protected"

Step2. I closed the browser

Step 3. I started urxvt and entered

cd /etc/openvpn
openvpn --config AU\ Sydney.openvpn

and answered the username and password questions.
The script then ran setting up the link

Step 4 I restarted the browser and revisited the PIA site. This time it told me I _was_ protected.
Step 5 I closed the browser and then issued a control c in the urxvt window to kill the link.

My use of PIA was mainly when I wanted to purchase airline tickets overseas from Australia.It stops the airlines re directing your requests back to their Australian site.

cheers,
Ken

bh56
Posts: 55
Joined: Tue 07 Apr 2009, 08:04

Openvpn with Lxpup_Xenial

#9 Post by bh56 »

I've started using Lxpup Xenial.
With this version of puppy linux openvpn fails with the message that there is no dev tun at /dev/net/tun.
I made the file with:
mkdir /dev/net
cd /dev/net
mknod tun c 10 200
I also made starting easier by editing the ovpn file from Private Internet access.
In the same directory as the ovpn files I made a file which has my username and password.
In the ovpn file I changed the line auth-user-pass to auth-user-pass my_password_file.
Running openvpn now accepts my credentials but warns of the permissions of the password file. Not sure if it is important or how to change it.
Last edited by bh56 on Sun 25 Sep 2016, 02:24, edited 1 time in total.

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#10 Post by bigpup »

In Rox file manager
If you right click on the password file.
Select properties.
You can choose the permissions for the file.

Maybe it wants the file to only have read permissions.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

jockjunior
Posts: 150
Joined: Tue 29 Jan 2008, 21:11
Location: Lancashire,U.K.
Contact:

#11 Post by jockjunior »

install openvpn package from puppy package manager

install update-resolv-conf (I extracted mine from a deb package I downloaded) stick it in /etc
make 2 files

resolv.head.conf
resolv.tail.conf

In these two enter your dns server addresses the format is
nameserver xxx.xxx.xx.xx

save them in /etc


create a link to /sbin/ip from usr/sbin
click on the file and pick create link then paste it in /usr/bin


add "ipv6" to MODULESCONFIG in /etc/rc.d and dont forget to leave a space between entries

#ADDLIST: if a module did not get auto-loaded but you know it is required for
#your hardware, add it to this list. Note, BootManager will read/write this.
#an entry is allowed to have parameters, replace ' ' with ':'. ex: "mmc_block:major=179"
#note, list needs a space char at beginning and at end.
ADDLIST=' evdev ipv6 '



add to local.rc
openvpn /etc/openvpn/your conf file &
if this doesnt work to start your vpn on startup then follow the startup option below or do it anyway I did

to stop and start create scripts openstop openstart


#!/bin/sh
# code to start the service
openvpn /etc/openvpn/your conf file &
exit

and



#!/bin/sh
# code to stop the service
var1="$(pgrep openvpn)"
echo $var1
kill $var1
exit

make executable and save in my-applications/bin

copy openstart to /root/startup

this is working in Tahr and slacko 6.3.2 using the conf files for Mullvad vpn

jockjunior
Posts: 150
Joined: Tue 29 Jan 2008, 21:11
Location: Lancashire,U.K.
Contact:

#12 Post by jockjunior »

sorry for the typo.My old eyes have just noticed it :(

it should read put the link to /sbin/ip in /usr/sbin NOT /usr/bin

cheers
Phil

tigs
Posts: 39
Joined: Tue 05 Nov 2013, 23:47

#13 Post by tigs »

I think I got it working eventually. Here is what i did:

copy the config file, let's say. us-east.ovpn, and the certificate files into directory </etc/openvpn>

create a text file "password.txt" containing two lines: username and password in the same directory

modify the openvpn config file to reflect the location of the certificates and password.txt

run the command "openvpn /etc/openvpn/us-east.ovpn

to stop: run killall openvpn

it seams to work.

I have two questions:

1, can some help create two scripts to run and stop vpn and keep themon the desktop for easy access?

2, what about routing? do we have have to set up routing and gateway etc?

thanks

Post Reply