Use openvpn with openVPN-Rig

asked 2015-11-26 23:12:35 +0300

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2015-11-27 11:26:12 +0300

lakutalo gravatar image

Hi,

I found another way to use openVPN with Sailfish OS.


1) Download openVPN Rig from here: openVPN-Rig and install the .rpm package.


2) Copy all your files to the phone (in my case: ca.crt, client.crt, client.key, ta.key)


3) Create an openVPN.conf file:

client
remote vpn....
askpass /home/nemo/passw/pas.pass
ca /home/nemo/anyfolder/ca.crt
cert /home/nemo/anyfolder/client.crt
key /home/nemo/anyfolder/client.key
comp-lzo yes
dev tun
proto udp
tls-auth /home/nemo/anyfolder/ta.key 1
nobind
auth-nocache
script-security 2
persist-key
persist-tun
user openvpn
group openvpn
dhcp-option DNS XX.XX.XX.XX
dhcp-option DNS XX.XX.XX.X

3.1) Path /home/nemo/anyfolder/ca.cert -> this is the path were you saved your files.

3.2) askpass /home/nemo/passw/pas.pass -> this is the path to the password, stored in an file. We will create this later.

3.3) dhcp-option DNS XX.XX.XX.XX -> use an open dns

3.4) Copy the file to your jolla -> path: /home/nemo/anyfolder/


4) Create the password file:

4.1) Create a new password file named pas.pass -> insert your password into the file.

4.2) chmod 600 pas.pass (run this on the terminal)

4.3) Copy the file to your jolla. path: /home/nemo/passw/


5) Start the openVPN Rig app on your Jolla and do the configuration for your openVPN. Set all the paths: /home/nemo/anyfolder/ca.cert (for the CA cert ....) For the extra options use the path to your config file: /home/nemo/anyfolder/openVPN.conf

And that's it!

edit retag flag offensive close delete

Comments

Excellent. Many thanks.

richardski ( 2015-11-28 04:23:16 +0300 )edit