FirewallProtocol enum

Namespace Runic.Platform.Administration.Windows.Firewall in Runic.Platform.Administration.Windows 0.23.0

public enum FirewallProtocol

IP protocol of a firewall rule: an IANA protocol number, or FirewallProtocol.Any.

Remarks

This set is open: a minor release may name more protocols. The named values are the protocols with protocol-specific settings; other IANA protocol numbers from 0 to 255 are cast, for example (FirewallProtocol)47 for GRE, and rules read from Windows can return them.

Values

IcmpV4

IcmpV4 = 1

Tcp

Tcp = 6

TCP (6). Allows local and remote ports.

Udp

Udp = 17

UDP (17). Allows local and remote ports.

IcmpV6

IcmpV6 = 58

Any

Any = 256

Any protocol (Windows Firewall's native value 256).