---
schema_version: "1"
id: b854893de1f14ef3710bb097a9eae18e225c15f8e88e5b238e5ad45761bf097a
title: Configuring a Network Proxy for PDK
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/pdk/1.2/policies-pdk-configure-network-proxy.md
canonical_url: https://docs.mulesoft.com/pdk/1.2/policies-pdk-configure-network-proxy
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 18823edb08324ff0e294a6a4397940833f22dfcb8a29b65ec31d200ec8d5a9f6
description: MuleSoft Documentation Site
release: "1.2"
latest: false
---
---
product: Omni Gateway Policy Development Kit (PDK)
version: 1.2
---

# Configuring a Network Proxy for PDK

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

If you use a network proxy to connect to the internet, you might have to define the network proxy
for the software tools used by Flex Gateway Policy Development Kit (PDK). Besides Docker, all tools
downloaded in [PDK prerequisites](https://docs.mulesoft.com/pdk/1.2/policies-pdk-prerequisites) accept the `HTTP_PROXY` and
`HTTPS_PROXY` environment variables.

To configure your environment variable, refer to
[Configure a Network Proxy](#configure-a-network-proxy).

To use Docker with a network proxy, see
[Configure a Network Proxy for Docker](#configure-a-network-proxy-for-docker).

> [!NOTE] Depending on your network proxy, you might have to define the domains the PDK tools access
> in your proxy’s allowlist.

## Configure a Network Proxy

Configure your `HTTP_PROXY` or `HTTPS_PROXY` environment variables by running one of the following
commands after replacing the variable values with your information:

- `HTTP_PROXY`:

  ```ssh
  export HTTP_PROXY=<proxy-method>://<proxy-server>:<proxy-port>
  ```

- `HTTPS_PROXY`:

  ```ssh
  export HTTPS_PROXY=<proxy-method>://<proxy-server>:<proxy-port>
  ```

- If your network proxy requires authentication, use the following command:

  ```ssh
  export HTTPS_PROXY=<proxy-method>://<username>:<password>@<proxy-server>:<proxy-port>
  ```

## Configure a Network Proxy for Docker

[Integration testing](https://docs.mulesoft.com/pdk/1.2/policies-pdk-integration-tests) and
[the debugging environment](https://docs.mulesoft.com/pdk/1.2/policies-pdk-debug-local) require Docker.

Docker requires access to the internet to pull Docker images. To configure a network proxy for
Docker, refer to the following Docker documentation for your relevant use case:

- [Docker CLI Client](https://docs.docker.com/engine/cli/proxy/)

- [Docker Desktop on Mac](https://docs.docker.com/desktop/settings-and-maintenance/settings/)

- [Docker Desktop on Windows](https://docs.docker.com/desktop/settings-and-maintenance/settings/)

- [Docker Desktop on Linux](https://docs.docker.com/desktop/settings-and-maintenance/settings/)
