r/libreELEC

I've spent the entire day trying unsuccessfully to get a raspberry pi 4b running libreelec 12.2.1 to connect to my Unifi vpn server using the wireguard protocol.

It will report as connected, but the Unifi router shows no active connections, and as soon as I toggle the VPN on through either connmanctl or the kodi gui, all ssh access is nuked and I need to reboot. It will still play over the Wi-Fi or direct connection, just ssh gets nuked, but it always shows the pi's actual network IP and not the VPN vlan's network id.

Away from the computer right now, but I will comment with my downloaded WH config file from the router and the translated file I've used on the libreelec device. I'm sure I've got something wrong there, but I can't figure 6 what it is and I've become exceedingly frustrated with the whole thing. Ended up using an openvpn based connection that I have set up for another project and it's working fine with that. I'm mostly just stubbornly wanting to get wg working, as it will connect directly to my router and not to a third party solution

LibreELEC.config

[provider_wireguard]
Type = WireGuard
Name = Server_Name
Host = [MY_SERVER_IP]   <--- Annoyed that I can't use FQDN here
WireGuard.Address = [IP_ADDRESS_ON_SERVER]/32
WireGuard.ListenPort = 51820
WireGuard.PrivateKey = [PRIVATE_KEY]
WireGuard.PublicKey = [PUBLIC_KEY]
WireGuard.DNS = [DNS_IP_ON_SERVER_SIDE]
WireGuard.AllowedIPs = 0.0.0.0/0
WireGuard.EndpointPort = 51820
WireGuard.PersistentKeepalive = 25

Unifi provided config

[Interface]
PrivateKey = [PRIVATE_KEY]
Address = [IP_ADDRESS_ON_SERVER]/32
DNS = [DNS_IP_ON_SERVER_SIDE]

[Peer]
PublicKey = [PUBLIC_KEY]
AllowedIPs = 0.0.0.0/0
Endpoint = [MY_SERVER_IP]:51821
reddit.com
u/ErnLynM — 12 days ago

Have this issue both on pure Kodi and LibreELEC on my Raspberry 5, so is not an issue strictly for LibreELEC, but the issue I am having is that when I stream over HTTPS from my personal server and I pause the playback and wait for lets say 5 minutes, then resume playback, I can just watch what has already buffered, then it stops media playback and I need to resume playback.

It is not a major issue, but very curious for the reason. Is it that the connection over HTTPS times out or something? Can I solve it somehow?

reddit.com
u/theDo66lerEffect — 9 days ago

I want to be able to control the TV (changing inputs, turning it on and off) by using a keyboard connected to the Raspberry Pi 3b+ that has libreELEC installed on it (I have two LG TVs on the same room and the both remotes turn on both TVs, its a PITA).

So far I have been able to turn off the TV by turning off libreELEC from the shutdown menu, but that means that I have no way of turning on the TV with the keyboard, only by unplugging and plugging the Raspberry's power source.

I've seen that I could send hdmicec commands via ssh, but that seems a bit involved, so the question is, would it be possible to execute said commands via a keyboard press (like, set F1 to change inputs, F2 to turn off/on tv and so on).

Thanks!

reddit.com
u/failed_successfuly9 — 7 days ago