Wireguard on Sailfish OS: where's the configuration file saved?
May 05, 2025 —
Nico Cartron
As usual, posting it on my blog for me, but it will probably be useful to others: I was (re)configuring Wireguard on my X10iii the other day, cause it stopped working after upgrading to Sailfish OS 5.
I could not find where the configuration was saved, but Peter G. on the Sailfish OS Telegram channel pointed me to:
/home/defaultuser/.local/share/system/privileged/connman-vpn
and indeed it's there:
[root@Xperia10III connman-vpn]# ls -l
total 12
drwx------ 2 root root 4096 Mar 14 09:02 provider_XXX_sailfishos_org
drwx------ 2 root root 4096 Mar 14 09:02 vpn_XXX_sailfishos_org
the provider_XXX_sailfishos_org/settings
file contains everything you've
defined in the SFOS GUI (IP addresses have been hidden by me):
[XXX_sailfishos_org]
Name=Soucelles
Type=wireguard
Host=X.X.X.X
VPN.Domain=sailfishos.org
WireGuard.Address=D.C.B.A/32
WireGuard.DNS=A.B.C.D
WireGuard.PrivateKey=<YOUR CLIENT PRIVATE CLIENT>
WireGuard.PublicKey=<YOUR SERVER PUBLIC KEY>
WireGuard.AllowedIPs=<REMOTE NETWORK>
WireGuard.EndpointPort=<WIREGUARD PORT>
WireGuard.PersistentKeepalive=15
WireGuard.DisableIPv6=false
and the vpn_XXX_sailfishos_org/settings
file itself contains:
[vpn_XXX_sailfishos_org]
Name=Soucelles
SplitRouting=false
AutoConnect=true
Modified=2025-03-14T09:02:04Z
IPv4.method=fixed
IPv4.netmask_prefixlen=32
IPv4.local_address=D.C.B.A
IPv4.gateway=X.X.X.X
IPv6.method=off
IPv6.privacy=disabled
Tags: SailfishOS