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

# rules

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

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

## Discussion

After applying the [`NEFilterSettings`](/documentation/NetworkExtension/NEFilterSettings), the system compares each network flow against these rules in order, and acts on the rule of the first [`NEFilterAction`](/documentation/NetworkExtension/NEFilterAction) that matches.

---

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)