txthinking / txthinking/brook

Supports multiple tunnels at the same time

Open
#1,386 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
15.2k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

Sometimes I need to set up multiple tunnels, and I have to run multiple brook processes at the same time.

What I want is something like this:

brook relayoverbrook \
    --link "brook://wssserver?password=PASS&wssserver=wss%3A%2F%2Fexample.com%3A443%2F" \
    --from 127.0.0.1:3306 --to remote-db.example.com:3306 \
    --from 127.0.0.1:6379 --to remote-redis.example.com:6379 \
    --from 127.0.0.1:8080 --to remote-web.example.com:8080

or like this:

brook relayoverbrook \
    --link "brook://wssserver?password=PASS&wssserver=wss%3A%2F%2Fexample.com%3A443%2F" \
    --tunnel 127.0.0.1:3306,remote-db.example.com:3306 \
    --tunnel 127.0.0.1:6379,remote-redis.example.com:6379 \
    --tunnel 127.0.0.1:8080,remote-web.example.com:8080

Allowing multiple --from --to parameters to support multiple tunnels in a single process instance.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the relayoverbrook command and inspect how its --from and --to parameters are parsed and used. Compare the current single-tunnel behavior with the requested repeated parameters or --tunnel form. Done means one brook process can establish all three example tunnels concurrently without requiring separate processes.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.