desktop2:Rule

ファイアウォール例外規則を定義します。

要素の階層

<パッケージ>

    <拡張機能>

         <desktop2:Extension>

              <desktop2:FirewallRules>

                   <desktop2:Rule>

構文

<desktop2:Rule
  Direction = 'A string that can have one of the following values: "in" or "out".'
  IPProtocol = 'A string that can have one of the following values: "ICMPv4", "ICMPv6", "TCP", "UDP", "GRE", "AH", "ESP", "EGP", "GGP", "HMP", "IGMP", "RVD", "OSPFIGP", "PUP", "RDP", or "RSVP".'
  Profile = 'A string that can have one of the following values: "domain", "private", "domainAndPrivate", "public", or "all".'
  LocalPortMin = 'An optional integer with a value between 1 and 65535 (inclusive).'
  LocalPortMax = 'An optional integer with a value between 1 and 65535.'
  RemotePortMin = 'An optional integer with a value between 1 and 65535.'
  RemotePortMax = 'An optional integer with a value between 1 and 65535.' />

属性と要素

属性

属性 説明 データ型 必須 既定値
方向 ルールの方向。 "in" または "out" のいずれかの値を持つ文字列。 Yes
IPProtocol 規則の IP プロトコル。 ICMPv4ICMPv6TCPUDPGREAHESPEGP、GGPHMPIGMPRVDOSPFIGPPUPRDP、または RSVP のいずれかの値を持つ文字列。 Yes
プロファイル 次に、ネットワークのプロファイル。 domain、privatedomainAndPrivatepublic、または all のいずれかの値を持つ文字列。 Yes
LocalPortMin ローカル ポートの最小値。 1 ~ 65535 (含む) の値を持つ省略可能な整数。 いいえ
LocalPortMax ローカル ポートの最大値。 1 ~ 65535 の値を持つ省略可能な整数。 いいえ
RemotePortMin リモート ポートの最小値。 1 ~ 65535 の値を持つ省略可能な整数。 いいえ
RemotePortMax リモート ポートの最大値。 1 ~ 65535 の値を持つ省略可能な整数。 いいえ

子要素

なし。

親要素

親要素 説明
desktop2:FirewallRules Windows デスクトップ ブリッジ アプリで使用されるファイアウォール例外規則を指定します。

必要条件

Item
名前空間 http://schemas.microsoft.com/appx/manifest/desktop/windows10/2
Minimum OS Version Windows 10 バージョン 1703 (ビルド 15063)