Class

NENetworkRule

A rule to match attributes of network traffic.

Declaration

@interface NENetworkRule : NSObject

Topics

Creating a Network Rule

- initWithDestinationNetwork:prefix:protocol:

Creates a rule that matches network traffic destined for a host within a specific network.

- initWithDestinationHost:protocol:

Creates a rule that matches network traffic destined for a host within a specific DNS domain.

- initWithRemoteNetwork:remotePrefix:localNetwork:localPrefix:protocol:direction:

Creates a rule that matches traffic by remote network, local network, protocol, and direction.

Matching Network Traffic Characteristics

matchRemoteEndpoint

The remote endpoint that the rule matches.

matchRemotePrefix

A number that specifies the remote sub-network that the rule matches.

matchLocalNetwork

The local network that the rule matches.

matchLocalPrefix

A number that specifies the local sub-network that the rule matches.

matchProtocol

The protocol that the rule matches.

NENetworkRuleProtocol

A type to represent network protocols used by routing rules.

matchDirection

The direction of network traffic that the rule matches.

NETrafficDirection

A type to represent the direction of network traffic.

Relationships

Inherits From

See Also

Transparent Proxy Configuration

NETransparentProxyManager

An object that configures and controls transparent proxies.

NETransparentProxyNetworkSettings

A specification of what traffic to route through a transparent proxy.