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 16 Feb 2019, 11:55
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
A Simple VPN Implementation
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 3 [45 Posts]   Goto page: Previous 1, 2, 3 Next
Author Message
Mr.Spenalzo

Joined: 28 Sep 2017
Posts: 4

PostPosted: Wed 18 Jul 2018, 17:46    Post subject: A Simple VPN Implementation  

Hello OscarTalks. Thank you for this! Works great on 32 bit TahrPup.
Back to top
View user's profile Send private message 
freddieodom

Joined: 28 Jun 2018
Posts: 5
Location: Miami

PostPosted: Thu 02 Aug 2018, 10:34    Post subject:  

Very useful and in-depth post. I amazed to read it. Can you let me know that Astrill VPN can run with this program? Thanks
Back to top
View user's profile Send private message 
OscarTalks


Joined: 05 Feb 2012
Posts: 1852
Location: London, England

PostPosted: Thu 02 Aug 2018, 12:56    Post subject:  

Thanks for the comments.
It is difficult to give a definitive answer regarding Astrill VPN or any of the other paid-for VPN services unless I sign up for them, but generally speaking it should be possible to use this system to access their services. I took a brief look and it appears that they do support OpenVPN which is what my system uses. If you sign up, they should provide you with a bundle of .ovpn configuration files. These are just text files. Not sure if you may also need to grab certificates and add those in as well. Often they are already included in the .ovpn file. Their wiki had some information which you might need to study. Essentially though, you just pluck out the .ovpn file for the VPN server you want to access and use that.

_________________
Oscar in England

Back to top
View user's profile Send private message 
freddieodom

Joined: 28 Jun 2018
Posts: 5
Location: Miami

PostPosted: Fri 03 Aug 2018, 08:50    Post subject:  

Thank you so much @OscarTalks for taking time for me.
Back to top
View user's profile Send private message 
foxpup


Joined: 29 Jul 2016
Posts: 751
Location: europa near northsea

PostPosted: Sun 05 Aug 2018, 08:07    Post subject: openvpn in RC3 dPupStretch from radky  

I tried simple VPN in the RC3 for Stretch from radky.
I expected that the openvpn pet for stretch from OscarTalks would work, but it didn't.

I compiled it from source then, and now it does work. The version is now 2.4.6.
You can download it here: https://drive.google.com/open?id=1Ead006EcBAzRi2s702yjoSu5hxaJkm0f
Back to top
View user's profile Send private message 
OscarTalks


Joined: 05 Feb 2012
Posts: 1852
Location: London, England

PostPosted: Sun 05 Aug 2018, 10:32    Post subject:  

Thanks for letting me know about the stretch .pet
I have removed it from my Smokey01.com repo, at least for now.
Maybe some library version (such as OpenSSL or something) has been updated in Radky's build, but this is now the main version of Dpup Stretch so packages should be compatible with it. Compiling from source is always a good move, or folks can use your openvpn build since it has been tested.

UPDATE
I have compiled openvpn-2.4.6 in Radky's Dpup Stretch so hopefully that will work OK.
Uploaded to http://smokey01.com/OscarTalks

_________________
Oscar in England


Last edited by OscarTalks on Sun 10 Feb 2019, 21:46; edited 1 time in total
Back to top
View user's profile Send private message 
foxpup


Joined: 29 Jul 2016
Posts: 751
Location: europa near northsea

PostPosted: Sun 05 Aug 2018, 11:16    Post subject:  

OscarTalks wrote:
Maybe some library version (such as OpenSSL or something) has been updated in Radky's build, but this is now the main version of Dpup Stretch so packages should be compatible with it.
Code:
openvpn --config /etc/vpnconfig
gave some error with 'ifconfig failed' which leeds to busybox and the version of busybox in radky's RC3 is much newer.

BTW, I found the freeVPN servers a lot better than VPNbook. I use it to go on IRC chat sometimes. It could be that VPNbook is better for other uses.
Back to top
View user's profile Send private message 
bacteriax


Joined: 06 Feb 2019
Posts: 3

PostPosted: Wed 06 Feb 2019, 17:37    Post subject: Need help getting openvpn working please.  

Hi,
My 1st post. Long time linux user.
Previously, used puppy on compaq laptop 12 years ago.
I love this OS, and for the most everything is going great.
Running Xenial 32 booting from usb with 4gb .sfs file.
Followed steps 1-5 in OscarTalks initial post, but when
the default browser opens it reveals my default ip address.
Any ideas as to why or what I can do to correct my
openvpn connection would be appreciated.
Thank you
Back to top
View user's profile Send private message 
OscarTalks


Joined: 05 Feb 2012
Posts: 1852
Location: London, England

PostPosted: Wed 06 Feb 2019, 18:38    Post subject:  

Hello bacteriax,

Sorry that this thread is something which you have to use as a guide and figure out a few specifics on your Puppy and your system, rather than a simple install-and-go solution.

I can tell you that it is working for me on various Puppies and I use it fairly often.

Might not be easy to help, but I am wondering which version of openvpn you have installed, Ubuntu version via PPM or some other?
I have found that compiling from source is always best if you know how to do that.

Also, which VPN provider are you trying to use?
I know that VPNbook changed some of their servers recently and added a couple of new ones, so you may need to grab a fresh bundle of their .ovpn config files. Some of the old ones will not work at all any more.

I still mostly use the freevpn.me service rather than VPNbook, but the password on that is changing once or twice a week sometimes. Only takes a couple of minutes to grab the new password and update though.

I suggest running from terminal with the command as mentioned above
Code:
openvpn --config /etc/vpnconfig
That should provide more clues as well as to why it is not initialising as it should.
_________________
Oscar in England

Back to top
View user's profile Send private message 
bacteriax


Joined: 06 Feb 2019
Posts: 3

PostPosted: Fri 08 Feb 2019, 11:44    Post subject: openvpn --config /etc/vpnconfig terminal output:  

Hi Oscartalks thanks for your reply.
I have installed the openvpn-2.4.5-i686-xenial that you kindly compiled downloaded from your repo
I I am attempting to connect to vpnbook set to the euro server your build defaults to.
After your suggestion I downloaded the vpnbook pl sever openvpn.zip.
I unzipped and renamed the port 80 file to vpnpl without an extension.
I then deleted the euro1 symlink and made new symlink from vpnpl file called vpnconfig.
I then used the connect vpn menu entry but had same result as before.

Here is the openvpn --config /etc/vpnconfig terminal output:
root# openvpn --config /etc/vpnconfig
Fri Feb 8 10:33:33 2019 OpenVPN 2.4.5 i686-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Mar 24 2018
Fri Feb 8 10:33:33 2019 library versions: OpenSSL 1.0.2g 1 Mar 2016, LZO 2.08
Fri Feb 8 10:33:33 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]176.126.237.217:80
Fri Feb 8 10:33:33 2019 Socket Buffers: R=[87380->87380] S=[16384->16384]
Fri Feb 8 10:33:33 2019 Attempting to establish TCP connection with [AF_INET]176.126.237.217:80 [nonblock]

Any thoughts or insight you can share would be greatly appreciated.
Thanks again,
BX
Back to top
View user's profile Send private message 
OscarTalks


Joined: 05 Feb 2012
Posts: 1852
Location: London, England

PostPosted: Fri 08 Feb 2019, 13:29    Post subject:  

Hello BX,

Sounds like you are doing the right things.

I don't personally run Xenial, but I'm sure I tested that build after I compiled it so that should be OK

The old euro1 and euro2 servers are definitely gone. The pl one you have used is one of the replacements along with the de which allow p2p. I can only suggest you try some of the other servers and other port numbers by repeating what you did with the pl .ovpn config file.

Ah, just thought of something.
You might need to edit the line in the .ovpn config file which reads
auth-user-pass
You need to add the path to the passfile with stored username and password so it reads:-
auth-user-pass /etc/vpnpass

Here is my edited .ovpn file for pl
Code:
client
dev tun3
proto tcp
remote 51.68.152.226 80
remote pl226.vpnbook.com 80
remote-cert-tls server
resolv-retry infinite
nobind
persist-key
persist-tun
auth-user-pass /etc/vpnpass
auth-nocache
comp-lzo
verb 3
cipher AES-128-CBC
pull
route-delay 2
redirect-gateway
<ca>
-----BEGIN CERTIFICATE-----
MIIDyzCCAzSgAwIBAgIJAKRtpjsIvek1MA0GCSqGSIb3DQEBBQUAMIGgMQswCQYD
VQQGEwJDSDEPMA0GA1UECBMGWnVyaWNoMQ8wDQYDVQQHEwZadXJpY2gxFDASBgNV
BAoTC3ZwbmJvb2suY29tMQswCQYDVQQLEwJJVDEUMBIGA1UEAxMLdnBuYm9vay5j
b20xFDASBgNVBCkTC3ZwbmJvb2suY29tMSAwHgYJKoZIhvcNAQkBFhFhZG1pbkB2
cG5ib29rLmNvbTAeFw0xMzA0MjQwNDA3NDhaFw0yMzA0MjIwNDA3NDhaMIGgMQsw
CQYDVQQGEwJDSDEPMA0GA1UECBMGWnVyaWNoMQ8wDQYDVQQHEwZadXJpY2gxFDAS
BgNVBAoTC3ZwbmJvb2suY29tMQswCQYDVQQLEwJJV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C8K3jToZ0Dv4MYXQnzyXziH
QbewJZABCcOKYS0VRB/6zYX/9dIBogA/ieLgLrXESIeOp1SfP3xt+gGXSiJaohyA
/NLsTi/Am8OP211IFLyDLvPqZuqlh/+/GOLcMCeCrMj4RYxWstNxtguGQFc=
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN RSA PRIVATE KEY-----
MIICXAIBAAKBgQCkTM/8E+JHCjskqMIwgYDrNCBTWZLa+qKkJjZ/rliJomTfVYwK
wv1AHYYU6RHpCxS1qFp3BEKLvQlASuzycSv1FGnNiLmg94fqzzWdmjs1XWosnLqb
Owxx2Ye/1WoakSHia0pItoZkxK7/fllm42+Qujri/ERGga5Cb/TfiP6pUQIDAQAB
AoGANX508WQf9nVUUFlJ8LUZnnr4U2sEr5uPPNbcQ7ImTZm8MiMOV6qo/ikesMw5
8qCS+5p26e1PJWRFENPUVhOW9c07z+nRMyHBQzFnNAFD7TiayjNk1gz1oIXarceR
edNGFDdWCwXh+nJJ6whbQn9ioyTg9aqScrcATmHQxTit0GECQQDR5FmwC7g0eGwZ
VHgSc/bZzo0q3VjNGakrA2zSXWUWrE0ybBm2wJNBYKAeskzWxoc6/gJa8mKEU+Vv
ugGb+J/tAkEAyGSEmWROUf4WX5DLl6nkjShdyv4LAQpByhiwLjmiZL7F4/irY4fo
ct2Ii5uMzwERRvHjJ7yzJJic8gkEca2adQJABxjZj4JV8DBCN3kLtlQFfMfnLhPd
9NFxTusGuvY9fM7GrXXKSMuqLwO9ZkxRHNIJsIz2N20Kt76+e1CmzUdS4QJAVvbQ
WKUgHBMRcI2s3PecuOmQspxG+D+UR3kpVBYs9F2aEZIEBuCfLuIW9Mcfd2I2NjyY
4NDSSYp1adAh/pdhVQJBANDrlnodYDu6A+a4YO9otjd+296/T8JpePI/KNxk7N0A
gm7SAhk379I6hr5NXdBbvTedlb1ULrhWV8lpwZ9HW2k=
-----END RSA PRIVATE KEY-----
</key>

There are a couple of other minor edits from the original.
These are not fatal though:-
remote-cert-tls server
auth-nocache

You will need to do this with any and all of the other .ovpn files that you want to include as well.
Then switching the symlink switches the server.

_________________
Oscar in England

Back to top
View user's profile Send private message 
bacteriax


Joined: 06 Feb 2019
Posts: 3

PostPosted: Fri 08 Feb 2019, 19:32    Post subject:
Subject description: A big thanks!
 

OscarTalks,
After creating a vpnbook pl profile with your provided code I was able to connect without a problem.
Thanks very much for your help!
Best,
BX
Back to top
View user's profile Send private message 
AvidHunter

Joined: 09 Feb 2019
Posts: 9

PostPosted: Sat 09 Feb 2019, 03:23    Post subject: VPN-Activator.pet  

I'm having difficulty finding the VPN-Activator.pet, can someone please supply a link. I'm running Xenial Pup if it makes a difference.
Back to top
View user's profile Send private message 
OscarTalks


Joined: 05 Feb 2012
Posts: 1852
Location: London, England

PostPosted: Sat 09 Feb 2019, 07:03    Post subject:  

Hello AvidHunter,

The link to the .pet is in the first post of this thread. You should be able to download it from there, BUT take note that most of the VPNbook .ovpn config files are now expired and will not work.

If downloading fresh VPNbook .ovpn config files from their website, or if using .ovpn files from any other VPN provider, take note that you will need to edit them a bit, at least adding the path /etc/vpnpass to the auth-user-pass line. This is because you have to manually enter the username and password in the file /etc/vpnpass and openvpn has to know to look in that file to find those 2 things.

I would recommend anyone interested in using this VPN implementation should read carefully through all the posts of this thread in order to piece together all the bits of information.

I might try to upload an updated package of the scripts and config files when I get some time. The difficulty is that although the scripts should be OK indefinitely and in any Puppy, the .ovpn config files can go out of date if VPN providers change their servers. Also, the full package requires an openvpn executable and a yad executable renamed as "yad-vpn" (if you want a fully functional tray notification icon) and these need to be compiled for the Puppy you are running them in.

As I say though, I use it myself regularly and for a totally free solution it is rather neat.

_________________
Oscar in England

Back to top
View user's profile Send private message 
AvidHunter

Joined: 09 Feb 2019
Posts: 9

PostPosted: Sun 10 Feb 2019, 03:22    Post subject: VPN-Activator  

Hello OscarTalks

I have read this through a couple times now and am still unable to locate a link to the VPN-activator.pet file. It is mentioned in the first post but the only links that show up are to VPNbook.com and Smokey01.com/OscarTalks. I have also read through that a couple times and am unable to find a link to the file. How am I missing it?

BTW: my intention is to use the Free version of ProtonVPN because it has no logging and no adds (but is evidently crippled on many features). In any case this is my first venture into a VPN service so I obviously have a learning curve to climb so I want to thank you for this thread and all the support you have put into it, I really appreciate it.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 3 [45 Posts]   Goto page: Previous 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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.0756s ][ Queries: 12 (0.0229s) ][ GZIP on ]