---
title: NEVPNProtocolIPSec
framework: networkextension
role: symbol
role_heading: Class
path: networkextension/nevpnprotocolipsec
---

# NEVPNProtocolIPSec

Settings for an IPsec VPN configuration.

## Declaration

```swift
class NEVPNProtocolIPSec
```

## Overview

Overview To configure IKE version 2 (IKEv2), use the NEVPNProtocolIKEv2 subclass. Instantiating NEVPNProtocolIPSec directly implies IKE version 1.

## Topics

### Accessing IPSec properties

- [authenticationMethod](networkextension/nevpnprotocolipsec/authenticationmethod.md)
- [NEVPNIKEAuthenticationMethod](networkextension/nevpnikeauthenticationmethod.md)
- [useExtendedAuthentication](networkextension/nevpnprotocolipsec/useextendedauthentication.md)
- [sharedSecretReference](networkextension/nevpnprotocolipsec/sharedsecretreference.md)
- [localIdentifier](networkextension/nevpnprotocolipsec/localidentifier.md)
- [remoteIdentifier](networkextension/nevpnprotocolipsec/remoteidentifier.md)

## Relationships

### Inherits From

- [NEVPNProtocol](networkextension/nevpnprotocol.md)

### Inherited By

- [NEVPNProtocolIKEv2](networkextension/nevpnprotocolikev2.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### VPN configuration

- [NEVPNManager](networkextension/nevpnmanager.md)
- [NEVPNProtocolIKEv2](networkextension/nevpnprotocolikev2.md)
- [NEVPNProtocol](networkextension/nevpnprotocol.md)
- [VPN On Demand Rules](networkextension/vpn-on-demand-rules.md)
