---
title: routingMethod
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/netunnelprovider/routingmethod
---

# routingMethod

The method by which network traffic is routed to the tunnel.

## Declaration

```swift
var routingMethod: NETunnelProviderRoutingMethod { get }
```

## Discussion

Discussion The default is NETunnelProviderRoutingMethod.destinationIP.

## See Also

### Getting the tunnel configuration

- [protocolConfiguration](networkextension/netunnelprovider/protocolconfiguration.md)
- [appRules](networkextension/netunnelprovider/apprules.md)
