Wireguard config for LibreELEC 9.2.1

  • Hi all,

    I'm looking to better understand how to configure a Wireguard vpn client on a RPi4 running LibreELEC 9.2.1.

    I've created a wg0.conf file in ~/.config/wireguard, but when I run wg setconf wg0 ~/.config/wireguard/wg0.conf I'm hit with

    Code
    Line unrecognized: `Address=xx.xx.xx.x/24'
    
    Configuration parsing error

    This is my wg0.conf:

    Code
    [Interface]
    PrivateKey = <private>
    Address = xxx.xxx.xxx.xxx/24 
    DNS =  xxx.xxx.xxx.xxx 
    
    [Peer]
    PublicKey = <private>
    PresharedKey = <private>
    AllowedIPs = 0.0.0.0/0,::/0
    Endpoint = xxx.xxx.xxx.xxx:51820

    My questions:

    - Is the .conf structure different for wg than for wg-quick? I'm using the .conf generated by my Algo wireguard server, but maybe I have to change something about the .conf file.


    - Is there a better way to manage these settings, possibly from within the LibreELEC/Kodi graphical interface?


    Thanks in advance for any help - your time is much appreciated.

  • Hi ,

    Maybe a noob question, but...

    Imm trying to use wireguard via cryptostorm free.

    I did the registration of my public key in ther site and mounted a wireguard.config file as described but when I tryto connect it's showing a message: input/outpu error..

    My .config file

    [provider_wireguard]

    Type = WireGuard

    Name = WireGuard Tunnel

    Host = 209.58.147.37

    WireGuard.Address = 10.10.70.153 "/24" (iI used with and without /24

    WireGuard.ListenPort = 51820

    WireGuard.PrivateKey = my private

    WireGuard.PublicKey = alFzGcAv99Mzjr7kRmoD8Mk8qgZ8HMtCNJPJRAOrL58=

    WireGuard.PresharedKey = qrZ3+Jp0y2+eYlOE0heVBfFzcHhuWJ31Y5UF/mHQLRA=

    WireGuard.DNS = 10.31.33.7

    WireGuard.AllowedIPs = 0.0.0.0/0

    WireGuard.EndpointPort = cryptofree.cstorm.is:443 or dallas.cstorm.is:443 or only 443

    WireGuard.PersistentKeepalive = 25

    Whera Imm worng?

  • WireGuard.DNS also looks suspicious since 10.x.x.x is a private address; this is normally an external address like 8.8.8.8, 8.8.4.4 (Google)

  • Hi,

    Thank you chewitt.

    It"s connected now,but doesn't working. I,'ve also tryed DNS = 8.8.8.8, 10.31.33.7, but no response.

    I'm frustated.

    There is any vpn free and decent service for test without registration? I'm not convinced to create accounts everywhere.

    Thks and happy new year!