首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >不能使用Shrew软VPN启动多个连接

不能使用Shrew软VPN启动多个连接
EN

Server Fault用户
提问于 2019-05-20 17:53:32
回答 1查看 655关注 0票数 1

我在Windows 10上,我使用Shrew软VPN连接到两个VPN服务器。我能够同时连接到两者。ipconfig将显示两个具有预期IP的虚拟适配器。在尝试调试与其中一个VPN服务器断续连接的问题时,我卸载并重新安装了Shrew软VPN。现在我无法同时连接到多个VPN服务器。

如果在已连接到第一个连接时启动第二个连接,则虚拟适配器将显示,但处于断开连接状态(媒体断开连接)。如果从第一个连接断开连接,则ipconfig将显示虚拟适配器,但现在它已连接并具有预期的IP。

我不知道我改变了什么;我所做的只是重新安装客户端。有人见过这个问题吗?或者有一种方法来调试这个问题--有什么我应该研究的吗?

更新

我已经验证了思科AnyConnect网络访问管理器(它是与思科AnyConnect安全移动客户端一起提供的)负责的;它被设计成一次只允许一个连接。当它看到第二个隧道正在建造时,它会介入并切断它。

在连接时,您可以从日志(使用Get-EventLog -LogName "Cisco AnyConnect Network Access Manager")中看到这一点。这里有一些相关的条目。在建立第一条隧道时,一切正常进行:

代码语言:javascript
复制
256940 May 22 08:49  Information NAM     1677728607 5848: USNB5CG85105Y8: May 22 2019 08:49:09.245 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: Binding adapter Shrew Soft Virtual Adapter and machine auth for network wired
256939 May 22 08:49  Information NAM     1677728607 5847: USNB5CG85105Y8: May 22 2019 08:49:09.245 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: Network wired: AccessStateMachine current state = ACCESS_STARTED, received userEvent = ATTACH_ADAPTER
256938 May 22 08:49  Information NAM     1677728607 5846: USNB5CG85105Y8: May 22 2019 08:49:09.235 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: Clear scheduled datagrams for new accepted connections.
256936 May 22 08:49  Information NAM     1677728606 5845: USNB5CG85105Y8: May 22 2019 08:49:09.234 +0700: %NAM-6-INFO_MSG:     %[tid=4856]: matching adapter {367A782C-375C-447C-9963-B0298B9AD093} and network wired ...
256934 May 22 08:49  Information NAM     1677728607 5844: USNB5CG85105Y8: May 22 2019 08:49:09.234 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: Not a user connection attempt during logon
256932 May 22 08:49  Information NAM     1677728607 5843: USNB5CG85105Y8: May 22 2019 08:49:09.234 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: starting makeMatches...
256931 May 22 08:49  Information NAM     1677728607 5842: USNB5CG85105Y8: May 22 2019 08:49:09.234 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: handleEventAndDoStateTransitionAction action : ACTION_DISCONNECT_LINK_CHANGED
256930 May 22 08:49  Information NAM     1677728607 5841: USNB5CG85105Y8: May 22 2019 08:49:09.233 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: ACE: adapter SM state change: STATE_DISCONNECTED_LINK_DOWN -> STATE_DISCONNECTED_LINK_UP
256929 May 22 08:49  Information NAM     1677728607 5840: USNB5CG85105Y8: May 22 2019 08:49:09.233 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: ACE: adapter SM current: state(STATE_DISCONNECTED_LINK_DOWN), event(EVENT_LINK_UP)
256928 May 22 08:49  Information NAM     1677728607 5839: USNB5CG85105Y8: May 22 2019 08:49:09.233 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: AceAdapterImpl::linkUpStatusEvent()
256927 May 22 08:49  Information NAM     1677728607 5838: USNB5CG85105Y8: May 22 2019 08:49:09.233 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: Sending port up status after querying link state
256926 May 22 08:49  Information NAM     1677728607 5837: USNB5CG85105Y8: May 22 2019 08:49:09.233 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: PortUpStatusEventImpl::processEvent()
256925 May 22 08:49  Warning     NAM     2751470428 5836: USNB5CG85105Y8: May 22 2019 08:49:09.233 +0700: %NAM-4-WARNING_MSG:  %[tid=4920][comp=SAE]: NET (0) *WARNING: SscfCallback(3): BSSID OID query failed -- continuing with link event
256921 May 22 08:49  Information NAM     1677728607 5835: USNB5CG85105Y8: May 22 2019 08:49:08.296 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: handleEventAndDoStateTransitionAction action : <unknown>
256920 May 22 08:49  Information NAM     1677728607 5834: USNB5CG85105Y8: May 22 2019 08:49:08.296 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: ACE: adapter SM current: state(STATE_DISCONNECTED_LINK_DOWN), event(EVENT_LINK_DOWN)
256919 May 22 08:49  Information NAM     1677728607 5833: USNB5CG85105Y8: May 22 2019 08:49:08.296 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: Matchmaking for media type mobile-broadband failed because there are no available networks.
256918 May 22 08:49  Information NAM     1677728607 5832: USNB5CG85105Y8: May 22 2019 08:49:08.296 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: Not a user connection attempt during logon
256917 May 22 08:49  Information NAM     1677728607 5831: USNB5CG85105Y8: May 22 2019 08:49:08.296 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: Matchmaking for media type 802.11(wifi) failed because there are no available networks.
256916 May 22 08:49  Information NAM     1677728607 5830: USNB5CG85105Y8: May 22 2019 08:49:08.296 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: Matchmaking for media type 802.11(wifi) failed because there are no available adapters.
256915 May 22 08:49  Information NAM     1677728607 5829: USNB5CG85105Y8: May 22 2019 08:49:08.296 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: Not a user connection attempt during logon
256914 May 22 08:49  Information NAM     1677728607 5828: USNB5CG85105Y8: May 22 2019 08:49:08.296 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: Matchmaking for media type 802.3(wired) failed because there are no available adapters.
256913 May 22 08:49  Information NAM     1677728607 5827: USNB5CG85105Y8: May 22 2019 08:49:08.296 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: starting makeMatches...
256912 May 22 08:49  Information NAM     1677728607 5826: USNB5CG85105Y8: May 22 2019 08:49:08.296 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: handleEventAndDoStateTransitionAction action : <unknown>
256911 May 22 08:49  Information NAM     1677728607 5825: USNB5CG85105Y8: May 22 2019 08:49:08.295 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: ACE: adapter SM current: state(STATE_DISCONNECTED_LINK_DOWN), event(EVENT_AUTH_SUCCESS)
256910 May 22 08:49  Information NAM     1677728607 5824: USNB5CG85105Y8: May 22 2019 08:49:08.295 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: {367A782C-375C-447C-9963-B0298B9AD093} - Received STATE_AUTHENTICATED
256909 May 22 08:49  Information NAM     1677728607 5823: USNB5CG85105Y8: May 22 2019 08:49:08.295 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: handleEventAndDoStateTransitionAction action : <unknown>
256908 May 22 08:49  Information NAM     1677728607 5822: USNB5CG85105Y8: May 22 2019 08:49:08.295 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: ACE: adapter SM current: state(STATE_UNBOUND), event(EVENT_UNBOUND)
256907 May 22 08:49  Information NAM     1677728607 5821: USNB5CG85105Y8: May 22 2019 08:49:08.295 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: {A5264957-D6BB-45A3-BA0B-3605ED773728}: symbolic name unbound
256906 May 22 08:49  Information NAM     1677728606 5820: USNB5CG85105Y8: May 22 2019 08:49:08.295 +0700: %NAM-6-INFO_MSG:     %[tid=4896][mac=1,6,aa:aa:aa:2c:ad:00]: {367A782C-375C-447C-9963-B0298B9AD093}: Port State AUTHENTICATED and status 8021x_FORCED_AUTH
256905 May 22 08:49  Information NAM     1677728606 5819: USNB5CG85105Y8: May 22 2019 08:49:08.295 +0700: %NAM-6-INFO_MSG:     %[tid=4856]: Adapter controlled: {367A782C-375C-447C-9963-B0298B9AD093}
256904 May 22 08:49  Information NAM     1677728607 5818: USNB5CG85105Y8: May 22 2019 08:49:08.294 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: {367A782C-375C-447C-9963-B0298B9AD093}: Calling acPortAttach

建立第二个隧道时,思科AnyConnect NAM将断开它,因为最多允许一个连接:

代码语言:javascript
复制
257106 May 22 08:59  Information NAM     1677728607 5974: USNB5CG85105Y8: May 22 2019 08:59:14.398 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: handleEventAndDoStateTransitionAction action : <unknown>
257105 May 22 08:59  Information NAM     1677728606 5973: USNB5CG85105Y8: May 22 2019 08:59:14.398 +0700: %NAM-6-INFO_MSG:     %[tid=4896][mac=1,6,aa:aa:aa:2c:a2:01]: {A5264957-D6BB-45A3-BA0B-3605ED773728}: Port State UNAUTHENTICATED and status 8021x_FORCED_UNAUTH
257104 May 22 08:59  Information NAM     1677728607 5972: USNB5CG85105Y8: May 22 2019 08:59:14.398 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: ACE: adapter SM current: state(STATE_DISCONNECTED_LINK_UP), event(EVENT_AUTH_FAIL)
257103 May 22 08:59  Information NAM     1677728607 5971: USNB5CG85105Y8: May 22 2019 08:59:14.397 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: {A5264957-D6BB-45A3-BA0B-3605ED773728}: Closing the port
257102 May 22 08:59  Information NAM     1677728607 5970: USNB5CG85105Y8: May 22 2019 08:59:14.397 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: closing adapter (name = Shrew Soft Virtual Adapter #2)
257101 May 22 08:59  Information NAM     1677728607 5969: USNB5CG85105Y8: May 22 2019 08:59:14.397 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: skipping (matched) adapter Shrew Soft Virtual Adapter
257099 May 22 08:59  Information NAM     1677728607 5968: USNB5CG85105Y8: May 22 2019 08:59:14.397 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: {C0D2996D-6BF1-4B40-84E2-AACAAA70FBB8}: Closing the port
257098 May 22 08:59  Information NAM     1677728607 5967: USNB5CG85105Y8: May 22 2019 08:59:14.397 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: closing adapter (name = Intel(R) Ethernet Connection (4) I219-LM)
257096 May 22 08:59  Information NAM     1677728607 5966: USNB5CG85105Y8: May 22 2019 08:59:14.396 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: No matches were made for media type 802.3(wired) because the maximum number of matches had already been made.
257094 May 22 08:59  Information NAM     1677728607 5965: USNB5CG85105Y8: May 22 2019 08:59:14.396 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: starting makeMatches...
257093 May 22 08:59  Information NAM     1677728607 5964: USNB5CG85105Y8: May 22 2019 08:59:14.396 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: handleEventAndDoStateTransitionAction action : ACTION_DISCONNECT_LINK_CHANGED
257092 May 22 08:59  Information NAM     1677728607 5963: USNB5CG85105Y8: May 22 2019 08:59:14.396 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: ACE: adapter SM state change: STATE_DISCONNECTED_LINK_DOWN -> STATE_DISCONNECTED_LINK_UP
257091 May 22 08:59  Information NAM     1677728607 5962: USNB5CG85105Y8: May 22 2019 08:59:14.396 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: ACE: adapter SM current: state(STATE_DISCONNECTED_LINK_DOWN), event(EVENT_LINK_UP)
257090 May 22 08:59  Information NAM     1677728607 5961: USNB5CG85105Y8: May 22 2019 08:59:14.396 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: AceAdapterImpl::linkUpStatusEvent()
257089 May 22 08:59  Information NAM     1677728607 5960: USNB5CG85105Y8: May 22 2019 08:59:14.396 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: Sending port up status after querying link state
257088 May 22 08:59  Information NAM     1677728607 5959: USNB5CG85105Y8: May 22 2019 08:59:14.395 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: PortUpStatusEventImpl::processEvent()
257087 May 22 08:59  Warning     NAM     2751470428 5958: USNB5CG85105Y8: May 22 2019 08:59:14.395 +0700: %NAM-4-WARNING_MSG:  %[tid=4920][comp=SAE]: NET (0) *WARNING: SscfCallback(4): BSSID OID query failed -- continuing with link event
257084 May 22 08:59  Information NAM     1677728607 5957: USNB5CG85105Y8: May 22 2019 08:59:13.463 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: No matches were made for media type 802.3(wired) because the maximum number of matches had already been made.
257082 May 22 08:59  Information NAM     1677728607 5956: USNB5CG85105Y8: May 22 2019 08:59:13.463 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: starting makeMatches...
257081 May 22 08:59  Information NAM     1677728607 5955: USNB5CG85105Y8: May 22 2019 08:59:13.460 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: handleEventAndDoStateTransitionAction action : <unknown>
257080 May 22 08:59  Information NAM     1677728607 5954: USNB5CG85105Y8: May 22 2019 08:59:13.454 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: ACE: adapter SM current: state(STATE_DISCONNECTED_LINK_DOWN), event(EVENT_LINK_DOWN)
257079 May 22 08:59  Information NAM     1677728607 5953: USNB5CG85105Y8: May 22 2019 08:59:13.446 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: handleEventAndDoStateTransitionAction action : <unknown>
257078 May 22 08:59  Information NAM     1677728607 5952: USNB5CG85105Y8: May 22 2019 08:59:13.440 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: ACE: adapter SM current: state(STATE_DISCONNECTED_LINK_DOWN), event(EVENT_AUTH_SUCCESS)
257077 May 22 08:59  Information NAM     1677728607 5951: USNB5CG85105Y8: May 22 2019 08:59:13.434 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: {A5264957-D6BB-45A3-BA0B-3605ED773728} - Received STATE_AUTHENTICATED
257076 May 22 08:59  Information NAM     1677728606 5950: USNB5CG85105Y8: May 22 2019 08:59:13.425 +0700: %NAM-6-INFO_MSG:     %[tid=4856]: Adapter controlled: {A5264957-D6BB-45A3-BA0B-3605ED773728}
257075 May 22 08:59  Information NAM     1677728606 5949: USNB5CG85105Y8: May 22 2019 08:59:13.425 +0700: %NAM-6-INFO_MSG:     %[tid=4896][mac=1,6,aa:aa:aa:2c:a2:01]: {A5264957-D6BB-45A3-BA0B-3605ED773728}: Port State AUTHENTICATED and status 8021x_FORCED_AUTH
257074 May 22 08:59  Information NAM     1677728607 5948: USNB5CG85105Y8: May 22 2019 08:59:13.425 +0700: %NAM-7-DEBUG_MSG:    %[tid=4856]: {A5264957-D6BB-45A3-BA0B-3605ED773728}: Calling acPortAttach

前进的方向是想办法阻止思科NAM管理这些虚拟适配器。

EN

回答 1

Server Fault用户

发布于 2019-05-29 16:41:39

我想出了办法。解决方案是使用nvspbind并禁用虚拟适配器上的思科AnyConnect网络访问管理器筛选器。您需要从admin PowerShell提示符中运行nvspbind。

首先,您需要识别虚拟适配器的名称。我使用以下命令.\nvspbind.exe | Select-String -Pattern "Shrew Soft Virtual Adapter" -Context 0,1完成了这一操作。在我的机器上我有Local Area Connection* 10Local Area Connection* 12

然后,我禁用了Cisco NAM过滤器如下:

  • .\nvspbind.exe /d "Local Area Connection* 10" csco_acnamfd
  • .\nvspbind.exe /d "Local Area Connection* 12" csco_acnamfd

可以通过运行不带任何参数的nvspbind并滚动直到找到连接来验证是否禁用了筛选器。您应该看到如下所示:

代码语言:javascript
复制
{FB3E5E2E-036C-496A-8357-D5631A7961B8}
"vnet"
"Shrew Soft Virtual Adapter"
"Local Area Connection* 10":
  enabled: ms_msclient (Client for Microsoft Networks)
  enabled: ms_server (File and Printer Sharing for Microsoft Networks)
  enabled: ms_wfplwf_upper (WFP 802.3 MAC Layer LightWeight Filter)
  disabled: vms_pp (Hyper-V Extensible Virtual Switch)
  enabled: ms_pacer (QoS Packet Scheduler)
  enabled: ms_tcpip (Internet Protocol Version 4 (TCP/IPv4))
  enabled: ms_lldp (Microsoft LLDP Protocol Driver)
  enabled: ms_netbt (WINS Client(TCP/IP) Protocol)
  enabled: ms_rdma_ndk (Microsoft RDMA - NDK)
  disabled: ms_implat (Microsoft Network Adapter Multiplexor Protocol)
  enabled: ms_tcpip6 (Internet Protocol Version 6 (TCP/IPv6))
  enabled: ms_rspndr (Link-Layer Topology Discovery Responder)
  enabled: ms_pppoe (Point to Point Protocol Over Ethernet)
  enabled: ms_ndisuio (NDIS Usermode I/O Protocol)
  enabled: symc_teefer2 (Symantec Endpoint Protection Firewall)
  enabled: ms_lltdio (Link-Layer Topology Discovery Mapper I/O Driver)
  enabled: ms_netbios (NetBIOS Interface)
  enabled: ms_wfplwf_lower (WFP Native MAC Layer LightWeight Filter)
  enabled: ms_ndiscap (Microsoft NDIS Capture)
  disabled: csco_acnamfd (Cisco AnyConnect Network Access Manager Filter Driver) <--- should be disabled
  enabled: vflt (Shrew Soft Lightweight Filter)

一旦完成,您应该能够在同一时间建立多个隧道。这也解决了我面临的另一个问题,在我通过Shrew软VPN建立了一条隧道之后,Cisco NAM会断断续续地阻止某些路由被添加(这阻止了我到达我想要的主机)。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/968126

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档