windows 版本的 WireGuard ,内网测试连接可以,切换到公网映射端口,就连不上。 不知道是配置问题,还是被墙了(服务器在本地)。 配置如下: 服务端配置
[Interface]
PrivateKey = ……
ListenPort = 8072
Address = 192.168.200.200/32
[Peer]
PublicKey = ……
AllowedIPs = 192.168.200.201/32
客户端配置
[Interface]
PrivateKey = ……
Address = 192.168.200.201/32
[Peer]
PublicKey = ……
AllowedIPs = 0.0.0.0/1, 128.0.0.0/1
Endpoint = xxx.xxx.xxx.xxx:18072
公网端口连不上,流量显示只有发,没有收。 日志则是:
Sending handshake initiation to peer 1 (xxx.xxx.xxx.xxx:18072)
……
Handshake for peer 1 (xxx.xxx.xxx.xxx:18072) did not complete after 5 seconds, retrying (try 2)