Skip to content

FirewallRule

Record in Oadm.Sdk.Network · Oadm.Sdk.dll

An inbound allow rule for the server executable on one local port (profiles Domain and Private). Name identifies the rule (“OADM Server (NTP, UDP 123)”): opening replaces a rule of that name, closing removes it.

public sealed record FirewallRule(string Name, FirewallProtocol Protocol, int Port)

Parameters

  • Name: The rule name, which identifies it.
  • Protocol: TCP or UDP.
  • Port: The local port.
string Name { get; init; }

The rule name, which identifies it.

int Port { get; init; }

The local port.

FirewallProtocol Protocol { get; init; }

TCP or UDP.

static FirewallRule ForService(string service, FirewallProtocol protocol, int port)

“OADM Server (NTP, UDP 123)”.