iwi*_*ing 6 networking vpn windows-7 64-bit shrew
我有一台连接到 LAN 的 Windows 7 64 位台式机。
我最近在我的机器上安装了 ShrewSoft VPN 客户端 v 2.1.7,以便我可以连接到我的客户托管的许可证服务器。他们正在运行 Cisco VPN 服务器,我最初尝试(不成功!)将 Cisco VPN 客户端用于 Windows 64 位,但在我的 pcf 文件中加载后,默认网关没有正确配置。使用 ShrewSoft 我能够导入相同的 pcf 文件,并成功连接到我需要使用 VPN 客户端软件的机器。我需要连接的客户端机器的 IP 地址为 1.52.90.33。
问题是,当我使用 VPN 客户端应用程序连接到客户网络时(几分钟后),我失去了 LAN 互联网连接。我只能假设这是因为,默认情况下,ShrewSoft VPN 客户端应用程序会自动通过 VPN 连接隧道传输所有流量。我知道有一个选项可以关闭应用程序策略选项卡上的“全部隧道”选项,并输入远程网络资源(“包括”或“排除”)作为“地址”和“网络掩码”IP 地址,但是我不知道我需要在这里输入什么。
这是我连接到 VPN 之前的 ipconfig 输出(后缀被屏蔽):
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : ***.***
Link-local IPv6 Address . . . . . : fe80::8de3:9dbe:393a:33ba%11
IPv4 Address. . . . . . . . . . . : 150.237.13.17
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 150.237.13.1
Tunnel adapter 6TO4 Adapter:
Connection-specific DNS Suffix . : ***.***
IPv6 Address. . . . . . . . . . . : 2002:96ed:d11::96ed:d11
Default Gateway . . . . . . . . . : 2002:c058:6301::c058:6301
Tunnel adapter Local Area Connection* 9:
Connection-specific DNS Suffix . :
IPv6 Address. . . . . . . . . . . : 2001:0:4137:9e76:2cf9:38c4:6912:f2ee
Link-local IPv6 Address . . . . . : fe80::2cf9:38c4:6912:f2ee%12
Default Gateway . . . . . . . . . :
Tunnel adapter isatap.***.***:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : ***.***
Run Code Online (Sandbox Code Playgroud)
这是我连接到 VPN 之前的路由打印输出:
===========================================================================
Interface List
11...20 cf 30 9d ec 2a ......Realtek RTL8168D/8111D Family PCI-E Gigabit Ethern
et NIC (NDIS 6.20)
1...........................Software Loopback Interface 1
14...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter
12...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
13...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 150.237.13.1 150.237.13.17 2
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
150.237.13.0 255.255.255.0 On-link 150.237.13.17 257
150.237.13.17 255.255.255.255 On-link 150.237.13.17 257
150.237.13.255 255.255.255.255 On-link 150.237.13.17 257
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 150.237.13.17 257
255.255.255.255 255.255.255.255 On-link 12
Run Code Online (Sandbox Code Playgroud)
小智 5
是的,在连接之前,您需要在 Shrewsoft 连接的“名称解析”选项卡中取消勾选“启用 DNS”。然后,连接后,从vpn虚拟适配器中删除指向新获取的ip的路由0.0.0.0。然后手动将路由添加到要通过 vpn 适配器访问的网络。此过程将使您能够在连接到 vpn 时使用默认的 Internet 连接,但您每次都必须这样做。我为我制作了一个批处理文件,我在连接后运行该文件以添加/删除路由。
Windows 批处理文件 ( cmd.exe
) 命令:
route delete 0.0.0.0 mask 0.0.0.0 [your vpn ip]
route add [gateway in vpn network] mask [mask in vpn network] [your vpn ip]
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
29943 次 |
最近记录: |