Find-NetIPsecRule
Find-NetIPsecRule
Gets IPsec rules that match specified criteria.
構文
Parameter Set: Find2
Find-NetIPsecRule -RemoteAddress <String> [-AsJob] [-CimSession <CimSession[]> ] [-LocalAddress <String> ] [-LocalPort <UInt16> ] [-Protocol <String> ] [-RemotePort <UInt16> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
詳細説明
The Find-NetIPsecRule cmdlet gets IPsec rules that match the criteria that you specify.
パラメーター
-AsJob
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-CimSession<CimSession[]>
リモート セッションまたはリモート コンピューターでコマンドレットを実行します。New-CimSession コマンドレットや Get-CimSession コマンドレットの出力など、コンピューター名またはセッション オブジェクトを入力します。既定値は、ローカル コンピューターで実行中の現在のセッションです。
エイリアス |
Session |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-LocalAddress<String>
Specifies the local IP address of a connection. The cmdlet gets the IPSec rules that are matched to the IP address that you specify.
This parameter value is the first end point of an IPsec rule and specifies the computers that are subject to the requirements of the rule.
このパラメーターに対して使用できる値:an IPv4 or IPv6 address, host name, subnet, range, or the following keyword: Any.
The acceptable formats for this parameter are:
-- Single IPv4 Address: 1.2.3.4
-- Single IPv6 Address: fe80::1
-- IPv4 Subnet (by network bit count): 1.2.3.4/24
-- IPv6 Subnet (by network bit count): fe80::1/48
-- IPv4 Subnet (by network mask): 1.2.3.4/255.255.255.0
-- IPv4 Range: 1.2.3.4 through 1.2.3.7
-- IPv6 Range: fe80::1 through fe80::9
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-LocalPort<UInt16>
Specifies the local port of the connection. The cmdlet gets the IPSec rules that are matched to the IP port number that you specify. This parameter value is the first end point of an IPsec rule.
このパラメーターに対して使用できる値:a port, range, and keyword. The value depends on the protocol.
Protocol is TCP or UDP.
このパラメーターに対して使用できる値:
-- Port range: 0 through 65535
-- Port number: 80
-- Keyword: Any
Protocol is ICMPv4 or ICMPv6.
このパラメーターに対して使用できる値:
-- An ICMP type, code pair: 0, 8
-- Type and code: 0 through 255
-- Keyword: Any
No protocol is set.
このパラメーターに対して使用できる値:
-- Any
-- RPC
-- RPC-EPMap
-- IPHTTPS
Note: IPHTTPS is supported only on Windows Server 2012.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Protocol<String>
Specifies the protocol for an IPSec rule. The cmdlet gets the IPSec rules that use the protocol that you specify for the connection. このパラメーターに対して使用できる値:
-- Protocols by number: 0 through 255
-- Protocols by name: TCP, UDP, ICMPv4, or ICMPv6.
If a port number is identified by using port1 or port2, you must specify TCP or UDP for this parameter.
The values ICMPv4 and ICMPv6 create a rule that exempts ICMP network traffic from the IPsec requirements of another rule.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-RemoteAddress<String>
Specifies the remote address of the TCP connection. The cmdlet gets the IPSec rules that are matched the IP address that you specify.
This parameter value is the second end point of an IPsec rule and specifies the computer that is subject to the requirements of the rules.
このパラメーターに対して使用できる値:an IPv4 or IPv6 address, host name, subnet, range, or the following keyword: Any.
The acceptable formats for this parameter are:
-- Single IPv4 Address: 1.2.3.4
-- Single IPv6 Address: fe80::1
-- IPv4 Subnet (by network bit count): 1.2.3.4/24
-- IPv6 Subnet (by network bit count): fe80::1/48
-- IPv4 Subnet (by network mask): 1.2.3.4/255.255.255.0
-- IPv4 Range: 1.2.3.4 through 1.2.3.7
-- IPv6 Range: fe80::1 through fe80::9
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-RemotePort<UInt16>
Specifies the remote port of the TCP connection. The cmdlet gets the IPSec rules that are matched to the remote port number that you specify. This parameter value is the second end point of an IPsec rule. このパラメーターに対して使用できる値:a port, range, and keyword. The value depends on the protocol.
Protocol is TCP or UDP.
このパラメーターに対して使用できる値:
-- Port range: 0 through 65535
-- Port number: 80
-- Keyword: Any
Protocol is ICMPv4 or ICMPv6.
このパラメーターに対して使用できる値:
-- An ICMP type, code pair: 0, 8
-- Type and code: 0 through 255
-- Keyword: Any.
No protocol is set.
このパラメーターに対して使用できる値:
-- Any
-- RPC
-- RPC-EPMap
-- IPHTTPS.
Note: IPHTTPS is supported only on Windows Server 2012.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ThrottleLimit<Int32>
このコマンドレットを実行するために確立できる最大同時操作数を指定します。このパラメーターを省略するか、値として 0
を入力した場合、Windows PowerShell® では、コンピューターで実行している CIM コマンドレットの数に基づいて、コマンドレットに対する最適なスロットル制限を計算します。スロットル制限は現在のコマンドレットのみに適用され、セッションまたはコンピューターには適用されません。
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- IPsecRule
例
Example 1: Get an IPSec rule
This command finds the IPsec rule that the system uses for conventional web traffic to the specified IP address. The command gets the IPSec rule that matches the TCP connection that has the remote address 131.107.33.200 and that uses the remote port 80. The command returns a WMIv2 IPsec rule object.
PS C:\> Find-NetIPsecRule -RemoteAddress "131.107.33.200" -Protocol "TCP" -RemotePort 80