WireGuard for Sailfish (Settings UI)

Rating: 
5
Your rating: None Average: 5 (5 votes)

This is a VPN plugin for Sailfish OS settings app. It allows configuring and using WireGuard using the userspace implementation (which will be installed as a dependency).

This is very basic at the moment but it supports the basic use case of connecting to a WireGuard VPN consisting of a single peer.

Source: https://github.com/javitonino/jolla-settings-networking-plugin-vpn-wireg...

Screenshots: 

Keywords:

Changelog: 

- Support preshared keys

Comments

Termitebug's picture

More wierdness. Last WG update broke Phone ofono so that callers can't hear each other. Uninstalled all WG packages and the problem got fixed. It might be a single issue.

pagis's picture

Well i realised that a config file with multiple allowed ip separated by comma space cannot be imported. I had to use a single ip address to import the config successfully, and then edit the configuration by adding a second allowed ip address.

javitonino's picture

Hi,

Happy to see it works for you even if with some workarounds.

My test files with multiple allowed IPs imports fine. I tried to replicate it and the best I could get is try to import after updating the package but before restarting the connman vpn daemon.

Anyway, if this is still happening for you and can replicate it, I'd appreciate a configuration file sample to try to fix it.

Thanks!

pagis's picture

Perfect! It works now ok, thank you so much!

pagis's picture

Thanks for porting wireguard. I noticed an issue importing a config file. If AllowedIP has multiple range of addresses separated by , and space it fails to connect, if there is no space it connects, but still i was not able to communicate properly although the vpn interface seems to be up.

javitonino's picture

Hi,

This plugin did not support multiple AllowedIPs. It worked (kind of) but did not set up routed for it. I just uploaded a new version that should do this automatically (like wg-quick does). After updating, you'll need to restart connman vpn ( `systemctl restart connman-vpn`) for the new version of the plugin to be loaded.

Let's see if this works :)

carve8885's picture

Hello javitonino, I am so grateful, that you engage yourself into developing wireguard configuration for SFOS! But let me please give a feedback as amullvad customer: I can import now a config file, but it is not possible to connect. If I delete manually the given ipv6 allowed server, a connection can be established, BUT it uses ipv6 of the actual ISP, not mullvads. And the test site <https://mullvad.net/de/check/> tells me, I am not secured by mullvad. This is different to the openvpn config. Are users here around who can give me advice? Thank you.

javitonino's picture

Hi and thanks for your kind words.

This addon is not yet tested with IPv6, and it's probably not compatible yet. You mentioned that you had to change some IPv6 addresses, so that's probably the problem.

Do you mind sharing your config file (blanking the keys), either here or on GitHub? It would be helpful to have a test case for this. Thanks!

eson's picture

Thanks! Great job!

Termitebug's picture

I encountered an install problem with XA2.

Error: Libc.so.6 dependency is missing.
Piece_Maker's picture

When I try to import a config the settings panel crashes out it seems - is there an easy way to import a .conf via CLI and have them show up in the settings panel?

javitonino's picture

I just released 0.2 which should be able to import more files than previously and when it cannot, report the error instead of crashing. Let me know if it doesn't work for you.

Piece_Maker's picture

Yep import works fine now after 0.2 update, thanks!

javitonino's picture

I don't think there is an easy way to import from the CLI. There could be a way using connmanctl, but we'd need the importer to be able to generate a proper connmanctl command anyway.

Right now, you can maybe skip the import and add the values manually (although it's pretty cumbersome). Meanwhile, I'm gathering reports of failed config imports here: https://github.com/javitonino/jolla-settings-networking-plugin-vpn-wireg... in order to fix the errors.

eson's picture

Yes, it happens to me to. Settings app crashes when I hit the accept button.