Orlys.Nautilus
2.0.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Orlys.Nautilus --version 2.0.1
NuGet\Install-Package Orlys.Nautilus -Version 2.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="2.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Orlys.Nautilus --version 2.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Orlys.Nautilus, 2.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=2.0.1 // Install Orlys.Nautilus as a Cake Tool #tool nuget:?package=Orlys.Nautilus&version=2.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Nautilus
Dynamic firewall API for Windows platform written in C#.
Usage
Firewall
// required COM+ component 'NetFwTypeLib' and admin permission.
using Nautilus;
using System.Net;
// Gets the firewall service from advance firewall rule list.
var service = Firewall.GetService("service name in fw panel"); // type: IFirewallService
// creates a new firewall rule.
var newRule = service.CreateRule(); // type: IFirewallRule
// updates firewall properties.
newRule.Enabled = true;
newRule.Direction = Directions.Incoming;
newRule.Protocol = ProtocolType.TCP;
newRule.LocalPorts.Add(8000.To(8008));
newRule.LocalPorts.Add(8009);
newRule.RemoteAddresses.Add(IPAddressRange.Parse("173.245.48.0/20"));
newRule.RemoteAddresses.Add(IPAddress.Parse("1.1.1.1"));
// commits all changes.
service.UpdateRule(newRule);
// gets the firewall rules.
var rules = service.Rules; // type: IReadOnlyCollection<IFirewallRule>
// retrieves a firewall rule.
var singleRule = service.RetrieveRule(newRule.Id);
// deletes a firewall rule.
service.DeleteRule(rule.Id);
// removes all firewall rules.
service.DropRules();
Traffics
using Nautilus;
var families = IPAddressFamily.v4 | IPAddressFamily.v6;
var trafficRows = TcpTrafficTracker.Track(families); // type: IReadOnlyCollection<TcpTrafficRow>
License
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.8
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.