cmd/tailcat: allow socks mode without cmd - #20
Open
tw4452852 wants to merge 2 commits into
Open
Conversation
This is useful when user only wants to start a general socks proxy server which can accept connections from other applications in the system. Currently, we could still achieve this with this ugly way: `tailcat socks adrblob bash -c 'env | grep all_proxy; read'`. Signed-off-by: Tw <tw19881113@gmail.com> Change-Id: I9f651f4c7780155c0c0bd4f48fa233d16a6a6964
bradfitz
reviewed
Aug 29, 2026
bradfitz
left a comment
Member
There was a problem hiding this comment.
I like the idea of this, thanks! But in this mode, shouldn't you have control over the localhost port number, or maybe even whether the SOCKS5 proxy binds to the unspecified address instead of localhost?
Maybe we need a --listen=string flag for the socks subcommand, and if the string is an integer, it's a localhost port, else it can be ":12345" for 0.0.0.0/:: (i.e. a net.Listen string)
Author
|
Yes, |
Add ability to specify the binding address for the socks proxy server. Signed-off-by: Tw <tw19881113@gmail.com> Change-Id: I1a8298d005f96a9b1db5c2d3fd7628946a6a6964
Author
|
Hi @bradfitz, I've appended a commit to support the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is useful when user only wants to start a general socks proxy server which can accept connections from other applications in the system. Currently, we could still achieve this with this ugly way:
tailcat socks adrblob bash -c 'env | grep all_proxy; read'.Change-Id: I9f651f4c7780155c0c0bd4f48fa233d16a6a6964