<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEVPNStatus",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:@E@NEVPNStatus"
  },
  "title" : "NEVPNStatus"
}
-->

# NEVPNStatus

The possible states of a VPN connection.

```
enum NEVPNStatus
```

## Overview

After the VPN transitions from the [`NEVPNStatus.disconnected`](/documentation/NetworkExtension/NEVPNStatus/disconnected) to the [`NEVPNStatus.disconnecting`](/documentation/NetworkExtension/NEVPNStatus/disconnecting) state, the system doesn’t close TCP connections, but ignores packets to and from established network connections. When the VPN transitions to another state — for example, from a Wi-Fi to a cellular network — the system ignores network traffic and the VPN client typically reconnects to the VPN server.

## Topics

### Statuses

[`NEVPNStatus.disconnecting`](/documentation/NetworkExtension/NEVPNStatus/disconnecting)

The VPN is in the process of disconnecting.

[`NEVPNStatus.reasserting`](/documentation/NetworkExtension/NEVPNStatus/reasserting)

The VPN is in the process of reconnecting.

[`NEVPNStatus.connected`](/documentation/NetworkExtension/NEVPNStatus/connected)

The VPN is connected.

[`NEVPNStatus.connecting`](/documentation/NetworkExtension/NEVPNStatus/connecting)

The VPN is in the process of connecting.

[`NEVPNStatus.disconnected`](/documentation/NetworkExtension/NEVPNStatus/disconnected)

The VPN is disconnected.

[`NEVPNStatus.invalid`](/documentation/NetworkExtension/NEVPNStatus/invalid)

The associated VPN configuration doesn’t exist in the Network Extension preferences or isn’t enabled.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)