我已成功连接到路由器的 VPN 隧道。我正尝试使用 ping 此 LAN 上的服务器ping 192.168.1.113
。返回结果为:
PING 192.168.1.113 (192.168.1.113): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
Request timeout for icmp_seq 4
Request timeout for icmp_seq 5
--- 192.168.1.113 ping statistics ---
5 packets transmitted, 0 packets received, 100.0% packet loss
此服务器已openVPN
开启服务。因此,所有传出请求均通过接口发出tun0
。这是tcpdump
ping 测试期间的情况:
12:29:21.027220 eth0 In ifindex 2 e8:48:b8:e1:57:1a ethertype IPv4 (0x0800), length 104: 10.8.0.6 > 192.168.1.113: ICMP echo request, id 45097, seq 32, length 64
12:29:21.027357 tun0 Out ifindex 1063 ethertype IPv4 (0x0800), length 104: 192.168.1.113 > 10.8.0.6: ICMP echo reply, id 45097, seq 32, length 64
12:29:22.004265 eth0 In ifindex 2 e8:48:b8:e1:57:1a ethertype IPv4 (0x0800), length 104: 10.8.0.6 > 192.168.1.113: ICMP echo request, id 45097, seq 33, length 64
12:29:22.004411 tun0 Out ifindex 1063 ethertype IPv4 (0x0800), length 104: 192.168.1.113 > 10.8.0.6: ICMP echo reply, id 45097, seq 33, length 64
10.8.0.6
是通过VPN隧道ping的机器的ip。
为什么没有收到连接?
更新
正在关掉openVPN
服务器上的服务正确路由数据包。
当服务器正在运行客户端服务时,我需要在路由表中添加一些内容才能远程连接到服务器openVPN
?