I am tearing my hair out, having so far failed to set up a Wireguard connection from my Android client to the OpenWRT server. I have found lots of OpenWRT-specific tutorials and instructions, including the "official" one on the Wiki, but no matter what I try I seem to fail. Also, the instructions are contradictory on several points, both what configuration parameters are optional vs required and on what the values should be. Many instructions are from 2018 or 2019 and I don't know if things have changed since then; both the Luci interface in screenshots are different, and many instructions refer to directories on the file system that don't exist.
Does anyone have "the authoritative guide" for setting this up?
At the moment, this is the non-working setup:
config interface 'WG0' option proto 'wireguard' option listen_port '51820' list addresses '192.168.10.1/24' option private_key '<REDACTED>' config wireguard_WG0 option description 'My Android' option public_key '<REDACTED>' list allowed_ips '192.168.10.2/32' option route_allowed_ips '1' option persistent_keepalive '25' option endpoint_host '<my DDNS address>' option endpoint_port '51820'
config redirect option target 'DNAT' option name 'Wireguard' option src 'wan' option src_dport '51820' option dest 'lan' option dest_port '51820'