You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

WireGuard隧道环境下ICMP Echo Reply无法返回的问题求助

WireGuard隧道环境下ICMP Echo Reply无法返回的问题求助

大家好,我刚在带公网IP的OPNsense防火墙上搭建好了WireGuard实例,是按照官方的Road Warrior配置指南完成的。

现在我遇到了一个棘手的问题:从连接到WireGuard VPN的客户端电脑,ping局域网内的主机时,ICMP Echo Reply无法通过VPN隧道返回。

目前我的网络环境里有三台设备:

  • OPNsense防火墙,LAN网段IP为10.5.1.1
  • Ubuntu服务器,LAN内IP为10.5.1.10
  • 我的客户端电脑,通过WireGuard分配的VPN IP为10.5.20.3

我做了几个测试:

  • 直接用OPNsense防火墙pingUbuntu服务器,能正常收到响应;
  • 用我的VPN客户端电脑pingUbuntu服务器,完全收不到回复。

之后我在Ubuntu服务器上执行了命令:tcpdump -i any "icmp",结果看到客户端电脑发的ICMP Echo Request确实已经到达服务器,但服务器没有发送对应的Echo Reply。

服务器的tcpdump输出片段如下:

18:33:...

备注:内容来源于stack exchange,提问作者Seth Buchanan

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.16 12:59:52