Find-NetIPsecRule

Find-NetIPsecRule

Gets IPsec rules that match specified criteria.

Sintaxis

Parameter Set: Find2
Find-NetIPsecRule -RemoteAddress <String> [-AsJob] [-CimSession <CimSession[]> ] [-LocalAddress <String> ] [-LocalPort <UInt16> ] [-Protocol <String> ] [-RemotePort <UInt16> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

Descripción detallada

The Find-NetIPsecRule cmdlet gets IPsec rules that match the criteria that you specify.

Parámetros

-AsJob

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-CimSession<CimSession[]>

Ejecuta el cmdlet en una sesión remota o en un equipo remoto. Escriba un nombre de equipo o un objeto de sesión, como la salida de un cmdlet New-CimSession o Get-CimSession. El valor predeterminado es la sesión actual en el equipo local.

Alias

Session

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

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.
Los valores aceptables para este parámetro son los siguientes: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

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

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.
Los valores aceptables para este parámetro son los siguientes:a port, range, and keyword. The value depends on the protocol.

Protocol is TCP or UDP.
Los valores aceptables para este parámetro son los siguientes:

-- Port range: 0 through 65535
-- Port number: 80
-- Keyword: Any

Protocol is ICMPv4 or ICMPv6.
Los valores aceptables para este parámetro son los siguientes:

-- An ICMP type, code pair: 0, 8
-- Type and code: 0 through 255
-- Keyword: Any

No protocol is set.
Los valores aceptables para este parámetro son los siguientes:

-- Any
-- RPC
-- RPC-EPMap
-- IPHTTPS

Note: IPHTTPS is supported only on Windows Server 2012.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

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. Los valores aceptables para este parámetro son los siguientes:

-- 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.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

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.

Los valores aceptables para este parámetro son los siguientes: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

Alias

ninguno

¿Requerido?

true

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

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. Los valores aceptables para este parámetro son los siguientes:a port, range, and keyword. The value depends on the protocol.

Protocol is TCP or UDP.
Los valores aceptables para este parámetro son los siguientes:

-- Port range: 0 through 65535
-- Port number: 80
-- Keyword: Any

Protocol is ICMPv4 or ICMPv6.
Los valores aceptables para este parámetro son los siguientes:

-- An ICMP type, code pair: 0, 8
-- Type and code: 0 through 255
-- Keyword: Any.

No protocol is set.
Los valores aceptables para este parámetro son los siguientes:

-- Any
-- RPC
-- RPC-EPMap
-- IPHTTPS.

Note: IPHTTPS is supported only on Windows Server 2012.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-ThrottleLimit<Int32>

Especifica el número máximo de operaciones simultáneas que se pueden establecer para ejecutar el cmdlet. Si se omite este parámetro o es especifica un valor de 0, Windows PowerShell ® calcula un límite óptimo para el cmdlet en función del número de cmdlets de CIM que se estén ejecutando en el equipo. El límite solo se aplica al cmdlet actual, no a la sesión ni al equipo.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

  • IPsecRule

Ejemplos

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

Temas relacionados

Get-NetIPsecRule

Set-NetIPsecRule

New-NetIPsecRule

Show-NetIPsecRule

Enable-NetIPsecRule

Disable-NetIPsecRule

Sync-NetIPsecRule

Rename-NetIPsecRule

Remove-NetIPsecRule

Copy-NetIPsecRule

Update-NetIPsecRule