View Single Post
Posts: 28 | Thanked: 104 times | Joined on Oct 2010
#1
When browsing the running services with systemctl I noticed that connman-vpn.service was running. So I checked the nemo repository and it contained an openvpn package. Turns out OpenVpn works on the Jolla from the command line! Here's how you can get it working. Note that you need to enable developer mode. This is only for connecting via the command line/terminal.

1) Copy you certificates and OpenVPN profiles to a directory on the phone. Note where that directory is.

2) Install OpenVPN.

Code:
$ devel-su
# pkcon refresh
# pkcon install openvpn
3) Move the resolv updater scripts into place and set execute permissions.

Code:
# cp /usr/share/doc/openvpn-2.2.2/contrib/pull-resolv-conf/* /etc/openvpn/.
# chmod +x /etc/openvpn/client.*
4) Modify your .ovpn config file(s) to point to the resolv updater scripts. In my case I needed to change:
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
to
up /etc/openvpn/client.up
down /etc/openvpn/client.down
Either change the files before you copy them to the phone or use nano on the phone's terminal. See http://talk.maemo.org/showthread.php?t=92036 how to install nano.

5) Change to the directory containing the config files and connect. Replace where indicated with your path and config file name.
Code:
# cd <your directory path>
# openvpn <yourconfig>.ovpn
With the right username/password and configs it should now connect to the vpn.
 

The Following 12 Users Say Thank You to Fawz For This Useful Post: