Feat: Support TCP proxy - #258
Conversation
Thanks. How exciting is this? :) @almeidapaulopt can this be accepted and merged in please? :) |
|
@nodauf great work! @almeidapaulopt It will be nice to have that merged. I want to use TSD Proxy in my new setup, but I must expose PostgreSQL DB connections. Now it is not possible. Please merge that :) |
|
And I need to access my machines via SSH to connect via VSCode with them and can't do that either yet so can't use TSDProxy for those yet... Please merge :) |
|
@almeidapaulopt have you had a chance to look at this pull request? i'm needing this functionality every day and just have to deploy a new container and am wondering if i need the old tailscale side car route when I would prefer to use tsdproxy but i just need the ssh support... and in this moment i'm wondering how to build tsdproxy from this PR but obviously would prefer if it was included. so just sending a gentle nudge your way and thank you for the tool!! :) |
|
@patrickwolf would you be interesting to test the PR. If you validate the correct implementation and that it work for you, it would maybe help for the review. |
|
Yes I'd be happy to. Could you give me easy instructions on how to turn this PR into a docker container I can use for the test? |
|
I will try to publish a Docker image this week or the next one, and I'll let you know once it's done. |
Thank you for you contribution, I've made some changes. Can you look at it, please? |
|
Nice I'm excited @almeidapaulopt and @nodauf ... it will make tsdproxy usable in so many more scenarios!! |
|
All good with the last commit |
|
@patrickwolf So you can test these changes while the PR is waiting to be merged, I've published a Docker image (https://hub.docker.com/r/nodauf/tsdproxy/tags) This image includes the main feature from this PR and the changes from #260. Let me know if this works for you! |
|
I've tested your docker image, it works great. Usecase is a non-docker server that is part of lists. |
|
Thank you for your feedback |
|
Thank you for doing this. |
|
This project seems unmaintained for now. Maybe we should try and maintain a proper fork? |
|
It works for me too - thank you!. |
Sorry that I have not been able to test it yet. My work pulled me in different directions for now |
|
I'm interested in this for git. Commenting so I see updates |
|
I still hope this code will be integrated and further developed. |
|
Closing this PR — TCP proxy support is already implemented on main. The codebase already has a |
|
Is there an example somewhere of using docker compose labels to use this feature? |
Hi,
Like several others, I encountered a use case where I needed to connect via SSH to a remote Docker container and proxy raw TCP connections (see issues #252, #242, #221).
This PR introduces support for that feature. When a TCP protocol is specified in the Docker label (e.g.
tsdproxy.port.1=22/tcp:22/tcp,no_autodetect), the proxy will use a TCP proxy instead of the default HTTP one.