Hello! I have WG server with this config:
[Interface]
Address = 10.0.1.1/24
ListenPort = 51821
PrivateKey = [REDACTED]
[Peer]
PublicKey = [REDACTED]
PresharedKey = [REDACTED]
AllowedIPs = 10.0.1.2/32
When I try to ping I am getting this errors:
PING 10.0.1.2 (10.0.1.2) 56(84) bytes of data.
From 10.0.1.1 icmp_seq=1 Destination Host Unreachable
ping: sendmsg: Destination address required
From 10.0.1.1 icmp_seq=2 Destination Host Unreachable
ping: sendmsg: Destination address required
From 10.0.1.1 icmp_seq=3 Destination Host Unreachable
ping: sendmsg: Destination address required
How to fix it? This is nopt server connection issue otherwise I just wouldn’t receive ping responses.
Your peer have no endpoint configured so the client needs to connect to the server first for it to know where the client is. Try from the client, and it’ll work for a bit both ways.
You’ll want the persistent keepalive option on the client side to keep the tunnel alive.
This is server config
Yeah, and you’re pinging from server to client with no client connected. Ping from the client first to open the connection, or set keep alives on the client.