---
title: NEOnDemandRuleAction.connect
framework: networkextension
role: symbol
role_heading: Case
path: networkextension/neondemandruleaction/connect
---

# NEOnDemandRuleAction.connect

Start the VPN connection for every connection attempt.

## Declaration

```swift
case connect
```

## See Also

### Rule Actions

- [NEOnDemandRuleAction.disconnect](networkextension/neondemandruleaction/disconnect.md)
- [NEOnDemandRuleAction.evaluateConnection](networkextension/neondemandruleaction/evaluateconnection.md)
- [NEOnDemandRuleAction.ignore](networkextension/neondemandruleaction/ignore.md)
