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
Tcp
Tcp = 6 TCP (6). Allows local and remote ports.
Udp
Udp = 17 UDP (17). Allows local and remote ports.
Any
Any = 256 Any protocol (Windows Firewall's native value 256).