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

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