We have moved to a new Sailfish OS Forum. Please start new discussions there.
2

Is Mullvad VPN working on Sailfish OS? [answered]

asked 2019-09-11 16:14:03 +0200

harbourlights gravatar image

I am using Mullvad on my linux desktop and wanted to extend this to Sailfish OS' native VPN client.

Mullvad supports openVPN, but so far, I haven't been able to make it work. I contacted them and tried various things, but to no avail (I'm a newbie in this field, I'm afraid...)

For Android Mullvad provides a .ovpn file, for Linux I downloaded a folder with a .crt, .conf, an update-resolv-conf and a userpass.txt...

Maybe some of you use this VPN provider and can give me a hint on how to proceed...?

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by Dylan Van Assche
close date 2019-09-12 19:33:15.544568

1 Answer

Sort by » oldest newest most voted
2

answered 2019-09-11 17:02:08 +0200

updated 2019-09-11 17:20:23 +0200

I use Mullvad VPN too on SFOS, I used the default .ovpn config from Android:

Mullvad VPN config

  1. Go to https://mullvad.net/en/download/config/?platform=android and download the configuration you want
  2. Open de .ovpn file on your SFOS device, the Settings app will open with the VPN configuration
  3. Accept the configuration in the Settings app.
  4. Connect to the VPN in the Settings app.
  5. Fill in the credentials: username = account number and password = m
  6. Open the Browser app and go to: https://am.i.mullvad.net
  7. You will notice that your traffic is not going through Mullvad... You need to disable IPv6 for that.

Disabling IPv6

  1. Open the Terminal app or SSH connection
  2. Run: devel-su sysctl -w net.ipv6.conf.default.disable_ipv6=1
  3. Run: devel-su sysctl -w net.ipv6.conf.all.disable_ipv6=1
  4. Restart the Browser app and go again to https://am.i.mullvad.net
  5. Your traffic should be now routed through Mullvad.

This fix is gone after a reboot or network restart from Utilities. If anyone can make this IPv6 fix permanent, that would be great. I haven't been able to do that yet.

edit flag offensive delete publish link more

Comments

Thank you very much for taking the time to reply! This will be very useful for other users as well.

Personally, though, I only came as far as point 4. Upon connecting in the Settings app, I get into a kind of jittering status loop of "Problem with connection" and "Idle", the VPN symbol flickering on Home Screen. Eventually, the VPN icon disappears and the status remains "Idle". I never have the chance to fill in any credentials.

It is hard for me to trawl through the logs for meaningful information, but error messages include, in no particular order:

connmand[987]: Connect reply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. (org.freedesktop.DBus.Error.NoReply)

invoker[4525]: WARNING: An inactive plugin is misbehaving - tried to show a window!

WARNING: requestActivate() called for QQuickView(0x117cf58) which has Qt::WindowDoesNotAcceptFocus set.

connmand[987]: Connect reply: Input/output error (net.connman.Error.Failed)

lipstick[1379]: file:///usr/share/lipstick-jolla-home-qt5/compositor.qml:1344 [W] unknown:1344 - file:///usr/share/lipstick-jolla-home-qt5/compositor.qml:1344: TypeError: Cannot call method 'hasOwnProperty' of undefined

kernel: [21:32:59.392839] [000000B93B85BBD6] [VosMC] wlan: [E :VOS] Country does not map to any Regulatory domain

Maybe someone has an idea on how to proceed?

harbourlights ( 2019-09-13 01:01:22 +0200 )edit

Well I can't reproduce that with my account. When I wrote this answer, I went through every step myself to add another config to my device.

Dylan Van Assche ( 2019-09-13 12:26:50 +0200 )edit

Hello, try this way; import the .ovpn configuration file then open vpn in settings add new vpn select openVPN add new file and use the file previously downloaded This way works; I use Mullvad too and I imported config files that way.

dani77 ( 2019-09-15 01:45:34 +0200 )edit

Thanks for your comments and suggestions! But the problem remains.

Two ideas: Maybe it's device-specific - do you use a Sony XPeria XA2? Because I use an Aqua Fish turned into a Jolla C, and tried your suggestions with another Jolla C'fied Aqua Fish, which had exactly the same problems: Problem with connection, error message loop, no new screen to enter credentials (I even tried an .ovpn file from another region to verify.) And so far, I only tried to connect to the VPN via WiFi - could that be a problem?

In any case, thanks for your help so far!

harbourlights ( 2019-09-17 22:44:22 +0200 )edit

Probably you are right about the device specific problem (probably not device specific but kernel specific). I´m using Sailfish in my Fairphone 2 without problems; even the camera works fine (that was one of the main concerns of the developer of this port). From what I read in the forum, I believe you had problems in the update; couldn´t this be related to the update as well? If you believe it isn´t, try to download the FREE Cryptostorm "test" ovpn and see if the problem remains; if it remains, you should probably consider a fresh install of SFOS.

dani77 ( 2019-09-18 00:54:45 +0200 )edit

Question tools

Follow
1 follower

Stats

Asked: 2019-09-11 16:14:03 +0200

Seen: 862 times

Last updated: Sep 11 '19