Orlys.Nautilus 1.0.1

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

// Install Orlys.Nautilus as a Cake Tool
#tool nuget:?package=Orlys.Nautilus&version=1.0.1                

Nautilus

Fully-asynchronous programmable dynamic firewall API for Windows platform written in C#.

Usage

Dynamic firewall APIs example.

using Nautilus.Windows.Firewall;

// gets firewall controller. (singleton)
var controller = Firewall.Controller;

// creates a new firewall rule.
IFirewallRule newRule = await controller.Create();
// updates firewall properties.
newRule.Enabled = true;
newRule.Direction = Directions.Incoming;
newRule.Protocol = ProtocolType.TCP;
newRule.LocalPorts.Add(8000..8008);
newRule.LocalPorts.Add(8009);
newRule.RemoteAddresses.Add(IPAddressRange.Parse("173.245.48.0/20"));
newRule.RemoteAddresses.Add(IPAddress.Parse("1.1.1.1"));

// gets the firewall rules.
IEnumerable<IFirewallRule> rules = controller.Rules;

// deletes a firewall rule.
await controller.Delete(rule.Id);

// removes all firewall rules.
await controller.Clear();

License

Mozilla Public License 2.0

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 netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
2.0.2 632 9/24/2021
2.0.1 338 9/24/2021
2.0.0 320 9/24/2021
1.0.2 536 5/9/2020
1.0.1 474 3/8/2020