Set method of the PS_IPFilter class

Updates the filtering action of an IP filter for a BGP router.

Syntax

uint32 Set(
  [in]  uint32            Action,
  [in]  uint32            Direction,
  [in]  string            InterfaceAlias,
  [in]  uint32            AddressFamily,
  [in]  boolean           PassThru,
  [out] InterfaceIpFilter cmdletOutput[]
);

Parameters

Action [in]

The action for the filter to perform. You can set this parameter to one of the following values.

Windows Server 2012: This parameter was changed from a sting data type in Windows Server 2012 R2.

0

Allow traffic.

1

Deny traffic.

Direction [in]

The direction of network traffic that the filter applies to. You can set this parameter to one of the following values.

0

Inbound traffic.

1

Outbound traffic.

InterfaceAlias [in]

The alias of interface that contains the filters to update.

AddressFamily [in]

Indicates whether the filter is an IPv4 filter or IPv6.

Windows Server 2012: This parameter replaced the IpVersion parameter in Windows Server 2012 R2.

0

Specifies IPv4.

1

Specifies IPv6.

PassThru [in]

Indicates wether the cmdletOutput parameter returns an object. True to return and object; otherwise false.

cmdletOutput [out]

The InterfaceIpFilter object that receives the updated IP filter.

Windows Server 2012: This parameter was changed to an array in Windows Server 2012 R2.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\RemoteAccess
MOF
RAMgmtPSProvider.Mof
DLL
RAMgmtPSProvider.dll

See also

PS_IPFilter