Hello all,
Trying to configure the Wireguard. Followed this tutorial WireGuard setup [Turris wiki].
The details are below.
I added one peer for the Debian box(1st one) and seems it works within the LAN(don’t have a chance to test from the public).
And added 2nd peer for an Android device, using Android Wireguard, it doesn’t work neither within the LAN nor from the public. From the Android Wireguard logs I see that handshake fails.
‘wg show’ shows only just 1 peer.
/etc/config/network:
config interface ‘wg0’
option proto ‘wireguard’
option private_key ‘PRIVATE_KEY’
option listen_port ‘1234’
list addresses ‘10.0.10.0/24’
config wireguard_wg0
option public_key ‘CLIENT1_PUB_KEY’
option preshared_key ‘PRESHARED_KEY1’
option route_allowed_ips ‘1’
list allowed_ips ‘10.0.10.1/32’
option persistent_keepalive ‘25’
option description ‘client1’
config wireguard_wg1
option public_key ‘CLIENT2_PUB_KEY’
option preshared_key ‘PRESHARED_KEY2’
option route_allowed_ips ‘1’
list allowed_ips ‘10.0.10.1/32’
option persistent_keepalive ‘25’
option description ‘client2’
wg show
interface: wg0
public key: SERVER_PUB_KEY
private key: (hidden)
listening port: 1234
peer: CLIENT1_PUB_KEY
preshared key: (hidden)
allowed ips: 10.0.10.1/32
persistent keepalive: every 25 seconds