Posts by Doemela

    Extremely useful addon, thanks!

    I wonder if make one small feature request: Custom DNS IP setting, similar to what official the Mullvad client has. I know there are some potential privacy/security implications there, but it would come in very useful to be able to resolve LAN hostnames.

    Thanks for the suggestion — and glad the addon is useful!


    After looking into it, I've decided not to add DNS content-blocking (ad/tracker/malware blocklists) to the addon.

    Reasons:

    1. The addon's job is tunnel management, not DNS filtering. Adding

    blocklist handling would mean shipping and regularly refreshing

    large domain lists on constrained embedded devices, with little

    room for users to fine-tune them — a half-baked duplicate of

    tools that already do this properly.


    2. LibreELEC 13 (Piers) now ships browser add-ons (Chromium, Firefox,

    Brave/Chrome) as flatpak-based Programs add-ons. Anyone who wants

    ad/tracker blocking while browsing can run a browser with a proper

    blocker extension, which is a far better experience than DNS-level

    filtering on the device anyway.


    For the original request (resolving LAN hostnames through the

    tunnel): that remains under consideration, since it's a genuine

    networking concern that a browser can't solve. No promises on

    timing, but it hasn't been dropped.


    Salute,

    Doemela.

    skinnyviking I don't have a legacy (pre-16-digit) Mullvad account myself, so I'd appreciate it if you — or anyone with an old short account number — could test v1.6.0 https://github.com/BrodjagaRatnik…-1.6.0~beta.zip:

    1. Install the updated add-on (zip install).
    2. Import your Mullvad account file (or enter the number manually in settings).
    3. Let the add-on generate the WireGuard configs and try to connect.
    4. Report back whether the import is accepted and whether the generated profiles connect.

    Note: whether Mullvad's backend accepts the old number for config generation is the key thing to verify —
    the import check is only the first gate. Please post your Kodi log excerpt (debug) if the generation step still fails after a successful import.

    1. Enable debugging in Settings --> System Settings --> Logging

    2. copy and paste the following into SSH:

    Shell session
    grep -i "service.wireguard.manager" /storage/.kodi/temp/kodi.log | pastebinit

    3. And post that URL here.


    Cheers,
    Doemela.

    Hi!

    Glad you like the addon — and thanks for the kind words.

    You've hit a known quirk: Mullvad switched to 16-digit account numbers years ago (for brute-force resistance), but accounts created before that switch have shorter numbers (10-13 digits), and those are still perfectly valid at Mullvad. Our addon currently enforces exactly 16 digits on import, which is why your 11-digit account gets rejected with "wrong 16 digit account number".

    Two things worth knowing:

    1. You do NOT need to let your account expire. Mullvad support can transfer your remaining paid time to a freshly generated 16-digit account. Just email [email protected] (or https://www.mullvad.net/help/contact/) and ask them to move the time from your old account to a new one. Then all your devices just log in with the new number.

    2. The next version of WireGuard Manager will relax the validation to accept legacy account numbers in the 11-16 digit range, with a warning that Mullvad themselves recommend migrating to a new 16-digit account. So you'll be able to import your existing account directly without jumping through hoops.

    As for the downloaded WireGuard config files failing to connect: that's very likely a side effect of the account never having been properly saved/applied, since the addon rejected it during setup. Once your account is accepted (either via the new number from support, or the relaxed validation in the next build), try re-downloading/generating the Mullvad WireGuard configs and importing those — if they still fail after that, let me know and we'll dig into it.

    Cheers,
    Doemela.

    I can confirm all three points on LE 13 nightlies, and this is not a config error on your side. Notes per point:

    1) Routing
    The WireGuard provisioned service sorts above eth/wlan as the newest ConnMan service and
    takes over the default route, and the teardown path doesn't reliably restore it while the
    endpoint /32 route is left behind. Same class of behaviour has been reported for years,
    so it's longstanding ConnMan behaviour, not a regression in recent nightlies.

    The practical fix is to never enter that fight at all: instead of

    WireGuard.AllowedIPs = 0.0.0.0/0 use

    WireGuard.AllowedIPs = 0.0.0.0/1, 128.0.0.0/1

    By Longest Prefix Match the two /1 buckets cover the entire IPv4 space but never touch the
    eth0 default route, so ConnMan's routing logic stays intact: no route to remove on
    connect, nothing to restore (or fail to restore) on disconnect, and local /24 LAN
    traffic (Samba, SSH) still beats the /1s by definition. Full write-up here:

    WireGuard Dual Bucket Routing Optimization
    Multi-Provider WireGuard VPN Manager for LibreELEC (NordVPN, PIA, Mullvad, Proton, Custom) - BrodjagaRatnik/service.wireguard.manager
    github.com

    2) DNS
    Confirmed. ConnMan concatenates nameservers per service with no precedence control, so
    the original resolver stays first and queries leak past the tunnel. Note LE deliberately
    doesn't run ConnMan's built-in DNS proxy (127.0.0.1), because Kodi's GUI would then show
    that as "the system DNS" and generate misleading support reports. The ResolvConf=/dev/null
    option from the man page works but then nothing ever updates resolv.conf, which defeats
    the purpose on DHCP. The robust fix is enforcement at the firewall instead of resolver
    order, e.g. while the tunnel is up:

    Shell session
    iptables -I OUTPUT ! -o wg0 -p udp --dport 53 -j REJECT
    iptables -I OUTPUT ! -o wg0 -p tcp --dport 53 -j REJECT

    Note — real-world leak verification:
    A geo-restricted BBC iPlayer stream is effectively the best canary you have. iPlayer checks
    both the connection IP and (typically) DNS origin; if even one resolver or one IPv6 route
    bypassed the tunnel, you would hit the geo-wall instead of streaming. Streaming successfully
    means end-to-end correctness: DNS goes through the tunnel, traffic goes through the tunnel,
    and there is no native IPv6 path circumventing it. Combined with the provider's own leak
    test (which audits both IPv4 and IPv6 resolvers), this is double evidence that the setup
    does not leak — practical confirmation beyond what resolv.conf inspection alone shows.

    3) Split DNS
    Correct — ConnMan has nothing comparable to systemd-resolved or dnsmasq split-DNS, and
    LE ships neither. Your two options are indeed leaks, or lose local name resolution while
    the tunnel is up.

    Point 1 and 2 are worth reporting upstream at [email protected], ideally with
    `ip route show table all` and resolv.conf before/after connect/disconnect.


    If anyone runs into the same issue, the WireGuard Manager addon for LibreELEC

    https://github.com/BrodjagaRatnik/service.wireguard.manager already works around

    these behaviours, and a firewall-enforced killswitch for the DNS side.

    Good catch — both keys do the same thing, just different generations of

    ConnMan config:

    Code
      EnableOnlineCheck = false      <- legacy boolean (deprecated)
      OnlineCheckMode = none         <- modern replacement

    Per connman.conf(5), OnlineCheckMode "supercedes and deprecates"

    EnableOnlineCheck, with possible values none / one-shot / continuous

    (default: one-shot). So EnableOnlineCheck = false is effectively

    OnlineCheckMode = none, and both stop the HTTP reachability probing that

    triggers the leak.


    Worth being explicit though: disabling the online check doesn't fix the

    underlying leak, it just removes the trigger. The fd leak itself is in

    plugins/wifi.c interface_removed() — it needs the upstream patch

    (currently under review on the connman mailing list) to actually be fixed.

    The config workaround just stops the retry loop from ever starting, which

    is why it holds up in practice.


    The extra keys in my config (empty OnlineCheckIPv4URL/IPv6URL/OnlineCheckURL,

    OnlineCheckInterval = 0) are belt-and-braces against the WPAD/PAC path in

    1.45, where a failed check switches to proxy auto-discovery and never falls

    back to a direct request. That's the path producing the "no valid proxy"

    retry storm. With OnlineCheckMode = none it shouldn't get there anyway.


    One clarification on the timeline: this is not a LibreELEC issue to fix.

    The patch is awaiting merge upstream in ConnMan itself. From there it

    flows into distro releases (incl. LibreELEC builds) automatically.


    Full write-up incl. the patch and verification data:

    Upstream ConnMan FD Leak & Automated Mitigation Guide
    Multi-Provider WireGuard VPN Manager for LibreELEC (NordVPN, PIA, Mullvad, Proton, Custom) - BrodjagaRatnik/service.wireguard.manager
    github.com

    Good to hear you got it sorted, and thanks for confirming the cause.

    For what it's worth: this matches what lsusb -t -v was hinting at — the Flirc

    was sitting behind a hub that also carried a mouse and a Bluetooth keyboard,

    so all three shared the same upstream channel and power budget. That kind of

    setup can work fine for months and then break after a firmware/kernel update,

    because even a small change in USB enumeration timing or power draw on the

    hub can upset a HID-only device like the Flirc.


    Two suggestions if you want to close this out properly:

    1. To confirm the hub is really the culprit, plug the Flirc back into the hub

    and reboot a few times — if the problem returns, you've reproduced it.

    2. If you'd rather keep everything on the hub, try an externally powered one,

    or at least one that doesn't share its port with two other devices.


    Either way, your workaround (Flirc directly on the Pi, peripherals on the hub)

    is perfectly valid — that's how I'd leave it too.

    v1.5.7 (27-10-2026) — Auto-converter for standard WireGuard configs

    Hi all, New version is out with one major upgrade:

    1. Auto-converter for standard WireGuard configs

    Downloading a `.conf` file from your provider in the standard `[Interface]/[Peer]` layout? It now works straight out of the box. The add-on translates it to the ConnMan format automatically, no manual reformatting needed.

    2. IPv4/IPv6 endpoint splitting

    Endpoint addresses (`193.148.18.82:51820`) are automatically split into `Host` + `WireGuard.EndpointPort`, including IPv6 bracket format (`[addr]:port`).

    3. Defaults only when missing

    `ListenPort = 51820` and `MTU = 1420` are only added when the provider omits them. Explicit values in the config are always preserved.

    4. [provider_wireguard] files stay byte-identical

    Hand-made files and existing ConnMan configs are never modified.

    5. Logging outside Kodi fixed

    NameError in provider logging has been resolved.

    Wiki updates:

    Importing ProtonVPN via Custom Mode

    How-To Importing Custom WireGuard Configuration

    Note: Some providers include IPv6 addresses in Address/DNS. If you want to avoid IPv6 to prevent leaking, remove the `2a...:` parts from those lines manually after import.


    Salute!

    Doemela

    "Host" is the machine ip that the Wireguard service is running on or the ip address of the vpn provider?

    Read https://github.com/BrodjagaRatnik…via-Custom-Mode

    Endpoint = 193.148.18.82:51820 in the generated wireguard conf file from the provider... becomes Host = 193.148.18.82 without the endpoint :51820

    This example is all you need to connect.

    Don’t assume that AI has the answer to your problem; generally speaking, AI gets it wrong and offers options that are completely off the mark. It’s based on what it’s gathered from the internet, and there’s so much data online that’s utter nonsense.

    And even if you want to report a ‘bug’, you’ll need to provide detailed information about it so that the error(s) can be rectified. That’s why I asked you to use the command lsusb -t -v to see which USB port you’re using for what, as USB ports share the same main channels. So the location could be a possible cause.

    Salute.

    Well, that's not an RPi5 issue, but a problem with LE13.

    Since we were talking about the nightly builds here, it's possible that someone might know something about it. Something must have changed in LE13 if it works in LE12.

    If you want people to help you, you do need to provide the necessary information. Run this in SSH:

    Shell session
    lsusb -t -v

    How to post a log (wiki)

    1. Enable debugging in Settings>System Settings>Logging
    2. Restart Kodi
    3. Replicate the problem
    4. Generate a log URL (do not post/upload logs to the forum)
    5. Use "Settings > LibreELEC > System > Paste system logs" or run "pastekodi" over SSH, then post the URL link here


    Salute.

    To change the NTP server using the LibreELEC user interface, you need to use the LibreELEC Settings Add-on inside Kodi. Here are the step-by-step instructions:

    1. Open LibreELEC Settings:
      • From the Kodi main menu, navigate to Settings (the gear icon at the top left).
      • Click on LibreELEC (usually located at the bottom or under the system category).
    2. Navigate to the Network Tab:
      • Scroll down the left-hand menu and select Network.
    3. Change the Timeserver:
      • On the right side, scroll down to the Network Services section.
      • Click on Timeserver #1 (or Timeserver #2/3 if you want backups).
      • A virtual keyboard will pop up.
      • You will see three slots available:
        1. Timeserver #1: 0.pool.ntp.org (or pool.ntp.org)
        2. Timeserver #2: 1.pool.ntp.org
        3. Timeserver #3: 2.pool.ntp.org
      • Click OK or Done.
    4. Save and Apply:
      • The system will automatically save the changes and attempt to sync the time using the new server.

    Salute.

    Hello rivmar

    I can see the issue you're encountering. The error curl: (60) SSL certificate problem: certificate is not yet valid indicates that your LibreELEC device's system clock is likely incorrect (set to a date in the past), causing pastebinit (which uses curl) to fail when trying to verify the SSL certificate of the paste service.

    Here is how to fix this and successfully get your log URL:

    LibreELEC devices often lose time if they don't have NTP configured correctly.

    1. Connect via SSH to your LibreELEC device.
    2. Run the following command to check the current time:

      Shell session
      date
    3. If the date shown is in the past, this confirms the issue.
    4. Adjust the date/time to match your actual current time forcing an NTP sync:
    Shell session
    ntpd -q -p pool.ntp.org

    Once the time is corrected, try running the grep command again:

    Shell session
    grep -i "service.wireguard.manager" /storage/.kodi/temp/kodi.log | pastebinit

    Let me know if fixing the time resolves the pastebinit error, or feel free to do this:

    Shell session
    cat ~/.kodi/temp/kodi.log | grep -iE "service.wireguard.manager" | nc termbin.com 9999

    Termbin does not use HTTPS — it runs over a plain TCP connection on port 9999 via netcat. Therefore, no SSL certificate verification is required, which completely bypasses the error ‘curl: (60) certificate is not yet valid’. The error message “certificate is not yet valid” almost certainly indicates that the system clock on the device is incorrect. This doesn’t matter for Termbin, but it’s still a good idea to check it using the `date` command, as an incorrect clock can also cause problems with other HTTPS connections.

    Salute.

    Hi, I have Librelec and installed Wireguard Manager 1.5.3. I'd like to activate it with Proton. I downloaded the file .conf and renamed it .config. I added it to IMPORT Config. Everything is fine. When I click on Wireguard, it tries to connect but fails. This is the file:

    Can someone help me understand what I'm doing wrong? Thanks in advance.

    Try this config:

    I need to see the log if it still fails. To post logs to this forum, copy and paste the following into SSH:

    Shell session
    grep -i "service.wireguard.manager" /storage/.kodi/temp/kodi.log | pastebinit

    And post that URL here. How to post a log (wiki)

    1. Enable debugging in Settings>System Settings>Logging
    2. Restart Kodi
    3. Replicate the problem
    4. Generate a log URL (do not post/upload logs to the forum)
    5. Use "Settings > LibreELEC > System > Paste system logs" or run "pastekodi" over SSH, then post the URL link

    Also read our wiki https://github.com/BrodjagaRatnik…rd.manager/wiki

    Salute.

    Ahem. I vaguely recall this issue during early beta tests or am I dreaming it?;)

    Could be, at boot connman-vpnd caught PIA wireguard config file mid-write ("does not contain any configuration that can be provisioned!"), creating a half-second window where both the addon and the LibreELEC settings service were racing for connman resources. On some specific hardware that window caused the permanent hang.

    Two fixes are now in place for next v1.5.4:

    1. Cold boot connect gate — automatic VPN provisioning waits for a platform-specific settle time after service start before triggering the connection. This removes the startup overlap entirely.
    2. Atomic config writes (PIA only) — WireGuard configs are now written via temp-file + atomic rename. connman-vpnd will never see a truncated/empty file again, eliminating the "not provisionable" error.

    Heads up for anyone whose LibreELEC Configuration menu stops working after a reboot with this addon and an always-on VPN connection: it's a timing collision at boot between the addon's cold boot connect and the LibreELEC settings service. Restarting Kodi works around it. I've opened a GitHub issue with the details, logs, and a one-line fix that has been working for me:
    https://github.com/BrodjagaRatnik…anager/issues/9

    I've reviewed the submitted timelines against the actual code paths in `service_launcher.py` and `vpn_connector.py`, and they don't hold up — e.g. the "before" log shows only 24 ms between "Cold boot detected" and "PIA route detected", a window that must contain a full ping subprocess, SID resolution, and a lock-file fsync. That's not physically possible, and the same impossible residual appears in the after-fix log. Full analysis and the follow-up requirements are in the GitHub issue: https://github.com/BrodjagaRatnik…anager/issues/9

    "Heads up for anyone whose LibreELEC Configuration menu stops working after a reboot with this addon and an always-on VPN connection:"

    There is also no code path that could cause it. The addon never touches `service.libreelec.settings` — it neither stops, disables, nor communicates with it. The only system components it interacts with are ConnMan (`systemctl restart connman`, and only during initial setup, not at boot) and kernel network state (routing, IPv6, resolv.conf). The settings service talks to ConnMan over DBus.

    Salute.

    In the v7 submission everything below the first paragraph should have been placed under the --- separator so that it is visible to reviewers but not merged into the codebase along with the description.

    I normally place things above --- during development so that testing commentary is easily edited and not forgotten, but then you need to remember to tweak the final patch files before sending to move the --- above it.

    Ty v8 submitted with the commentary moved below the separator.