Hi, I would like to configure Traefik to be the TCP router in front of transmission on port 51413/tcp. Transmission seems to be fully working, the torrents are able to be downloaded and also uploaded, but my logs are filling with error messages. Should I be concerned, or just ignore the messages?
Logs
2024-08-21T11:31:27-06:00 ERR github.com/traefik/traefik/v3/pkg/tcp/proxy.go:75 > Error while handling TCP connection error="writeto tcp 192.168.99.254:46742->192.168.99.14:51413: read tcp 192.168.99.254:46742->192.168.99.14:51413: read: connection reset by peer"
2024-08-21T11:31:27-06:00 DBG github.com/traefik/traefik/v3/pkg/tcp/proxy.go:104 > Error while terminating TCP connection error="close tcp 192.168.99.254:46742->192.168.99.14:51413: use of closed network connection"
2024-08-21T11:31:27-06:00 DBG github.com/traefik/traefik/v3/pkg/tcp/proxy.go:41 > Handling TCP connection address=192.168.99.14:51413 remoteAddr=41.165.16.146:38085
2024-08-21T11:31:27-06:00 DBG github.com/traefik/traefik/v3/pkg/server/service/loadbalancer/wrr/wrr.go:196 > Service selected by WRR: b08a943dfd7adcad
I can confirm the tcp router is receiving connections:
I can make the errors stop by removing the port definition on the traefik container to no longer publish 51413, but then no more connections are received by the tcp router:
Those are the values I use to override default traefik chart (v28.3.0)
As you can see I need to enable proxy_protocol in order to whitelist the access to the service based on client IP.
It is also may be important to mention that I'm using OVH (french cloud provider) Managed Kubernetes Service.
And these are the IngressRouteTCP that I am using.
This is actually working and I can only access the exposed service with the correct IP.
But like you I keep having these weird logs inside my traefik pods :
2025-01-16T13:51:10Z ERR Error while handling TCP connection error="readfrom tcp 10.2.1.69:41824->10.2.0.37:5432: read tcp 10.2.1.69:5433->10.2.0.0:25309: read: connection reset by peer"
2025-01-16T13:51:10Z ERR Error while handling TCP connection error="readfrom tcp 10.2.1.69:58198->10.2.2.57:5432: read tcp 10.2.1.69:5433->10.2.2.0:27118: read: connection reset by peer"
From psql CLI it seems to be the internal IP used by traefik to forward traffic because the pg_stat_activity table link this IP to my DBeaver or the tool I'm using to access the DB externally.
Sorry to dig up this one year old thread but the issue seems to be the same for me.