Skip to content

IFirewallRules

Interface in Oadm.Sdk.Network · Oadm.Sdk.dll

The host firewall as far as plugins may change it. Offered by the server only where it manages the firewall (Windows, running as the installed service, see ICorePluginContext.Firewall); null elsewhere, so a plugin never touches the firewall in tests or development runs. Linux and macOS are not changed.

public interface IFirewallRules
Task CloseAsync(FirewallRule rule, CancellationToken ct)

Removes the rule; a missing rule is not an error.

Task OpenAsync(FirewallRule rule, CancellationToken ct)

Adds (or replaces) the inbound allow rule. Throws when the firewall refused it.