I have wireguard server and client configured as follows:
Server:
[Interface]
PrivateKey = <server private key>
Address = 192.168.2.4
ListenPort = 51821
[Peer]
PublicKey = <client public key>
AllowedIPs = 172.20.10.5/32
Client:
[Interface]
PrivateKey = <client private key>
Address = 172.20.10.5
[Peer]
PublicKey = <server public key>
AllowedIPs = 192.168.2.4/32
Endpoint = <Public IP>:51821
PersistentKeepalive = 25
When I start both of them, my client cannot ping any machine in the server's network. In the borowser, the ip is still client's internet IP. When I run wg on client, it shows some data are sent while 0 data received in transfer info.
Is there any obvious error in my configuration? If not, what's a common way to troubleshoot?