次の方法で共有


Add method of the PS_IPFilter class

Adds an IP filter to a BGP router interface.

Syntax

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

Parameters

InterfaceAlias [in]

The alias of interface to add filters to.

Action [in]

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

0

Allow traffic.

1

Deny traffic.

List [in]

An array that contains the IP filters of the interface.

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.

PassThru [in]

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

AddressFamily [in]

Indicates whether the filter is an IPv4 filter or IPv6.

0

Specifies IPv4.

1

Specifies IPv6.

cmdletOutput [out]

The InterfaceIpFilter object that receives the added IP filter.

Requirements

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

See also

PS_IPFilter