---
title: NEVPNManager
framework: networkextension
role: symbol
role_heading: Class
path: networkextension/nevpnmanager
---

# NEVPNManager

An object to create and manage a Personal VPN configuration.

## Declaration

```swift
class NEVPNManager
```

## Overview

Overview The NEVPNManager API gives apps the ability to create and manage a Personal VPN configuration on iOS and macOS. Personal VPN configurations are typically used to provide a service to users that protects their Internet browsing activity on insecure networks such as public Wi-Fi networks.

## Topics

### Managing VPN configurations

- [shared()](networkextension/nevpnmanager/shared().md)
- [loadFromPreferences(completionHandler:)](networkextension/nevpnmanager/loadfrompreferences(completionhandler:).md)
- [saveToPreferences(completionHandler:)](networkextension/nevpnmanager/savetopreferences(completionhandler:).md)
- [setAuthorization(_:)](networkextension/nevpnmanager/setauthorization(_:).md)
- [removeFromPreferences(completionHandler:)](networkextension/nevpnmanager/removefrompreferences(completionhandler:).md)

### Accessing VPN configuration properties

- [isEnabled](networkextension/nevpnmanager/isenabled.md)
- [protocolConfiguration](networkextension/nevpnmanager/protocolconfiguration.md)
- [protocol](networkextension/nevpnmanager/protocol.md)
- [localizedDescription](networkextension/nevpnmanager/localizeddescription.md)
- [isOnDemandEnabled](networkextension/nevpnmanager/isondemandenabled.md)
- [onDemandRules](networkextension/nevpnmanager/ondemandrules.md)

### Connecting and disconnecting VPN

- [connection](networkextension/nevpnmanager/connection.md)

### Errors

- [NEVPNError.Code](networkextension/nevpnerror-swift.struct/code.md)
- [NEVPNErrorDomain](networkextension/nevpnerrordomain.md)
- [NEVPNError.Code](networkextension/nevpnerror-swift.struct/code.md)

### Notifications

- [NEVPNConfigurationChange](foundation/nsnotification/name-swift.struct/nevpnconfigurationchange.md)

### Entitlements

- [Personal VPN Entitlement](bundleresources/entitlements/com.apple.developer.networking.vpn.api.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Inherited By

- [NETransparentProxyManager](networkextension/netransparentproxymanager.md)
- [NETunnelProviderManager](networkextension/netunnelprovidermanager.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### VPN configuration

- [NEAppProxyProviderManager](networkextension/neappproxyprovidermanager.md)
- [NETunnelProviderManager](networkextension/netunnelprovidermanager.md)
- [NETunnelProviderProtocol](networkextension/netunnelproviderprotocol.md)
- [NEAppRule](networkextension/neapprule.md)
- [VPN On Demand Rules](networkextension/vpn-on-demand-rules.md)
