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.
Properties
Section titled “Properties”string Name { get; init; }The rule name, which identifies it.
int Port { get; init; }The local port.
Protocol
Section titled “Protocol”FirewallProtocol Protocol { get; init; }TCP or UDP.
Methods
Section titled “Methods”ForService
Section titled “ForService”static FirewallRule ForService(string service, FirewallProtocol protocol, int port)“OADM Server (NTP, UDP 123)”.