通过 C# 或 api 检测 VPN
我有一个 win 应用程序,我需要能够帮助解决可能阻止我的应用程序的 VPN 问题。首先,我需要能够判断他们是否有 VPN 或已连接到 VPN。
我看到一篇关于同一问题的旧帖子(7 个月前),但没有明确的内容,所以我很好奇是否有更新的想法或想法。
我想我可以查询系统文件夹中的 VPN 或 cisco 等内容,但是......这似乎有点 hack'ish。
想法还是想法?
I have a win app and I need to be able to help troubleshoot VPN issues that might be blocking my app. First I need to be able to tell if they have VPN or are connected to VPN.
I saw an older post on the same question (7months ago) with nothing definitive so I was curious if there were newer ideas or thoughts.
I suppose I can query the system folders for things like VPN or cisco but... it seems a little hack'ish.
Ideas or thoughts?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
寻找除以太网之外的另一种类型的适配器,列出所有网络连接及其类型,除非它们有 56.6k 调制解调器,如果它们有 PPP 类型的适配器,则强烈表明存在 VPN 隧道。
Look for the presence of another style of adapters besides Ethernet, list all of the network connections and their types, unless they have a 56.6k modem, if they have a PPP style adapter, it would strongly indicate a VPN tunnel.