> For the complete documentation index, see [llms.txt](https://wiki.datadike.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.datadike.com/pam/administration/connectivity/proxy.md).

# Proxy

Reach assets through an intermediate jump machine when the solution has a route into the network but not to the assets themselves.

A **Proxy** is the record that describes an intermediate machine the solution uses as a jump point. Instead of connecting to the asset, the solution connects to the proxy and, from inside it, reaches the final destination. The screen states the purpose directly: *"Reach assets through a gateway when the network isn't directly accessible"*.

## What this is and when to use it

The connection **leaves the solution and travels toward the asset network**. The solution opens a session on the proxy using an account registered on it and forwards the traffic to the asset through that session.

That has one consequence worth stating up front: **the solution must be able to reach the proxy over the network**. Use a proxy when there is a route to one machine in the target network but not to the assets themselves — a segmented subnet where only one server is reachable, or an environment where only one host has the port opened on the firewall.

{% hint style="info" %}
**Proxy and gateway are two halves of the same mechanism, not two mechanisms.** The proxy is the record you attach assets to; the jump machines themselves are gateways registered inside it, on the proxy's **Gateways** tab. The console does not offer a separate "proxy engine" you configure elsewhere. See [Gateways](https://wiki.datadike.com/pam/administration/connectivity/gateways.md) for the jump machines.
{% endhint %}

A proxy corresponds to a **zone** — the place where the assets live, such as a data centre, a public cloud, or a VPC. Gateways are configured inside the zone, and users log in to the assets through them when the network cannot be reached directly.

### Proxy or broker

| Situation                                                                           | Mechanism  |
| ----------------------------------------------------------------------------------- | ---------- |
| The solution reaches a machine in the network, but not the assets                   | **Proxy**  |
| The solution cannot reach the network at all, and you will not open an inbound port | **Broker** |

{% hint style="warning" %}
An asset uses **either a proxy or a broker gateway, never both**. They are alternative paths to the same goal, and the asset registration form makes you choose one.
{% endhint %}

## Before you start

* A network route from the solution to the proxy machine, with the port opened in the solution-to-proxy direction.
* An **account with a credential** registered on the proxy machine — the jump is performed with it.
* The proxy machine must be able to see the assets it will serve.
* The platform of each target asset must allow proxied connections. On [Platforms](https://wiki.datadike.com/pam/administration/assets/platforms.md), the **Gateway enabled** switch in **Quick update** controls whether connections to that platform may pass through a gateway.

## Steps

1. In **Console › Gateway › Proxy**, use **Create** and give the proxy a name and a description that identifies the network it represents.
2. On the proxy's **Gateways** tab, associate the jump machines that belong to it. Registering those machines is covered in [Gateways](https://wiki.datadike.com/pam/administration/connectivity/gateways.md), and preparing a Linux one in [Prepare a Linux jump host](https://wiki.datadike.com/pam/administration/connectivity/jump-host-setup.md).
3. Attach the assets that will be reached through this proxy. The proxy's **Assets** tab shows everything currently bound to it.
4. Grant the usual access authorization to the users who need those assets — a proxied asset is authorized like any other.

Existing proxies can be imported from a file with **Upload**, and the list can be exported with **Export**.

## What you should see

![The Proxy screen, listing the zones](https://1085357737-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7xzJyi9JVzRwnV6JzUho%2Fuploads%2Fgit-blob-f25dd8678e79558eb105e33599368e523f7659aa%2Fproxy.png?alt=media)

**1** How many zones exist.

The list shows the registered proxies with a total at the top. Selecting an item opens the detail panel on the right, with three tabs:

| Tab          | Content                         |
| ------------ | ------------------------------- |
| **Detail**   | Registration data for the proxy |
| **Gateways** | Associated jump machines        |
| **Assets**   | Assets that use this proxy      |

The **Detail** tab shows **Name**, **Devices** (how many devices are served), **Gateway**, **Date created**, **Update date** and **Description**.

## How to verify it worked

Nothing on the Proxy screen proves that the jump itself works — the list will show a proxy with a gateway attached whether or not traffic can actually flow. Verify against an asset instead:

1. Open the asset in [Inventory](https://wiki.datadike.com/pam/administration/assets/inventory.md) and run **Test connectivity** from its **Quick update** block. Success means the solution reached the asset through the jump path.
2. Start a real session with one of the [connection methods](https://wiki.datadike.com/pam/administration/sessions/connection-methods.md). The session opens and is recorded exactly as a direct session would be.
3. Back on the proxy's **Detail** tab, the **Devices** count and the **Assets** tab should list the assets you attached.

## Common errors

| Symptom                                                             | Cause                                                                          | Fix                                                                                                   |
| ------------------------------------------------------------------- | ------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------- |
| Sessions to the assets fail, though the proxy record looks complete | The solution has no route or no open port to the proxy machine                 | Open the path in the solution-to-proxy direction; the connection is always outbound from the solution |
| The session fails while authenticating on the jump machine          | The proxy has no account with a credential, or the credential is wrong         | Register an account with a working credential on the proxy machine — the jump is made with it         |
| The connection ignores the proxy and goes straight to the asset     | The asset's platform does not allow proxied connections                        | Turn on **Gateway enabled** for that platform                                                         |
| The asset registration will not accept both paths                   | An asset may use a proxy or a broker gateway, not both                         | Decide which path that asset uses and clear the other                                                 |
| The proxy is reachable but only some assets work                    | The jump machine cannot see the remaining assets from its own network position | Check reachability from the jump machine to each asset, not from the solution                         |

## Field reference

### Toolbar

| Control                 | What it does                                 |
| ----------------------- | -------------------------------------------- |
| **Create**              | Registers a new proxy                        |
| **Upload**              | Imports proxies from a file                  |
| **Export**              | Exports the list                             |
| **Search**, **Refresh** | Finds and reloads entries                    |
| Sorting and columns     | Change the order and which columns are shown |

### Optional list columns

The column selector turns these on and off: **Assets**, **Description**, **Gateway** and **Tags**. **Name** and **Actions** are always shown and cannot be hidden.

## Related pages

* [Gateways](https://wiki.datadike.com/pam/administration/connectivity/gateways.md) — the jump machines registered inside a proxy
* [Broker](https://wiki.datadike.com/pam/administration/connectivity/broker.md) — the reverse path, for networks the solution cannot reach
* [Platforms](https://wiki.datadike.com/pam/administration/assets/platforms.md) — where **Gateway enabled** is set
* [Inventory](https://wiki.datadike.com/pam/administration/assets/inventory.md) — attaching assets and testing connectivity
* [Connection methods](https://wiki.datadike.com/pam/administration/sessions/connection-methods.md) — how users open the session
