VpnHood.Net.VpnAdapters.WinDivert
9.1.875
dotnet add package VpnHood.Net.VpnAdapters.WinDivert --version 9.1.875
NuGet\Install-Package VpnHood.Net.VpnAdapters.WinDivert -Version 9.1.875
<PackageReference Include="VpnHood.Net.VpnAdapters.WinDivert" Version="9.1.875" />
<PackageVersion Include="VpnHood.Net.VpnAdapters.WinDivert" Version="9.1.875" />
<PackageReference Include="VpnHood.Net.VpnAdapters.WinDivert" />
paket add VpnHood.Net.VpnAdapters.WinDivert --version 9.1.875
#r "nuget: VpnHood.Net.VpnAdapters.WinDivert, 9.1.875"
#:package VpnHood.Net.VpnAdapters.WinDivert@9.1.875
#addin nuget:?package=VpnHood.Net.VpnAdapters.WinDivert&version=9.1.875
#tool nuget:?package=VpnHood.Net.VpnAdapters.WinDivert&version=9.1.875
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. |
-
net11.0
- SharpPcap (>= 6.3.1)
- VpnHood.Net.VpnAdapters.Abstractions (>= 9.1.875)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on VpnHood.Net.VpnAdapters.WinDivert:
| Package | Downloads |
|---|---|
|
VpnHood.Core.Client.VpnServices.Host.WindowsTun
VpnHood's VPN service on Windows with WinTun: the VPN host's half, which runs the engine |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 9.1.875 | 30 | 11/16/2026 |
| 9.1.874 | 52 | 11/15/2026 |
| 9.1.864 | 124 | 11/3/2026 |
| 9.0.860 | 127 | 10/31/2026 |
| 9.0.859.16-prerelease | 111 | 10/30/2026 |
| 9.0.857 | 147 | 10/20/2026 |
| 9.0.856 | 139 | 10/19/2026 |
| 9.0.855 | 138 | 10/13/2026 |
| 8.2.853.11-prerelease | 131 | 10/5/2026 |
| 8.2.853 | 152 | 9/23/2026 |
| 8.2.852 | 140 | 9/23/2026 |