# How can I add a Middleware to a TCP Router created with TLSRoute from Gateway API?

**URL:** <https://community.traefik.io/t/how-can-i-add-a-middleware-to-a-tcp-router-created-with-tlsroute-from-gateway-api/29636>\
**Category:** Traefik\
**Tags:** kubernetes-ingress, kubernetes-crd\
**Created:** [January 31, 2026, 10:47am UTC](https://community.traefik.io/t/how-can-i-add-a-middleware-to-a-tcp-router-created-with-tlsroute-from-gateway-api/29636 "2026-01-31T10:47:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hbobenicio](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/hbobenicio/32/11080_2.png) [@hbobenicio](https://community.traefik.io/u/hbobenicio)\
**Post date:** [January 31, 2026, 10:47am UTC](https://community.traefik.io/t/how-can-i-add-a-middleware-to-a-tcp-router-created-with-tlsroute-from-gateway-api/29636/1 "2026-01-31T10:47:36Z")

</div>

I’m using Traefik as a Gateway API Controller.

I’m configuring an HTTPRoute and a TLSRoute.

With help of this excellent doc ([Advanced - Traefik](https://doc.traefik.io/traefik/expose/kubernetes/advanced/)) I managed to add Middlewares to my HTTPRoute using the `filter` property of type `ExtensionRef` of the RuleSpec of HTTP (from the Gateway API Spec: [Standard - Kubernetes Gateway API](https://gateway-api.sigs.k8s.io/reference/spec/#httprouterule)).

But TLSRoute doesn’t seem to have a similiar “TLSRouteRule filter” spec ([Standard - Kubernetes Gateway API](https://gateway-api.sigs.k8s.io/reference/spec/#tlsrouterule)).

So… how can I add a Middleware to a Traefik TCP Router created with TLSRoute from Gateway API (which doesn’t have the convenient filter field in its spec)?

Thank you in advance.
