Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 29 Jul 2017, 08:02
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Security/Privacy
How to get Private Internet Access running in Tahr?
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [13 Posts]  
Author Message
bh56

Joined: 07 Apr 2009
Posts: 53

PostPosted: Sat 02 Jul 2016, 06:52    Post subject:  How to get Private Internet Access running in Tahr?
Subject description: VPN client
 

Hi all,
Has anybody managed to get the client program from Private Internet Access running in Tahrpup 605?
Thanks
Brendan
Back to top
View user's profile Send private message 
superchook

Joined: 13 Mar 2006
Posts: 96
Location: Sydney, Australia

PostPosted: Sun 03 Jul 2016, 05:01    Post subject: How to get Private Internet Access running in Tahr?  

Yes I have. I have forgotten the details Sad 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
Back to top
View user's profile Send private message 
bh56

Joined: 07 Apr 2009
Posts: 53

PostPosted: Sun 03 Jul 2016, 22:35    Post subject: How to get PIA running in Tahrpup  

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
Back to top
View user's profile Send private message 
superchook

Joined: 13 Mar 2006
Posts: 96
Location: Sydney, Australia

PostPosted: Mon 04 Jul 2016, 01:22    Post subject:  

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

https://www.privateinternetaccess.com/pages/client-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/pages/client-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
Back to top
View user's profile Send private message 
superchook

Joined: 13 Mar 2006
Posts: 96
Location: Sydney, Australia

PostPosted: Mon 04 Jul 2016, 01:36    Post subject:  

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
Back to top
View user's profile Send private message 
bh56

Joined: 07 Apr 2009
Posts: 53

PostPosted: Mon 04 Jul 2016, 06:44    Post subject: PIA access in Tahrpup  

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
Back to top
View user's profile Send private message 
bh56

Joined: 07 Apr 2009
Posts: 53

PostPosted: Tue 05 Jul 2016, 04:28    Post subject: How to get Private Internet Access running in Tahr?  

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
Back to top
View user's profile Send private message 
superchook

Joined: 13 Mar 2006
Posts: 96
Location: Sydney, Australia

PostPosted: Wed 06 Jul 2016, 05:20    Post subject:  

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
Back to top
View user's profile Send private message 
bh56

Joined: 07 Apr 2009
Posts: 53

PostPosted: Sat 06 Aug 2016, 22:12    Post subject: Openvpn with Lxpup_Xenial
Subject description: Tweaking openvpn
 

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 Sat 24 Sep 2016, 22:24; edited 1 time in total
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 8965
Location: Charleston S.C. USA

PostPosted: Sun 07 Aug 2016, 07:12    Post subject:  

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.

_________________
I have found, in trying to help people, that 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 Shocked
Back to top
View user's profile Send private message 
jockjunior

Joined: 29 Jan 2008
Posts: 150
Location: Lancashire,U.K.

PostPosted: Mon 24 Oct 2016, 14:59    Post subject:  

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
Back to top
View user's profile Send private message Visit poster's website 
jockjunior

Joined: 29 Jan 2008
Posts: 150
Location: Lancashire,U.K.

PostPosted: Thu 27 Oct 2016, 08:14    Post subject:  

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

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

cheers
Phil
Back to top
View user's profile Send private message Visit poster's website 
tigs

Joined: 05 Nov 2013
Posts: 17

PostPosted: Mon 23 Jan 2017, 13:26    Post subject:  

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
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [13 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Security/Privacy
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0487s ][ Queries: 13 (0.0035s) ][ GZIP on ]