---
title: The Docker daemon should disable the Userland Proxy service
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog Security > OOTB Rules > The Docker daemon should disable the
  Userland Proxy service
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# The Docker daemon should disable the Userland Proxy service
Classification:complianceFramework:cis-dockerControl:2.17 
## Description{% #description %}

The Docker daemon should forward published ports with only iptables rules, with the userland proxy off.

## Rationale{% #rationale %}

The userland proxy runs a docker-proxy process for every published port. On current kernels, the iptables rules of Docker forward the ports alone, and the proxy only adds processes that listen on the host.

## Audit{% #audit %}

Look for the userland proxy on the dockerd command line and in `daemon.json`:

```bash
ps -o args= -C dockerd
grep '"userland-proxy"' /etc/docker/daemon.json
```

Datadog reads `--userland-proxy` on the dockerd command line or, if it isn't set there, `userland-proxy` in `daemon.json`. It passes the rule when the setting is false and fails it otherwise.

## Remediation{% #remediation %}

Set `userland-proxy` to false in `daemon.json`:

```json
{
  "userland-proxy": false
}
```

Then restart the daemon with `systemctl restart docker`.

## Impact{% #impact %}

Some older kernels and some network setups, such as hairpin connections to a published port from the host, need the proxy.

## Default value{% #default-value %}

The userland proxy is on.

## References{% #references %}

1. [https://windsock.io/the-docker-proxy/](https://windsock.io/the-docker-proxy/)
1. [https://github.com/moby/moby/issues/14856](https://github.com/moby/moby/issues/14856)
1. [https://github.com/moby/moby/issues/22741](https://github.com/moby/moby/issues/22741)
1. [https://docs.docker.com/engine/network/](https://docs.docker.com/engine/network/)
