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

# 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 Omni Gateway Policy Development Kit (PDK). Besides Docker, all tools
downloaded in [PDK prerequisites](https://docs.mulesoft.com/pdk/1.9/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.9/policies-pdk-integration-tests) and
[the debugging environment](https://docs.mulesoft.com/pdk/1.9/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/network/proxy/)

- [Docker Desktop on Mac](https://docs.docker.com/desktop/settings/mac/#proxies)

- [Docker Desktop on Windows](https://docs.docker.com/desktop/settings/windows/#proxies)

- [Docker Desktop on Linux](https://docs.docker.com/desktop/settings/linux/#proxies)
