cmd/tailcat: support forwarding to exit-node targets - #74
Closed
Audi-dask wants to merge 3 commits into
Closed
Conversation
Allow forward mappings to target IP:port destinations reachable through an exit-node server, with end-to-end coverage and README examples.
Member
|
You need to rebase this branch and drop the first commit it seems. |
Contributor
Author
|
Superseded by #75, which is based on the latest main and contains only the exit-node target forwarding changes. |
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.
What does this change do?
Extend
tailcat forwardto expose arbitrary IP:port targets reachable through a Tailnet server running as an exit node.This makes it possible to forward local TCP ports to assets on the exit node's network, including multiple targets in one command, without requiring SOCKS or application-specific proxy support.
Related to #14.
Examples
Start an exit-node server:
tailcat serve exit-node # Server listening with new address: tcXXXXXXXXXForward local ports to two remote targets:
tailcat forward tcXXXXXXXXX \ 3001:172.23.52.30:3001 \ 17170:172.23.52.31:17170This forwards:
Design
tailcat forwardinvocation.Client.DialTCPandProxyConnsAPIs.Testing
Tested with: