desktop2:Rule

Description

Defines a firewall exception rule.

Element Hierarchy

<Package>
<Extensions>
<desktop2:Extension>
<desktop2:FirewallRules>
<desktop2:Rule>

Syntax

<desktop2:Rule Direction = One of the following string values: "in", "out"
               IPProtocol = A string value representing the IP protocol. See Attributes table for more details.
               Profile = One of the following string values: "domain", "private", "domainAndPrivate", "public", "all"
               LocalPortMin? = An integer value between 0 and 65535.
               LocalPortMax? = An integer value between 0 and 65535.
               RemotePortMin? = An integer value between 0 and 65535.
               RemotePortMax? = An integer value between 0 and 65535. >

Key

? optional (zero or one)

Attributes

Attribute Description Data type Required
Direction The direction for the rule. One of the following string values: "in", "out" Yes
IPProtocol The IP protocol for the rule. These are the supported IP protocols:
  • ICMPv4
  • ICMPv6
  • TCP
  • UDP
  • GRE
  • AH
  • ESP
  • EGP
  • GGP
  • HMP
  • IGMP
  • RVD
  • OSPFIGP
  • PUP
  • RDP
  • RSVP
Yes
Profile The profile of the network. One of the following string values:
  • domain
  • private
  • domainAndPrivate
  • public
  • all
Yes
LocalPortMin A min value for the local port. An integer value between 0 and 65535. No
LocalPortMax A max value for the local port. An integer value between 0 and 65535. No
RemotePortMin A min value for the remote port. An integer value between 0 and 65535. No
RemotePortMax A max value for the remote port. An integer value between 0 and 65535. No

Requirements

Namespace

http://schemas.microsoft.com/appx/manifest/desktop/windows10/2