H.OpenVpn
0.9.23
See the version list below for details.
dotnet add package H.OpenVpn --version 0.9.23
NuGet\Install-Package H.OpenVpn -Version 0.9.23
<PackageReference Include="H.OpenVpn" Version="0.9.23" />
paket add H.OpenVpn --version 0.9.23
#r "nuget: H.OpenVpn, 0.9.23"
// Install H.OpenVpn as a Cake Addin #addin nuget:?package=H.OpenVpn&version=0.9.23 // Install H.OpenVpn as a Cake Tool #tool nuget:?package=H.OpenVpn&version=0.9.23
H.Vpn
A set of C# libraries for VPN implementation
Features
- Supports firewall that will block the internet if there are connection problems.
- Based on OpenVPN
Nuget
Usage
H.Firewall
Forbids for 15 seconds everything except LAN/DNS/Localhost requests and Chrome applications.
NOTE: To use this code in your application, you must either run it as an administrator or
run it through a service talking to it via IPC (eg H.Pipes).
Else you will get the following error: 0x8032000D. The call must be made from within an explicit transaction.
using var firewall = new FirewallBuilder()
.Block()
.All()
.Allow()
.Localhost()
.DomainNameSystem()
.LocalAreaNetwork()
.Application(@"C:\Users\haven\AppData\Local\Google\Chrome\Application\chrome.exe")
.Build();
await Task.Delay(TimeSpan.FromSeconds(15));
H.Firewall uses WFP calls internally, you can learn more about this.
Links
- [Introduction to the Windows Filtering Platform](https://scorpiosoftware.net/2022/12/25/introduction-to-the-windows-filtering-platform/]
- WFPExplorer
Contacts
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. 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 is compatible. 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 | net461 was computed. net462 is compatible. 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. |
-
.NETFramework 4.6.2
- System.Threading.Channels (>= 7.0.0)
-
.NETStandard 2.0
- System.Threading.Channels (>= 7.0.0)
-
net6.0
- System.Threading.Channels (>= 7.0.0)
-
net7.0
- System.Threading.Channels (>= 7.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on H.OpenVpn:
Package | Downloads |
---|---|
H.Vpn
C# high-level VPN library |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.9.27 | 755 | 11/7/2023 |
0.9.26 | 255 | 11/5/2023 |
0.9.24 | 239 | 11/5/2023 |
0.9.23 | 447 | 8/28/2023 |
0.9.22 | 302 | 8/25/2023 |
0.9.21 | 266 | 8/24/2023 |
0.9.20 | 288 | 8/24/2023 |
0.9.19 | 297 | 8/24/2023 |
0.9.18 | 298 | 8/24/2023 |
0.9.17 | 302 | 8/24/2023 |
0.9.16 | 324 | 8/23/2023 |
0.9.15 | 287 | 8/23/2023 |
0.9.14 | 281 | 8/23/2023 |
0.9.13 | 293 | 8/23/2023 |
0.9.12 | 267 | 8/23/2023 |
0.9.11 | 299 | 8/23/2023 |
0.9.10 | 286 | 8/23/2023 |
0.9.9 | 326 | 8/23/2023 |
0.9.8 | 276 | 8/22/2023 |
0.9.7 | 1,193 | 10/7/2022 |
0.9.6 | 974 | 5/19/2022 |
0.9.5 | 1,008 | 3/28/2022 |
0.9.4 | 960 | 3/10/2022 |
0.9.1 | 961 | 3/9/2022 |
⭐ Last 10 features:
- feat: Added PeerName to FirewallBuilder. 2023-08-25
- feat: Added Url to FirewallBuilder. 2023-08-24
- feat: Added Builder helper methods for string ip addresses and networks. 2023-08-24
- feat: Added all supported things to FirewallBuilder. 2023-08-24
- feat: Added FirewallBuilder PermitUri support. 2023-08-24
- feat: Added PermitUri. 2023-08-24
- feat: Added initial FirewallBuilder. 2023-08-24
- feat: Added BlockUri method. 2023-08-24
- feat: Added BlockUri extension for all layers. 2023-08-23
- feat: Added BlockUri extension. 2023-08-23
🐞 Last 10 bug fixes:
- fix: Fixed some problems with PeerName. 2023-08-28
- fix: Fixed BlockIpAddresses. 2023-08-25
- fix: Fixed IP address blocking bugs. 2023-08-24
- fix: Fixed PermitUri. 2023-08-24
- fix: Fixed unused weightAllow. 2023-08-24
- fix: Fixed warnings. 2023-08-23
- fix: Fixed some warnings. 2023-08-23
- feat: Added SupportedOSPlatform attributes and fixed some warnings. 2023-08-22
- fix: Fixed CI error. 2022-03-10
- fix: Removed H.IpHlpApi reference from H.Firewall. 2022-03-10