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
                    
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.875" />
                    
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.875" />
                    
Directory.Packages.props
<PackageReference Include="VpnHood.Net.VpnAdapters.WinDivert" />
                    
Project file
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.875
                    
#r "nuget: VpnHood.Net.VpnAdapters.WinDivert, 9.1.875"
                    
#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.875
                    
#: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.875
                    
Install as a Cake Addin
#tool nuget:?package=VpnHood.Net.VpnAdapters.WinDivert&version=9.1.875
                    
Install as a Cake Tool

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

  • WinDivertVpnAdapter is an IVpnAdapter: make it with a WinDivertVpnAdapterSettings and use it as the Abstractions quick start uses NullVpnAdapter, 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 with SimulateDns.
  • ProtectSocket keeps 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 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.

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