<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.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/NEProxySettings",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:objc(cs)NEProxySettings"
  },
  "title" : "NEProxySettings"
}
-->

# NEProxySettings

`NEProxySettings` contains HTTP proxy settings.

```
class NEProxySettings
```

## Overview

`NEProxySettings` is used in the context of a VPN configuration to specify the proxy that should be used for network traffic when the VPN is active.

Instances of this class are thread safe.

## Topics

### Accessing Automatic Proxy Properties

[`autoProxyConfigurationEnabled`](/documentation/NetworkExtension/NEProxySettings/autoProxyConfigurationEnabled)

A Boolean indicating if proxy auto-configuration is enabled.

[`proxyAutoConfigurationURL`](/documentation/NetworkExtension/NEProxySettings/proxyAutoConfigurationURL)

A URL specifying the location from where the Proxy Auto Configuration (PAC) script should be downloaded.

[`proxyAutoConfigurationJavaScript`](/documentation/NetworkExtension/NEProxySettings/proxyAutoConfigurationJavaScript)

A string containing the Proxy Auto Configuration (PAC) JavaScript source code.

### Accessing Manual Proxy Properties

[`HTTPEnabled`](/documentation/NetworkExtension/NEProxySettings/httpEnabled)

A Boolean indicating if a static HTTP proxy will be used.

[`HTTPServer`](/documentation/NetworkExtension/NEProxySettings/httpServer)

An [`NEProxyServer`](/documentation/NetworkExtension/NEProxyServer) object containing the static HTTP proxy server settings.

[`HTTPSEnabled`](/documentation/NetworkExtension/NEProxySettings/httpsEnabled)

A Boolean indicating if a static HTTPS proxy will be used.

[`HTTPSServer`](/documentation/NetworkExtension/NEProxySettings/httpsServer)

An [`NEProxyServer`](/documentation/NetworkExtension/NEProxyServer) object containing the static HTTPS proxy server settings.

[`NEProxyServer`](/documentation/NetworkExtension/NEProxyServer)

`NEProxyServer` contains settings for a proxy server.

### Accessing General Proxy Properties

[`excludeSimpleHostnames`](/documentation/NetworkExtension/NEProxySettings/excludeSimpleHostnames)

A Boolean indicating if HTTP requests using single-label host names should be excluded from using the proxy settings.

[`exceptionList`](/documentation/NetworkExtension/NEProxySettings/exceptionList)

An array of domain name patterns. If the destination host name of an HTTP connection matches one of these patterns then the proxy settings will not be used for the connection.

[`matchDomains`](/documentation/NetworkExtension/NEProxySettings/matchDomains)

An array of domain strings.

## Relationships

### Conforms To

[`NSCopying`](/documentation/Foundation/NSCopying)

[`Equatable`](/documentation/Swift/Equatable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Hashable`](/documentation/Swift/Hashable)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)