I have successfully configured and tested a WireGuard VPN connection from my unRAID server, but would prefer to have connections directly on my OpenWRT router (Raspberry Pi 3B+)
My android device can connect via unRAID, but identical settings will not connect via OpenWRT
(interface name wg0 is common across devices, but port number is different to allow side-by-side connections for testing)
running 'wg showconf wg0
' on unRAID shows:
> [Interface]
> ListenPort = 12345
> PrivateKey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
> [Peer]
> PublicKey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> AllowedIPs = 10.253.0.2/32
> Endpoint = xxx.xxx.xxx.xxx:xxxxx
Running the same command on OpenWRT shows:
> [Interface]
> ListenPort = 1234
> PrivateKey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
but there is no mention of a peer on OpenWRT.
'/etc/config/network
' shows a peer is configured:
> config interface 'wg0'
> option proto 'wireguard'
> option private_key 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
> option listen_port '1234'
> list addresses '192.168.1.1'
>
> config wireguard_wg0
> option route_allowed_ips '1'
> option public_key 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
> option description 'Android'
> list allowed_ips '0.0.0.0/0'
> option persistent_keepalive '25'
I can only guess that I am having connection issues because WireGuard does not show a peer as configured.