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

# appRules

The rules for specific apps in a per-app VPN.

## Declaration

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

## Mentioned in

Routing your VPN network traffic

## Discussion

Discussion For per-app VPNs only, the system routes network traffic originating from an app that matches one of these rules through the VPN.

## See Also

### Configuring a per-app VPN

- [forPerAppVPN()](networkextension/netunnelprovidermanager/forperappvpn().md)
- [excludedDomains](networkextension/netunnelprovidermanager/excludeddomains.md)
- [associatedDomains](networkextension/netunnelprovidermanager/associateddomains.md)
- [calendarDomains](networkextension/netunnelprovidermanager/calendardomains.md)
- [contactsDomains](networkextension/netunnelprovidermanager/contactsdomains.md)
- [mailDomains](networkextension/netunnelprovidermanager/maildomains.md)
- [safariDomains](networkextension/netunnelprovidermanager/safaridomains.md)
