VpnHood.Net.VpnAdapters.WinDivert
9.1.880
dotnet add package VpnHood.Net.VpnAdapters.WinDivert --version 9.1.880
NuGet\Install-Package VpnHood.Net.VpnAdapters.WinDivert -Version 9.1.880
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="VpnHood.Net.VpnAdapters.WinDivert" Version="9.1.880" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="VpnHood.Net.VpnAdapters.WinDivert" Version="9.1.880" />
<PackageReference Include="VpnHood.Net.VpnAdapters.WinDivert" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add VpnHood.Net.VpnAdapters.WinDivert --version 9.1.880
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: VpnHood.Net.VpnAdapters.WinDivert, 9.1.880"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package VpnHood.Net.VpnAdapters.WinDivert@9.1.880
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=VpnHood.Net.VpnAdapters.WinDivert&version=9.1.880
#tool nuget:?package=VpnHood.Net.VpnAdapters.WinDivert&version=9.1.880
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
VpnHood.Net.VpnAdapters.WinDivert
A Windows VPN adapter of VpnHood on WinDivert,
a packet capture driver, for tests and debugging. It has no interface of its own: it takes the host's outbound
packets to the routed networks before they leave, and puts the VPN's packets back in as inbound. It implements
VpnHood.Net.VpnAdapters.Abstractions; a Windows app runs on VpnHood.Net.VpnAdapters.WinTun.
dotnet add package VpnHood.Net.VpnAdapters.WinDivert
How it works
WinDivertVpnAdapteris anIVpnAdapter: make it with aWinDivertVpnAdapterSettingsand use it as the Abstractions quick start usesNullVpnAdapter, except that it writes no packet before it has captured one.- A captured packet's source becomes the adapter's virtual address of its IP version, if it has one; a packet the VPN sends back goes in addressed to the host's primary address.
- The host's DNS settings stay as they are. With
SimulateDns, the default, every outbound UDP packet to port 53, wherever it goes, is captured, but loopback ones and protected ones, and sent to one of the adapter's DNS servers of its IP version, if it has one; an answer comes back from the address its query was sent to, while that is kept. - With
ExcludeLocalNetwork, the default, the capture of the routes' networks leaves out the local networks (IpNetwork.LocalNetworks); DNS queries to them are still captured withSimulateDns. ProtectSocketkeeps a socket out of the capture by its TTL,WinDivertVpnAdapter.ProtectedTtl. There is no NAT and no app filter.
Requirements
- x64 Windows, in an x64 process.
- An administrator's rights: the first start in a process installs WinDivert's DLL and driver into a protected folder of their own under Common Files, or takes the ones there, and the driver stays loaded until a reboot or until it is stopped.
- The package carries WinDivert's DLL and driver as its release ships them.
License
LGPL-2.1-only. See the VpnHood repository.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net11.0
- SharpPcap (>= 6.3.1)
- VpnHood.Net.VpnAdapters.Abstractions (>= 9.1.880)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 9.1.880 | 0 | 11/26/2026 |
| 9.1.879 | 0 | 11/25/2026 |
| 9.1.875 | 101 | 11/16/2026 |
| 9.1.874 | 101 | 11/15/2026 |
| 9.1.864 | 129 | 11/3/2026 |
| 9.0.860 | 128 | 10/31/2026 |
| 9.0.859.16-prerelease | 117 | 10/30/2026 |
| 9.0.857 | 148 | 10/20/2026 |
| 9.0.856 | 140 | 10/19/2026 |
| 9.0.855 | 139 | 10/13/2026 |
| 8.2.853.11-prerelease | 132 | 10/5/2026 |
| 8.2.853 | 155 | 9/23/2026 |
| 8.2.852 | 143 | 9/23/2026 |