> For the complete documentation index, see [llms.txt](https://docs.thousandeyes.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thousandeyes.com/product-documentation/traffic-insights/traffic-insights-configuration-guide/configuring-forwarders.md).

# Configuring Forwarders

## Designate an Enterprise Agent

Before exporting network flow data, you need to install and/or designate a ThousandEyes Enterprise Agent as a forwarder within your network. Then, on the ThousandEyes platform, you need to configure the agent to recognize and pass along the exported flow data so it can be ingested into the platform.

![Enabling Enterprise Agent steps](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-327dee26118ca84462ba5bde8bef35c9bcd0f6e5%2Fconfig-guide-1.png?alt=media)

### Installing a New Supported Agent

If you do not yet have a supported Enterprise Agent to use as a forwarder, you can install an Enterprise Agent directly from the ThousandEyes Platform.

For supported-agent information, see [Forwarder Requirements](https://docs.thousandeyes.com/product-documentation/traffic-insights/traffic-insights-system-requirements/forwarder-requirements). For installation instructions, see [Enterprise Agent Installation](https://docs.thousandeyes.com/product-documentation/global-vantage-points/enterprise-agents/installing).

For Docker-based agents, follow [Docker-Based Agent Installation](https://docs.thousandeyes.com/product-documentation/global-vantage-points/enterprise-agents/installing/docker-based-agent-installation) and apply the additional Traffic Insights settings in [Configuring a Docker-Based Forwarder](#configuring-a-docker-based-forwarder) before enabling the Traffic Insights module.

### Finding an Existing Supported Agent

If you already have Enterprise Agents installed, you can check whether any of them are on a supported device.

1. Go to **Network & App Synthetics > Agent Settings**.
2. Select the **Enterprise** screen.
3. On the **Agents** tab, click **Add Filter**.
4. Select **Installation type**.
5. Select **Virtual Appliance**, **Cisco Application Hosting**, and **Docker Container** as appropriate, then click **Apply**.

   ![Installation type filter with Docker Container, Cisco Application Hosting, and Virtual Appliance selected](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-b852d100cae2f096fe0fa2d3d7f463f519b7fbeb%2Finstallation-type-filter-dropdown.png?alt=media)

   * The list of agents automatically updates in line with the filters selected and the total appears to the right of the search field.

Though you may have Enterprise Agents on supported devices, you must still check that the supported devices meet all other compatibility requirements for Traffic Insights for forwarding to work.

For compatibility requirements, see [Forwarder Requirements](https://docs.thousandeyes.com/product-documentation/traffic-insights/traffic-insights-system-requirements/forwarder-requirements).

If no existing Enterprise Agents are on supported devices or don't meet other forwarder requirements, click **Add Agent** on the top right of the screen.

Find instructions for the Enterprise Agent you want to install at [Enterprise Agent Installation](https://docs.thousandeyes.com/product-documentation/global-vantage-points/enterprise-agents/installing).

Once you have identified or installed an Enterprise Agent on a supported device that meets Traffic Insights compatibility requirements, you can enable it for forwarding.

## Configuring a Docker-Based Forwarder

Configuring a Docker-based Enterprise Agent for forwarder enablement follows all the same steps for a generic Docker agent but with updated commands, which we specify below. A Docker agent must also have sufficient resources and published listening ports before you enable Traffic Insights on it.

For generic Docker installation instructions, see [Docker-Based Agent Installation](https://docs.thousandeyes.com/product-documentation/global-vantage-points/enterprise-agents/installing/docker-based-agent-installation). For resource and port requirements, see [Forwarder Requirements](https://docs.thousandeyes.com/product-documentation/traffic-insights/traffic-insights-system-requirements/forwarder-requirements#docker).

1. Choose a validated Docker profile from [Forwarder Requirements](https://docs.thousandeyes.com/product-documentation/traffic-insights/traffic-insights-system-requirements/forwarder-requirements#docker).
   * Allocate no more than 80% of host RAM to the container and set the host's **net.core.rmem\_max** to at least 4194304 bytes before starting the container.
2. Follow the [Docker-Based Agent Installation](https://docs.thousandeyes.com/product-documentation/global-vantage-points/enterprise-agents/installing/docker-based-agent-installation) procedure, with the modifications specified below.
3. Update the following commands for your selected profile:

   * **--memory** and **--memory-swap**: The container memory limit. The default is **2 GB**. Use **4 GB** or **8 GB** depending on your profile. Leave at least 20% of host memory available for the host operating system.
   * **--shm-size**: Add the shared memory command, which should equal 25% of the memory limit.
     * With equal memory and memory-swap limits, the container has no additional swap.
   * **--publish**: Add the UDP and TCP listening ports to the commands. The defaults are **18089** for UDP and **8080** for TCP. Match these to the UDP and TCP listening ports configured for the forwarder.
   * **--cpus**: Optionally, add the CPU resources in the selected profile available to the container. The generated command does not set a CPU limit. If required, add **--cpus** to limit CPU use; otherwise, the container can use all host CPUs. The following examples include this optional limit.

   For the 4 GB container profile, the memory options and optional CPU limit are:

   ```
   --memory=4g \
   --memory-swap=4g \
   --shm-size=1g \
   --cpus=2
   ```

   * For the 8 GB container profile, the memory options and optional CPU limit are:

   ```
   --memory=8g \
   --memory-swap=8g \
   --shm-size=2g \
   --cpus=4
   ```
4. Verify that the generated command publishes the Traffic Insights listening ports. The default mappings are:

   ```
   --publish=18089:18089/udp \
   --publish=8080:8080/tcp
   ```

   * For each mapping, the number before the colon is the host port; the number after the colon is the container port. The container port and protocol must match the forwarder's settings at **Traffic Insights > Settings > Forwarders > Edit Forwarder**. Configure the traffic monitor to use the host IP address and the published host port for that protocol. With the mappings above, use UDP 18089 or TCP 8080 as appropriate.

If a firewall or ACL controls access to the Docker host, allow the traffic monitors to reach the published ports. When using Docker's default bridge network, use the host's reachable IP address rather than the container's private bridge address.

For an existing container that lacks the required resources or port mappings, use the [Reinstalling the Enterprise Agent](https://docs.thousandeyes.com/product-documentation/global-vantage-points/enterprise-agents/installing/docker-based-agent-installation#reinstalling-the-enterprise-agent) procedure to recreate it with the updated options. Retain the same agent name and persistent volumes to preserve the agent's identity. Then enable the Traffic Insights module using the steps below.

## Enable Forwarding

Turning on the Enterprise Agent's forwarding capabilities is a necessary step to enable the agent to receive flow data from your traffic monitor and forward this data to ThousandEyes.

1. Go to **Network & App Synthetics > Agent Settings**.
2. Select the **Enterprise** screen.
3. Select the agent you want to designate as a forwarder from the list to open the edit panel.
4. Select the **Advanced Settings** tab.
5. Scroll down to **Agent Modules**.
   * The Traffic Insights status of this agent shows as either enabled (toggled on) or disabled (toggled off).
6. If Traffic Insights is disabled, click the toggle to enable it.
7. Click **Save Changes**.

![Traffic Insights Forwarder enabled under Agent Modules on the Advanced Settings tab](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-0c0b9f976a94434b105e07470116c4b8fa630cd4%2Ftraffic-insights-agent-module.png?alt=media)

{% hint style="info" %}
The forwarder toggle is grayed out for device types that are unsupported as forwarders. See \[Forwarder Requirements]\(<https://docs.thousandeyes.com/product-documentation/traffic-insights/traffic-insights-system-requirements/forwarder-requirements>) for the list of supported devices.
{% endhint %}

After you enable the Traffic Insights module, use the **Forwarders** screen within **Traffic Insights > Settings** to review flow-record activity, listening ports, and unsupported flow records. See [Managing Forwarders](https://docs.thousandeyes.com/product-documentation/traffic-insights/traffic-insights-management/managing-forwarders) for more information.

To accept traffic flows from a forwarder to an external collector as well as to the ThousandEyes platform, see [Forwarding to External Collectors](https://docs.thousandeyes.com/product-documentation/traffic-insights/traffic-insights-configuration-guide/connecting-external-collectors).
