簡介
你可能經常會發現自己身邊有多個網絡連接配接,例如移動裝置上的 3G/4G,又或者 Wi-Fi 熱點等等,但你的系統隻會允許你使用一種網絡連接配接。
例如,我家中具備有線/無線兩種接入網際網路方式,兩者都有 1200kB/s 的上傳/下載下傳速度,兩者可以同時地滿速使用。同時,我的移動裝置上也可以提供 400kB/s 的下載下傳/上傳速度。
Dispatch-Proxy 可以幫你聯合這些可用的網絡連接配接,平衡配置設定上傳下載下傳的任務,這就相當于讓你擁有一個 2800kB/s 下載下傳/上傳速度的網絡連接配接。
這個工具可以在 Mac OS X,Windows 和 Linux 上使用。
詳細的安裝說明:
- Windows: imgur album
- Mac OS X:
安裝
你需要在你系統上安裝好 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]
-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)之間的本地位址。