﻿---
title: When to configure proxy settings
description: Configure proxy settings for Elastic Agent when it must connect through a proxy server to: Download artifacts from artifacts.elastic.co for subprocesses...
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4643/reference/fleet/elastic-agent-proxy-config
products:
  - Elastic Agent
  - Fleet
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available in 9.0+
---

# When to configure proxy settings
Configure proxy settings for Elastic Agent when it must connect through a proxy server to:
- Download artifacts from `artifacts.elastic.co` for subprocesses or binary upgrades (use [Agent binary download settings](/elastic/docs-content/pull/4643/reference/fleet/fleet-settings#fleet-agent-binary-download-settings))
- Send data to Elasticsearch
- Retrieve agent policies from Fleet Server
- Retrieve agent policies from Elasticsearch (only needed for agents running Fleet Server)

![Image showing connections between Elastic Agent](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4643/reference/fleet/images/agent-proxy-server.png)

If Fleet is unable to access the Elastic Package Registry because Kibana is behind a proxy server, you may also need to set the registry proxy URL in the Kibana configuration.
![Image showing connections between Fleet and the Elastic Package Registry](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4643/reference/fleet/images/fleet-epr-proxy.png)