---
title: appRules
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/netunnelprovider/apprules
---

# appRules

The app rules dictating which apps use the current tunneling session.

## Declaration

```swift
var appRules: [NEAppRule]? { get }
```

## Discussion

Discussion This property is only non-nil if the current configuration is a Per-App VPN configuration.

## See Also

### Getting the tunnel configuration

- [protocolConfiguration](networkextension/netunnelprovider/protocolconfiguration.md)
- [routingMethod](networkextension/netunnelprovider/routingmethod.md)
