Comments (5)
Forgot to add : even with rc1, both the router and the service appear in Traefik dashboard as if everything were OK. Only the routing is broken
from traefik.
mmm, after some more debugging, the problem is not with the service mesh support. But with proxyProtocol.trustedIPs on the entrypoint (I set this as 10.99.9.1 is my HAProxy which can expose services from the outside, working as an L4 proxy, so I need the proxyProtocol support to get the real client IP).
Not sure what's special about it, because the same proxyProtocol.trustedIPs is also used on other entrypoints (like one for a postgres service, and several http services), but removing it makes my mariadb instance accessible again
from traefik.
Hello @dani,
Thanks for reporting this!
We are unsure about a few things to be able to reproduce the issue:
mmm, after some more debugging, the problem is not with the service mesh support. But with proxyProtocol.trustedIPs on the entrypoint (I set this as 10.99.9.1 is my HAProxy which can expose services from the outside, working as an L4 proxy, so I need the proxyProtocol support to get the real client IP).
When you are trying to connect to MariaDB is this through HAPRoxy?
Not sure what's special about it, because the same proxyProtocol.trustedIPs is also used on other entrypoints (like one for a postgres service, and several http services), but removing it makes my mariadb instance accessible again
Did you remove the whole proxyProtocol configuration or just the trustedIPs
configuration?
Can you please share the full DEBUG logs of Traefik when reproducing the problem?
from traefik.
Ok, so here are some more info
- I encounter the issue when I connect directly, not using HAProxy (this particular service is not yet exposed by HAProxy, I just configure all my entrypoints like this so if I need to expose it, everything is ready)
- trustedIPs is the only attribute under proxyProtocol, so I have to remove the whole proxyProtocol node (as specifying an empty node as proxyProtocol: {} is invalid and Traefik fails to start)
- The only logs in DEBUG are (filtered, as this Traefik handles quite a lot of other, unrelated trafic)
2024-02-19T16:15:25+01:00 DBG github.com/traefik/traefik/v3/pkg/middlewares/ipallowlist/ip_allowlist.go:85 > Accepting IP 192.168.7.32 middlewareName=ip-trusted@file middlewareType=IPAllowLister
2024-02-19T16:15:26+01:00 DBG github.com/traefik/traefik/v3/pkg/tcp/proxy.go:41 > Handling TCP connection address=10.99.9.11:23953 remoteAddr=10.99.20.2:35772
2024-02-19T16:15:31+01:00 DBG github.com/traefik/traefik/v3/pkg/server/server_entrypoint_tcp.go:452 > IP 10.99.20.2 is not in trusted IPs list, ignoring ProxyProtocol Headers and bypass connection entryPointName=mariadb
Note :
- I did set a IPAllowList middleware on this service (omitted when I opened the issue because it's not relevant, the issue is the same with or without this middleware)
- 10.99.20.2 is the IP of the client trying to connect (and getting a timeout)
- 10.99.9.11:23953 is the correct address for the backend service (IP:port of the envoy proxy in the service mesh)
from traefik.
Thanks for your feedback!
We are able to reproduce the problem, configuring the readTimout
option on the entryPoint should do the trick.
Stay tuned, we are working on a fix.
from traefik.
Related Issues (20)
- Latest is still 2.11.1 HOT 3
- v2.11.2 migration guide possibly incomplete HOT 1
- TCP+TLS connection kill in 3.0.0-rc5 HOT 14
- Does settings a readTimeout to 0 still protect us against CVE-2024-28869? HOT 5
- Provider icon size is not consistant with the other dashboard icons HOT 1
- Websocket ping/pong timeout not working HOT 5
- Display conflicting configuration in dashboard as failed routes HOT 2
- /metrics sometimes return "has a label named 'service' whose value is not utf8" HOT 2
- Gitlab desktop client connect not found HOT 1
- Switch to Kubernetes EndpointSlices API HOT 2
- Fix UI unit tests
- Traefik should prompt for MTLs client certificates in the browser HOT 1
- Enable STARTTLS for origin Postgres server in TLSRoute of Kubernetes Gateway API HOT 2
- Activate tracing by routers HOT 2
- Timeout (499 Client Closed Request) issue introduced with v2.11.2 (working correctly with all previous versions) HOT 1
- grpc bi directional streaming - READTIMEOUT HOT 1
- Middlewares: IpAllowList doesn't work with localhost HOT 1
- upload file > 2G Fail with traefik 2.11 HOT 4
- Traefik does not attach itself to provided docker networks.
- Run Traefik as windows native service
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from traefik.