Hey Team, I am very close to getting my persistent Wireguard VPN interface up and running on a libreelec 9.2.8 client.
Steps taken so far.
- Block Connman from managing the wg interface
- Use the wg setup rather than Connman
- Use ip link, ip addr and wg setconf to configure the interface in the autostart.sh file
Below is the results of wg when kodi starts. I can ping and telnet the Wireguard Server  
Code
		
					
				LibreELEC:~ # wg
interface: wg0
  public key: (hidden, by me)
  private key: (hidden)
  listening port: 51820
peer: (hidden, by me)
  endpoint: 217.64.114.162:1443
  allowed ips: 0.0.0.0/1, 128.0.0.0/1
  latest handshake: 2 minutes, 11 seconds ago
  transfer: 736 B received, 3.09 KiB sent
  persistent keepalive: every 25 secondsThe route table
Code
		
			Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.0.1     0.0.0.0         UG    0      0        0 eth0
10.13.70.0      *               255.255.255.0   U     0      0        0 wg0
172.17.0.0      *               255.255.0.0     U     0      0        0 docker0
172.18.0.0      *               255.255.0.0     U     0      0        0 br-65330b1f8eae
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
192.168.0.1     *               255.255.255.255 UH    0      0        0 eth0The issue I have is that my route tables look good but I am not sure how to route my traffic over the new wg0 interface. All traffic remains going across the default eth0.
Any ideas how this can be done? I tried "route add" but i dont seem to be able to specify all the details required.  
Any comments or ideas would be greatly appreciated .
 
		 
		
		
	