我目前无法设置 VPN 连接。我希望通过 VPN 获得与 VPN 相关的所有流量,并通过普通 LAN 连接获得所有其他流量(LAN 相关和互联网)。
我的网络如下所示:
- 192.168.1.0-我的本地局域网
- 192.168.1.1-我的路由器
- 192.168.1.2-我的电脑
- 192.168.5.0-VPN 网络
- 192.168.5.254-VPN网关
- 78.192.abc.xy - 我的 VPN 服务器
以下是我的路线设置方式:路线打印
===========================================================================
Interface List
14...00 ff 9c 77 1b 09 ......TAP-Windows Adapter V9
10...00 1e 8c 2d 78 bb ......Realtek RTL8168C(P)/8111C(P) Family PCI-E Gigabit Ethernet NIC (NDIS 6.20)
1...........................Software Loopback Interface 1
11...00 00 00 00 00 00 00 e0 Carte Microsoft ISATAP
12...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
15...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
===========================================================================
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.2 30
78.192.abc.xy 255.255.255.255 192.168.1.1 192.168.1.2 21
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
192.168.1.0 255.255.255.0 192.168.1.1 192.168.1.2 30
192.168.1.2 255.255.255.255 On-link 192.168.1.2 276
192.168.5.0 255.255.255.0 192.168.5.254 192.168.5.25 21
192.168.5.25 255.255.255.255 On-link 192.168.5.25 276
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 192.168.1.2 276
224.0.0.0 240.0.0.0 On-link 192.168.5.25 276
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 192.168.1.2 276
255.255.255.255 255.255.255.255 On-link 192.168.5.25 276
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
192.168.0.0 255.255.255.255 192.168.27.65 2
78.192.abc.xy 255.255.255.255 192.168.1.1 1
0.0.0.0 0.0.0.0 192.168.1.1 10
===========================================================================
当 tracert 192.168.5.30 时,我发现它仍然使用 192.168.1.1(我的局域网)来尝试获取它。有人能帮我找到这些路线吗?谢谢。
答案1
我终于让它工作了
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.2 21
78.192.abc.xy 255.255.255.255 192.168.1.1 192.168.1.2 21
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
192.168.1.0 255.255.255.0 On-link 192.168.1.2 276
192.168.1.2 255.255.255.255 On-link 192.168.1.2 276
192.168.1.255 255.255.255.255 On-link 192.168.1.2 276
192.168.5.0 255.255.255.0 On-link 192.168.5.5 276
192.168.5.5 255.255.255.255 On-link 192.168.5.5 276
192.168.5.255 255.255.255.255 On-link 192.168.5.5 276
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 192.168.1.2 276
224.0.0.0 240.0.0.0 On-link 192.168.5.5 276
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 192.168.1.2 276
255.255.255.255 255.255.255.255 On-link 192.168.5.5 276
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
78.192.abc.xy 255.255.255.255 192.168.1.1 1
0.0.0.0 0.0.0.0 192.168.1.1 1
===========================================================================