---
title: matchProtocol
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/nenetworkrule/matchprotocol
---

# matchProtocol

The protocol that the rule matches.

## Declaration

```swift
var matchProtocol: NENetworkRule.Protocol { 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)
- [NENetworkRule.Protocol](networkextension/nenetworkrule/protocol.md)
- [matchDirection](networkextension/nenetworkrule/matchdirection.md)
- [NETrafficDirection](networkextension/netrafficdirection.md)
