jpillora / jpillora/chisel

Support multiple path(or link), aggregate them to one virtual tunnel

Open
#248 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
16.6k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

A server or client machine may have multiple IP addresses, that means, you can reach your server via multiple paths(or links), if you can aggregate these links to one virtual path, you will speed up your tunnel, and get a stable tunnel if implemented failover.

The following alternatives are not easy to use, they are written in C, you need root to run it, and doesn't work in Windows:
Linux Kernel implementation of MultiPath TCP (MPTCP)
Glorytun is a small, simple and secure multipath UDP tunnel.
MLVPN - Multi-Link Virtual Public Network

To implement this feature, chisel should use config file to config the paths, the client side config may look like:

[vpaths.ssh]
protocol = "tcp"
bind = "127.0.0.1:2222"
forwardto = "127.0.0.1:22"
failover=true  # if not all paths are failed, the virtual tunnel connection will keep
balance = "weight"          #  (optional [weight]) "weight" | "leastconn" | "roundrobin" | "leastbandwidth"
auto_retry=true  # if a path failed, try to connect automatically
[vpaths.ssh.path0]
server="https://1.2.3.4:443/path"  # chisel server side entry 1
if="eth0"  # on client machine , chisel use eth0 to connect to https://1.2.3.4:443/path
weight=6
[vpaths.ssh.path1]
server="https://4.3.2.1:443/path"  # chisel server side entry 2
if="ppp0"  # on client machine , chisel use ppp0 to connect to https://4.3.2.1:443/path
weight=4

If chisel support multi-path, and made it easy to deploy, this would be an awesome feature.
Though it's a challenge, the effort will be worth.

Contributor guide

No contributing guide indexed for this repository

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

The issue names no files, tests, or entry points; begin by tracing chisel's client configuration and tunnel connection handling. Done would mean supporting configured multiple paths with aggregation, balancing, interface selection, and failover as described, including Windows compatibility.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.