---
title: NENetworkRule.Protocol
framework: networkextension
role: symbol
role_heading: Enumeration
path: networkextension/nenetworkrule/protocol
---

# NENetworkRule.Protocol

A type to represent network protocols used by routing rules.

## Declaration

```swift
enum `Protocol`
```

## Topics

### Protocols

- [NENetworkRule.Protocol.TCP](networkextension/nenetworkrule/protocol/tcp.md)
- [NENetworkRule.Protocol.UDP](networkextension/nenetworkrule/protocol/udp.md)
- [NENetworkRule.Protocol.any](networkextension/nenetworkrule/protocol/any.md)

### Initializers

- [init(rawValue:)](networkextension/nenetworkrule/protocol/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## 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)
- [matchDirection](networkextension/nenetworkrule/matchdirection.md)
- [NETrafficDirection](networkextension/netrafficdirection.md)
