---
title: matchDirection
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/nenetworkrule/matchdirection
---

# matchDirection

The direction of network traffic that the rule matches.

## Declaration

```swift
var matchDirection: NETrafficDirection { get }
```

## See Also

### Matching network traffic characteristics

- [matchRemoteEndpoint](networkextension/nenetworkrule/matchremoteendpoint.md)
- [matchRemotePrefix](networkextension/nenetworkrule/matchremoteprefix.md)
- [matchLocalNetwork](networkextension/nenetworkrule/matchlocalnetwork.md)
- [matchLocalPrefix](networkextension/nenetworkrule/matchlocalprefix.md)
- [matchProtocol](networkextension/nenetworkrule/matchprotocol.md)
- [NENetworkRule.Protocol](networkextension/nenetworkrule/protocol.md)
- [NETrafficDirection](networkextension/netrafficdirection.md)
