Skip to content

Supports multiple tunnels at the same time #1386

Open

Description

@PRNDA

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.

Activity

  1. txthinking commented on Dec 18, 2025

    @txthinking
    Owner
  2. PRNDA commented on Dec 20, 2025

    @PRNDA
    Author

    Memory usage for multiple processes shouldn't be an issue on modern
    machines I guess, and it's easy to manage using Joker or Z.
    …

    Just for a simple reason: It's far more convenient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions