<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEFilterSettings",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:objc(cs)NEFilterSettings"
  },
  "title" : "NEFilterSettings"
}
-->

# NEFilterSettings

The rules and other settings that define the operation of a filter.

```
class NEFilterSettings
```

## Overview

[`NEFilterDataProvider`](/documentation/NetworkExtension/NEFilterDataProvider) instances use [`NEFilterSettings`](/documentation/NetworkExtension/NEFilterSettings) to communicate the desired settings for the filter to the framework. The framework takes care of applying the contained settings to the system.

## Topics

### Creating Filter Settings

[`-  initWithRules:defaultAction:`](/documentation/NetworkExtension/NEFilterSettings/init(rules:defaultAction:))

Creates a new settings instance from an array of rules and a default action.

[`NEFilterRule`](/documentation/NetworkExtension/NEFilterRule)

A rule for filters that combines a rule to match network traffic and an action to take when the rule matches.

### Inspecting Filter Settings

[`rules`](/documentation/NetworkExtension/NEFilterSettings/rules)

An ordered list of rules that define the filter’s operation.

[`defaultAction`](/documentation/NetworkExtension/NEFilterSettings/defaultAction)

The default action to take for flows of network data that don’t match any of the specified rules.

## Relationships

### Conforms To

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Equatable`](/documentation/Swift/Equatable)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSCoding`](/documentation/Foundation/NSCoding)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)