---
title: rules
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/nefiltersettings/rules
---

# rules

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

## Declaration

```swift
var rules: [NEFilterRule] { get }
```

## Discussion

Discussion After applying the NEFilterSettings, the system compares each network flow against these rules in order, and acts on the rule of the first NEFilterAction that matches.

## See Also

### Inspecting Filter Settings

- [defaultAction](networkextension/nefiltersettings/defaultaction.md)
