H.Wfp 0.9.5

There is a newer version of this package available.
See the version list below for details.
dotnet add package H.Wfp --version 0.9.5                
NuGet\Install-Package H.Wfp -Version 0.9.5                
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="H.Wfp" Version="0.9.5" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add H.Wfp --version 0.9.5                
#r "nuget: H.Wfp, 0.9.5"                
#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.
// Install H.Wfp as a Cake Addin
#addin nuget:?package=H.Wfp&version=0.9.5

// Install H.Wfp as a Cake Tool
#tool nuget:?package=H.Wfp&version=0.9.5                

A set of C# libraries for VPN implementation

Language License Requirements Build Status

A set of C# libraries for VPN implementation

Features

Nuget

NuGet
NuGet
NuGet
NuGet
NuGet

Usage

H.Firewall

Forbids for 15 seconds everything except LAN/DNS/Localhost requests and Chrome applications.
NOTE: The application that runs this must have administrator rights.
Else you will get the following error: 0x8032000D. The call must be made from within an explicit transaction.

using var firewall = new HFirewall();

firewall.Start();
firewall.RunTransaction(ptr =>
{
    var (providerKey, subLayerKey) = firewall.RegisterKeys();
    firewall.PermitAppId(
        providerKey,
        subLayerKey,
        @"C:\Users\haven\AppData\Local\Google\Chrome\Application\chrome.exe",
        15);

    firewall.PermitLan(providerKey, subLayerKey, 12);
    firewall.PermitDns(providerKey, subLayerKey, 11, 10);
    firewall.PermitLocalhost(providerKey, subLayerKey, 1);

    // Block everything not allowed explicitly
    firewall.BlockAll(providerKey, subLayerKey, 0);
});

await Task.Delay(TimeSpan.FromSeconds(15));

Usage

Contacts

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net451 is compatible.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.5.1

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on H.Wfp:

Package Downloads
H.Firewall

C# high-level firewall library

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.9.27 574 11/7/2023
0.9.26 239 11/5/2023
0.9.24 205 11/5/2023
0.9.23 296 8/28/2023
0.9.22 252 8/25/2023
0.9.21 262 8/24/2023
0.9.20 255 8/24/2023
0.9.19 253 8/24/2023
0.9.18 281 8/24/2023
0.9.17 244 8/24/2023
0.9.16 260 8/23/2023
0.9.15 262 8/23/2023
0.9.14 230 8/23/2023
0.9.13 229 8/23/2023
0.9.12 270 8/23/2023
0.9.11 250 8/23/2023
0.9.10 254 8/23/2023
0.9.9 271 8/23/2023
0.9.8 255 8/22/2023
0.9.7 1,274 10/7/2022
0.9.6 1,215 5/19/2022
0.9.5 1,236 3/28/2022
0.9.4 1,194 3/10/2022
0.9.1 1,193 3/9/2022

⭐ Last 10 features:
- feat: Converted H.Wfp to CsWin32. 2022-03-28
- feat(HFirewall): Moved Settings and related methods to HVpn. 2022-03-10
- feat(HFirewall): Added helper methods. 2022-03-10
- feat: Initial commit. 2022-03-10

🐞 Last 10 bug fixes:
- fix: Fixed CI error. 2022-03-10
- fix: Removed H.IpHlpApi reference from H.Firewall. 2022-03-10
- fix: Fixed CA1063. 2022-03-10
- fix: Fixed warnings. 2022-03-10
- fix: Disabled CI tests. 2022-03-10