---
schema_version: "1"
id: 33e0ece019d1d29f0a3fdbfcedb8546effd726d94591e08da070945a90a08fbf
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.4/policies-pdk-configure-network-proxy.md
canonical_url: https://docs.mulesoft.com/pdk/1.4/policies-pdk-configure-network-proxy
source_site: docs.mulesoft.com
content_type: documentation
content_hash: ea5e2599652a65bc6a4ea55c43eeea72e07199a0236f2bdf2bc80dc07a666379
description: MuleSoft Documentation Site
release: "1.4"
latest: false
---
---
product: Omni Gateway Policy Development Kit (PDK)
version: 1.4
---

# 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.4/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.4/policies-pdk-integration-tests) and
[the debugging environment](https://docs.mulesoft.com/pdk/1.4/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/)
