Documentation Index
Fetch the complete documentation index at: https://mintlify.com/traefik/traefik/llms.txt
Use this file to discover all available pages before exploring further.
TCP Middlewares
Controlling TCP ConnectionsConfiguration Example
Available TCP Middlewares
| Middleware | Purpose | Area |
|---|---|---|
| InFlightConn | Limits simultaneous connections | Security, Request lifecycle |
| IPAllowList | Limit allowed client IPs | Security, Request lifecycle |
TCP vs HTTP Middlewares
TCP middlewares operate at the transport layer (Layer 4) and have different capabilities compared to HTTP middlewares:- TCP middlewares work with raw TCP connections
- HTTP middlewares can inspect and modify HTTP requests/responses
TCP middlewares cannot inspect HTTP-specific data like headers, methods, or paths. For HTTP traffic, use HTTP middlewares instead.