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

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