一個開源的 SOCKS5/HTTP 多連接流量均衡代理工具
項目地址:https://github.com/Morhaus/di...
簡介
你可能經常會發現自己身邊有多個網絡連接,例如移動設備上的 3G/4G,又或者 Wi-Fi 熱點等等,但你的系統只會允許你使用一種網絡連接。
例如,我家中具備有線/無線兩種接入互聯網方式,兩者都有 1200kB/s 的上傳/下載速度,兩者可以同時地滿速使用。同時,我的移動設備上也可以提供 400kB/s 的下載/上傳速度。
Dispatch-Proxy 可以幫你聯合這些可用的網絡連接,平衡分配上傳下載的任務,這就相當於讓你擁有一個 2800kB/s 下載/上傳速度的網絡連接。
這個工具可以在 Mac OS X,Windows 和 Linux 上使用。
詳細的安裝説明:
- Windows:imgur album
- Mac OS X:imgur album
安裝
你需要在你係統上安裝好 Node.JS >= 0.10.0, 然後:
$ npm install -g dispatch-proxy
更新:
$ npm update -g dispatch-proxy
快速開始
在命令行用 dispatch 就能調用這個模塊
$ dispatch start
這會啓動一個地址為 localhost:1080 的 SOCKS 代理服務器。你只需要把這個地址作為一個 SOCKS 代理設置在你的系統上,你的網絡就會自動平衡地利用所有可用的網絡連接。
用法
$ dispatch -h
Usage: dispatch [options] [command]
Commands:
list list all available network interfaces
start [options] start a proxy server
Options:
-h, --help output usage information
-V, --version output the version number
$ dispatch start -h
Usage: start [options] [addresses]
Options:
-h, --help output usage information
-H, --host <h> which host to accept connections from (defaults to localhost)
-p, --port <p> which port to listen to for connections (defaults to 8080 for HTTP proxy, 1080 for SOCKS proxy)
--http start an http proxy server
--debug log debug info in the console
實例
$ dispatch start --http
啓動一個監聽 localhost:8080 的 HTTP 代理服務器,調度分配連接給每個非內置 IPv4本地地址。
$ dispatch start 10.0.0.0 10.0.0.1
僅僅分配連接到 10.0.0.0 和 10.0.0.1 之間的本地地址。
$ dispatch start 10.0.0.0@7 10.0.0.1@3
分配連接到 10.0.0.0 (可用時間為 7)和 10.0.0.1(可用時間為 3)之間的本地地址。
更多閲讀 Gihub 上的項目説明。
翻譯整理:Segmentfault