Class

NEOnDemandRule

A base class shared by all VPN On Demand rules.

Declaration

@interface NEOnDemandRule : NSObject

Overview

Each rule is defined by a single action and a set of optional matching conditions. The action defines how the system should trigger the VPN when the conditions are met, such as connecting automatically for all connections, connecting conditionally, or disconnecting. The optional conditions describe parameters of a network. Some common rules include disconnecting the VPN on a trusted, internal network, and triggering on all other networks. When rules are defined in an array, they are evaluated in order and the action of the first rule to match all conditions is chosen.

Instances of the NEOnDemandRule class should be created through one of its subclasses: NEOnDemandRuleConnect, NEOnDemandRuleDisconnect, NEOnDemandRuleEvaluateConnection, or NEOnDemandRuleIgnore.

Topics

Accessing Match Parameters

DNSSearchDomainMatch

DNS search domains that identify a network

DNSServerAddressMatch

DNS server addresses that identify a network

interfaceTypeMatch

An interface type to identify a network

SSIDMatch

SSIDs that identify a network

probeURL

A URL to probe when all other network identifiers match to validate that an expected resource is available

Accessing the Rule Action

action

The action of the On Demand Rule

Relationships

Inherits From

See Also

Settings

NEOnDemandRuleConnect

A VPN On Demand rule that connects the VPN.

NEOnDemandRuleDisconnect

A VPN On Demand rule that disconnects the VPN.

NEOnDemandRuleIgnore

A VPN On Demand rule that doesn’t change the status of the VPN.

NEOnDemandRuleEvaluateConnection

A VPN On Demand rule that evaluate the app’s connection to determine whether to run its action.