WireGuard Client service up in four steps with entware

Using a wireguard client in LibreELEC/CoreELEC with connman native services and with a DDNS server can cause a terrible headache because it only supports static IP addresses. In CoreELEC it is very easy to do this in the following way using entware:

1.- Install entware, command: installentware

2.- Install software-wireguard, commands:

opkg install wg-quick
opkg install wireguard-tools
opkg install wireguard-go

3.- Create wg0 as file /opt/etc/wireguard/wg0.conf with the content similar to this:

Address = # local-ip-of-wg-interface
PrivateKey = ... # private-key
ListenPort = 51820 # wg-port

PublicKey = ... # public-key
Endpoint = <dynamic-dns-of-server>:51820
AllowedIPs =, # instead of

4.- Start the wireguard service with the command: /opt/bin/wg-quick up wg0

Note.- If you don’t want to redirect all traffic to wireguard interface and want to keep the default route, then you can use AllowedIPs =, where is the wireguard subnet

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.