-
-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log remote addrs for layer4 servers #22
Comments
Are you referring to these log emissions specifically, which occur at the end of every connection? Lines 103 to 106 in ddf050b
If so, it will be pretty easy to add the client's IP address. |
That would be a great step for debugging alone but I was also looking for it on the layer4 specific lines like:
|
I don't understand. "matched ..." then what? Please be clear about what you're requesting. |
Ah, I was trying to be clear of course, but there's no way to know if one suceeded until the other party consumes the message. In this case, it seems I failed, so I'll try again. Logging in caddy-l4 is split up by module. The generic connection stats you mention come from the top level For example here's one log output: The idea then is to be able to add a connecting IP field to these module specific log lines since it's a key property of each step of the processing. That being said, the top level connection stats contain IP goes a long way in debugging general problems but wanted to describe the more general idea as well. |
Ok, gotcha. Thanks. I added the remote IP to a bunch of logs in 3cfcafe. |
I'm currently trying out caddy-l4 for SSL passthrough to backend service and trying to debug remote address problems throughout the stack.
In this process, I noticed that even with top level logging config set to DEBUG my logs I see logs from my routes but they don't contain any information about the remote client which would be useful for ascertaining what IP caddy thinks is hitting me and implementing remote IP based routing.
The text was updated successfully, but these errors were encountered: