├── .gitignore ├── .github └── CONTRIBUTING.md ├── en.md └── readme.md /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | .DS_Store 3 | fork 4 | source -------------------------------------------------------------------------------- /.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 2 | ### 在做任何事之前请遵守规则 3 | 4 | - 一个问题, 一个主题 5 | - 用 **英语** 贡献 6 | 7 | ### 我该问什么问题或寻求帮助. 8 | 9 | 1. 请确保您已阅读[维基](https://github.com/txthinking/brook/wiki) 10 | 2. 请确保您已经搜索过[Issue](https://github.com/txthinking/brook/issues?utf8=%E2%9C%93&q=) 11 | 3. 还没解决? 打开一个新问题并准确描述您想要做的事情 12 | 13 | ### 我想报告一个错误. 14 | 15 | 1. 请确保您已阅读[维基](https://github.com/txthinking/brook/wiki) 16 | 2. 请确保您已经搜索过[问题](https://github.com/txthinking/brook/issues?utf8=%E2%9C%93&q=) 17 | 3. 还没解决? 打开新问题并按照问题格式进行操作 18 | 19 | ### 我有个建议. 20 | 21 | 1. 请确保您已阅读[维基](https://github.com/txthinking/brook/wiki) 22 | 2. 请确保您已经搜索过[问题](https://github.com/txthinking/brook/issues?utf8=%E2%9C%93&q=) 23 | 3. 还没解决? 打开一个新问题并准确描述您想要做的事情 24 | 25 | ### 我想创建一个PR. 26 | 27 | 1. 请先创建一个问题 28 | 2. 请创建PR在`develop`分支 29 | -------------------------------------------------------------------------------- /en.md: -------------------------------------------------------------------------------- 1 | # Brook 2 | 3 | [![Build Status](https://travis-ci.org/txthinking/brook.svg?branch=master)](https://travis-ci.org/txthinking/brook) [![Go Report Card](https://goreportcard.com/badge/github.com/txthinking/brook)](https://goreportcard.com/report/github.com/txthinking/brook) [![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0) [![Wiki](https://img.shields.io/badge/docs-wiki-blue.svg)](https://github.com/txthinking/brook/wiki) 4 | 5 |

6 | Brook 7 |

8 | 9 | --- 10 | 11 | ### v20180909 12 | 13 | * VPN on Linux/MacOS/Windows, maybe you can use it for games [wiki](https://github.com/txthinking/brook/wiki/How-to-run-VPN-on-Linux,-MacOS-and-Windows%3F) 14 | 15 | --- 16 | 17 | ### Table of Contents 18 | 19 | * [What is Brook](#what-is-brook) 20 | * [Download](#download) 21 | * [Packages](#packages) 22 | * [**Server**](#server) 23 | * [**Client (CLI)**](#client-cli) 24 | * [**Client (GUI)**](#client-gui) 25 | * [Tunnel](#tunnel) 26 | * [Tproxy](#tproxy) 27 | * [VPN](#vpn) 28 | * [Relay](#relay) 29 | * [Socks5](#socks5) 30 | * [Socks5 to HTTP](#socks5-to-http) 31 | * [Shadowsocks](#shadowsocks) 32 | * [Contributing](#contributing) 33 | * [License](#license) 34 | 35 | ## What is Brook 36 | 37 | Brook is a cross-platform proxy/vpn software.
38 | Brook's goal is to keep it simple, stupid and not detectable. 39 | 40 | ## Download 41 | 42 | | Download | Server/Client | OS | Arch | Remark | 43 | | --- | --- | --- | --- | --- | 44 | | [brook](https://github.com/txthinking/brook/releases/download/v20180909/brook) | Server & Client | Linux | amd64 | CLI | 45 | | [brook_linux_386](https://github.com/txthinking/brook/releases/download/v20180909/brook_linux_386) | Server & Client | Linux | 386 | CLI | 46 | | [brook_linux_arm64](https://github.com/txthinking/brook/releases/download/v20180909/brook_linux_arm64) | Server & Client | Linux | arm64 | CLI | 47 | | [brook_linux_arm5](https://github.com/txthinking/brook/releases/download/v20180909/brook_linux_arm5) | Server & Client | Linux | arm5 | CLI | 48 | | [brook_linux_arm6](https://github.com/txthinking/brook/releases/download/v20180909/brook_linux_arm6) | Server & Client | Linux | arm6 | CLI | 49 | | [brook_linux_arm7](https://github.com/txthinking/brook/releases/download/v20180909/brook_linux_arm7) | Server & Client | Linux | arm7 | CLI | 50 | | [brook_linux_mips](https://github.com/txthinking/brook/releases/download/v20180909/brook_linux_mips) | Server & Client | Linux | mips | CLI | 51 | | [brook_linux_mipsle](https://github.com/txthinking/brook/releases/download/v20180909/brook_linux_mipsle) | Server & Client | Linux | mipsle | CLI | 52 | | [brook_linux_mips64](https://github.com/txthinking/brook/releases/download/v20180909/brook_linux_mips64) | Server & Client | Linux | mips64 | CLI | 53 | | [brook_linux_mips64le](https://github.com/txthinking/brook/releases/download/v20180909/brook_linux_mips64le) | Server & Client | Linux | mips64le | CLI | 54 | | [brook_linux_ppc64](https://github.com/txthinking/brook/releases/download/v20180909/brook_linux_ppc64) | Server & Client | Linux | ppc64 | CLI | 55 | | [brook_linux_ppc64le](https://github.com/txthinking/brook/releases/download/v20180909/brook_linux_ppc64le) | Server & Client | Linux | ppc64le | CLI | 56 | | [brook_darwin_amd64](https://github.com/txthinking/brook/releases/download/v20180909/brook_darwin_amd64) | Server & Client | MacOS | amd64 | CLI | 57 | | [brook_windows_amd64.exe](https://github.com/txthinking/brook/releases/download/v20180909/brook_windows_amd64.exe) | Server & Client | Windows | amd64 | CLI | 58 | | [brook_windows_386.exe](https://github.com/txthinking/brook/releases/download/v20180909/brook_windows_386.exe) | Server & Client | Windows | 386 | CLI | 59 | | [Brook.dmg](https://github.com/txthinking/brook/releases/download/v20180909/Brook.dmg) | Client | MacOS | amd64 | GUI | 60 | | [Brook.Setup.exe](https://github.com/txthinking/brook/releases/download/v20180909/Brook.Setup.exe) | Client | Windows | amd64 | GUI | 61 | | [App Store](https://itunes.apple.com/us/app/brook-brook-shadowsocks-vpn-proxy/id1216002642) | Client | iOS | - | GUI | 62 | | [Brook.apk](https://github.com/txthinking/brook/releases/download/v20180909/Brook.apk)(No Google Play) | Client | Android | - | GUI | 63 | 64 | **See [wiki](https://github.com/txthinking/brook/wiki) for more tutorials** 65 | 66 | ## Packages 67 | 68 | ### ArchLinux 69 | 70 | ``` 71 | sudo pacman -S brook 72 | ``` 73 | 74 | ### MacOS(GUI) 75 | 76 | ``` 77 | brew cask install brook 78 | ``` 79 | 80 | ## Brook 81 | 82 | ``` 83 | NAME: 84 | Brook - A Cross-Platform Proxy/VPN Software 85 | 86 | USAGE: 87 | brook [global options] command [command options] [arguments...] 88 | 89 | VERSION: 90 | 20180909 91 | 92 | AUTHOR: 93 | Cloud 94 | 95 | COMMANDS: 96 | server Run as server mode 97 | servers Run as multiple servers mode 98 | client Run as client mode 99 | tunnel Run as tunnel mode 100 | tproxy Run as tproxy mode, transparent proxy, only works on Linux 101 | vpn Run as VPN mode 102 | streamserver Run as server mode 103 | streamservers Run as multiple servers mode 104 | streamclient Run as client mode 105 | ssserver Run as shadowsocks server mode, fixed method is aes-256-cfb 106 | ssservers Run as shadowsocks multiple servers mode, fixed method is aes-256-cfb 107 | ssclient Run as shadowsocks client mode, fixed method is aes-256-cfb 108 | socks5 Run as raw socks5 server 109 | relay Run as relay mode 110 | relays Run as multiple relays mode 111 | qr Print brook server QR code 112 | socks5tohttp Convert socks5 to http proxy 113 | systemproxy Set system proxy with pac url, or remove, only works on MacOS/Windows 114 | help, h Shows a list of commands or help for one command 115 | 116 | GLOBAL OPTIONS: 117 | --debug, -d Enable debug 118 | --listen value, -l value Listen address for debug (default: ":6060") 119 | --help, -h show help 120 | --version, -v print the version 121 | ``` 122 | 123 | ### Server 124 | 125 | ``` 126 | # Run as a brook server 127 | $ brook server -l :9999 -p password 128 | ``` 129 | 130 | ``` 131 | # Run as multiple brook servers 132 | $ brook servers -l ":9999 password" -l ":8888 password" 133 | ``` 134 | 135 | > If you run a public/shared server, do not forget this parameter --tcpDeadline 136 | 137 | ### Client (CLI) 138 | 139 | ``` 140 | # Run as brook client, start a socks5 proxy socks5://127.0.0.1:1080 141 | $ brook client -l 127.0.0.1:1080 -i 127.0.0.1 -s server_address:port -p password 142 | ``` 143 | 144 | ``` 145 | # Run as brook client, start a http(s) proxy http(s)://127.0.0.1:8080 146 | $ brook client -l 127.0.0.1:8080 -i 127.0.0.1 -s server_address:port -p password --http 147 | ``` 148 | 149 | ### Client (GUI) 150 | 151 | See [wiki](https://github.com/txthinking/brook/wiki) 152 | 153 | #### Tunnel 154 | 155 | ``` 156 | # Run as tunnel 127.0.0.1:5 to 1.2.3.4:5 157 | $ brook tunnel -l 127.0.0.1:5 -t 1.2.3.4:5 -s server_address:port -p password 158 | ``` 159 | 160 | #### Tproxy (usually used on Linux router box) 161 | 162 | See [wiki](https://github.com/txthinking/brook/wiki/How-to-run-transparent-proxy-on-Linux%3F) 163 | 164 | #### VPN 165 | 166 | ``` 167 | # Run as VPN to proxy all TCP/UDP. [ROOT privileges required]. 168 | $ sudo brook vpn -l 127.0.0.1:1080 -s server_address:port -p password 169 | ``` 170 | 171 | **See [wiki](https://github.com/txthinking/brook/wiki/How-to-run-VPN-on-Linux,-MacOS-and-Windows%3F) for more tutorials** 172 | 173 | #### Relay 174 | 175 | ``` 176 | # Run as relay to 1.2.3.4:5 177 | $ brook relay -l :5 -r 1.2.3.4:5 178 | ``` 179 | 180 | #### Socks5 181 | 182 | ``` 183 | # Run as a raw socks5 server 1.2.3.4:1080 184 | $ brook socks5 -l :1080 -i 1.2.3.4 185 | ``` 186 | 187 | #### Socks5 to HTTP 188 | 189 | ``` 190 | # Convert socks5://127.0.0.1:1080 to http(s)://127.0.0.1:8080 proxy 191 | $ brook socks5tohttp -l 127.0.0.1:8080 -s 127.0.0.1:1080 192 | ``` 193 | 194 | #### Shadowsocks 195 | 196 | ``` 197 | # Run as a shadowsocks server 198 | $ brook ssserver -l :9999 -p password 199 | ``` 200 | 201 | ``` 202 | # Run as multiple shadowsocks servers 203 | $ brook ssservers -l ":9999 password" -l ":8888 password" 204 | ``` 205 | 206 | > If you run a public/shared server, do not forget this parameter --tcpDeadline 207 | 208 | ``` 209 | # Run as shadowsocks client, start a socks5 proxy socks5://127.0.0.1:1080 210 | $ brook ssclient -l 127.0.0.1:1080 -i 127.0.0.1 -s server_address:port -p password 211 | ``` 212 | 213 | ``` 214 | # Run as shadowsocks client, start a http(s) proxy http(s)://127.0.0.1:8080 215 | $ brook ssclient -l 127.0.0.1:8080 -i 127.0.0.1 -s server_address:port -p password --http 216 | ``` 217 | 218 | > Fixed method is aes-256-cfb 219 | 220 | **See [wiki](https://github.com/txthinking/brook/wiki) for more tutorials** 221 | 222 | ## Contributing 223 | 224 | Please read [CONTRIBUTING.md](https://github.com/txthinking/brook/blob/master/.github/CONTRIBUTING.md) first 225 | 226 | ## License 227 | 228 | Licensed under The GPLv3 License 229 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # txthinking/brook [![translate-svg]][translate-list] 2 | 3 | [translate-svg]: http://llever.com/translate.svg 4 | [translate-list]: https://github.com/chinanf-boy/chinese-translate-list 5 | 6 | 「 Linux / MacOS / Windows 上的 VPN,也许你可以将它用于游戏」 7 | 8 | [中文](./readme.md) | [english](https://github.com/txthinking/brook) 9 | 10 | --- 11 | 12 | ## 校对 ✅ 13 | 14 | 15 | 16 | 17 | 18 | 翻译的原文 | 与日期 | 最新更新 | 更多 19 | ---|---|---|--- 20 | [commit] | ⏰ 2018-09-04 | ![last] | [中文翻译][translate-list] 21 | 22 | [last]: https://img.shields.io/github/last-commit/txthinking/brook.svg 23 | [commit]: https://github.com/txthinking/brook/tree/b6c9fbfe90f9c4132b78f4b7913db8d4566ab1f4 24 | 25 | 26 | 27 | - [x] readme 28 | - [x] [wiki](https://github.com/chinanf-boy/brook-zh/wiki) 29 | 30 | ### 贡献 31 | 32 | 欢迎 👏 勘误/校对/更新贡献 😊 [具体贡献请看](https://github.com/chinanf-boy/chinese-translate-list#贡献) 33 | 34 | ## 生活 35 | 36 | [If help, **buy** me coffee —— 营养跟不上了,给我来瓶营养快线吧! 💰](https://github.com/chinanf-boy/live-need-money) 37 | 38 | --- 39 | 40 | # brook 41 | 42 | [![Build Status](https://travis-ci.org/txthinking/brook.svg?branch=master)](https://travis-ci.org/txthinking/brook) [![Go Report Card](https://goreportcard.com/badge/github.com/txthinking/brook)](https://goreportcard.com/report/github.com/txthinking/brook) [![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0) [![Wiki](https://img.shields.io/badge/docs-wiki-blue.svg)](https://github.com/chinanf-boy/brook-zh/wiki) 43 | 44 |

45 | Brook 46 |

47 | 48 | --- 49 | 50 | ### v20180909 51 | 52 | - Linux / MacOS / Windows 上的 VPN,也许你可以将它用于游戏,[维基](https://github.com/chinanf-boy/brook-zh/wiki/How-to-run-VPN-on-Linux,-MacOS-and-Windows%3F) 53 | 54 | --- 55 | 56 | ### 目录 57 | 58 | 59 | 60 | 61 | 62 | - [什么是 brook](#%E4%BB%80%E4%B9%88%E6%98%AF-brook) 63 | - [下载](#%E4%B8%8B%E8%BD%BD) 64 | - [包获取](#%E5%8C%85%E8%8E%B7%E5%8F%96) 65 | - [Arch Linux](#arch-linux) 66 | - [MacOS (GUI)](#macos-gui) 67 | - [brook](#brook) 68 | - [服务器](#%E6%9C%8D%E5%8A%A1%E5%99%A8) 69 | - [客户端(CLI)](#%E5%AE%A2%E6%88%B7%E7%AB%AFcli) 70 | - [客户端(GUI)](#%E5%AE%A2%E6%88%B7%E7%AB%AFgui) 71 | - [隧道](#%E9%9A%A7%E9%81%93) 72 | - [Tproxy(通常在 Linux 路由器盒上使用)](#tproxy%E9%80%9A%E5%B8%B8%E5%9C%A8-linux-%E8%B7%AF%E7%94%B1%E5%99%A8%E7%9B%92%E4%B8%8A%E4%BD%BF%E7%94%A8) 73 | - [VPN](#vpn) 74 | - [relay](#relay) 75 | - [Socks5](#socks5) 76 | - [Socks5 到 HTTP](#socks5-%E5%88%B0-http) 77 | - [2.6.8](#268) 78 | - [贡献](#%E8%B4%A1%E7%8C%AE) 79 | - [执照](#%E6%89%A7%E7%85%A7) 80 | 81 | 82 | 83 | ## 什么是 brook 84 | 85 | Brook 是一个跨平台的 proxy/VPN 软件.
brook 的目标是保持简单,傻瓜式和潜藏. 86 | 87 | ## 下载 88 | 89 | | 下载 | 服务器/客户端 | OS | Arch 架构 | 备注 | 90 | | ------------------------------------------------------------------------------------------------------------------ | -------------- | ---------- | --------- | ---- | 91 | | [brook](https://github.com/txthinking/brook/releases/download/v20180909/brook) | 服务器和客户端 | Linux | amd64 | CLI | 92 | | [brook_linux_386](https://github.com/txthinking/brook/releases/download/v20180909/brook_linux_386) | 服务器和客户端 | Linux | 386 | CLI | 93 | | [brook_linux_arm64](https://github.com/txthinking/brook/releases/download/v20180909/brook_linux_arm64) | 服务器和客户端 | Linux | arm64 | CLI | 94 | | [brook_linux_arm5](https://github.com/txthinking/brook/releases/download/v20180909/brook_linux_arm5) | 服务器和客户端 | Linux | arm5 | CLI | 95 | | [brook_linux_arm6](https://github.com/txthinking/brook/releases/download/v20180909/brook_linux_arm6) | 服务器和客户端 | Linux | arm6 | CLI | 96 | | [brook_linux_arm7](https://github.com/txthinking/brook/releases/download/v20180909/brook_linux_arm7) | 服务器和客户端 | Linux | arm7 | CLI | 97 | | [brook_linux_mips](https://github.com/txthinking/brook/releases/download/v20180909/brook_linux_mips) | 服务器和客户端 | Linux | mips | CLI | 98 | | [brook_linux_mipsle](https://github.com/txthinking/brook/releases/download/v20180909/brook_linux_mipsle) | 服务器和客户端 | Linux | mipsle | CLI | 99 | | [brook_linux_mips64](https://github.com/txthinking/brook/releases/download/v20180909/brook_linux_mips64) | 服务器和客户端 | Linux | mips64 | CLI | 100 | | [brook_linux_mips64le](https://github.com/txthinking/brook/releases/download/v20180909/brook_linux_mips64le) | 服务器和客户端 | Linux | mips64le | CLI | 101 | | [brook_linux_ppc64](https://github.com/txthinking/brook/releases/download/v20180909/brook_linux_ppc64) | 服务器和客户端 | Linux | ppc64 | CLI | 102 | | [brook_linux_ppc64le](https://github.com/txthinking/brook/releases/download/v20180909/brook_linux_ppc64le) | 服务器和客户端 | Linux | ppc64le | CLI | 103 | | [brook_darwin_amd64](https://github.com/txthinking/brook/releases/download/v20180909/brook_darwin_amd64) | 服务器和客户端 | MacOS | amd64 | CLI | 104 | | [brook_windows_amd64.exe](https://github.com/txthinking/brook/releases/download/v20180909/brook_windows_amd64.exe) | 服务器和客户端 | Window | amd64 | CLI | 105 | | [brook_windows_386.exe](https://github.com/txthinking/brook/releases/download/v20180909/brook_windows_386.exe) | 服务器和客户端 | Window | 386 | CLI | 106 | | [Brook.dmg](https://github.com/txthinking/brook/releases/download/v20180909/Brook.dmg) | 客户端 | MacOS | amd64 | GUI | 107 | | [Brook.Setup.exe](https://github.com/txthinking/brook/releases/download/v20180909/Brook.Setup.exe) | 客户端 | Window | amd64 | GUI | 108 | | [应用商店](https://itunes.apple.com/us/app/brook-brook-shadowsocks-vpn-proxy/id1216002642) | 客户端 | iOS 版 | - | GUI | 109 | | [Brook.apk](https://github.com/txthinking/brook/releases/download/v20180909/Brook.apk)(没有 Google Play) | 客户端 | Android 版 | - | GUI | 110 | 111 | **看[维基](https://github.com/chinanf-boy/brook-zh/wiki)了解更多教程** 112 | 113 | ## 包获取 114 | 115 | ### Arch Linux 116 | 117 | ``` 118 | sudo pacman -S brook 119 | ``` 120 | 121 | ### MacOS (GUI) 122 | 123 | ``` 124 | brew cask install brook 125 | ``` 126 | 127 | ## brook 128 | 129 | ``` 130 | NAME: 131 | Brook - 跨平台 Proxy/VPN 软件 132 | 133 | USAGE: 134 | brook [global options] command [command options] [arguments...] 135 | 136 | VERSION: 137 | 20180909 138 | 139 | AUTHOR: 140 | Cloud 141 | 142 | COMMANDS: 143 | server 以 服务器模式运行 144 | servers 以 多服务器模式运行 145 | client 以客户端模式运行 146 | tunnel 以隧道模式运行 147 | tproxy 运行为tproxy模式,透明代理,仅适用于Linux 148 | vpn 以VPN模式运行 149 | streamserver 以 服务器模式运行 150 | streamservers 以 多服务器模式运行 151 | streamclient 以客户端模式运行 152 | ssserver 以 shadowsocks服务器模式运行,默认方法是aes-256-cfb 153 | ssservers 以 shadowsocks运行多个服务器模式,默认方法是aes-256-cfb 154 | ssclient 以 shadowsocks客户端模式运行,默认方法是aes-256-cfb 155 | socks5 以 原始socks5服务器运行 156 | relay 以 中继模式运行 157 | relays 以 多中继器模式运行 158 | qr 打印brook服务器的二维码 159 | socks5tohttp 将socks5转换为http代理 160 | systemproxy 使用 pac url设置系统代理,或删除,仅适用于 MacOS /Windows 161 | help, h 显示一个命令的命令列表或帮助 162 | 163 | GLOBAL OPTIONS: 164 | --debug, -d Enable debug 165 | --listen value, -l value Listen address for debug (default: ":6060") 166 | --help, -h show help 167 | --version, -v print the version 168 | ``` 169 | 170 | ### 服务器 171 | 172 | ``` 173 | # Run as a brook server 174 | $ brook server -l :9999 -p password 175 | ``` 176 | 177 | ``` 178 | # Run as multiple brook servers 179 | $ brook servers -l ":9999 password" -l ":8888 password" 180 | ``` 181 | 182 | > 如果您运行公共/共享服务器,请不要忘记此`--tcpDeadline`参数 183 | 184 | ### 客户端(CLI) 185 | 186 | ``` 187 | # 运行 brook client, 执行 socks5 proxy socks5://127.0.0.1:1080 188 | $ brook client -l 127.0.0.1:1080 -i 127.0.0.1 -s server_address:port -p password 189 | ``` 190 | 191 | ``` 192 | # 运行 brook client, 启动 http(s) proxy http(s)://127.0.0.1:8080 193 | $ brook client -l 127.0.0.1:8080 -i 127.0.0.1 -s server_address:port -p password --http 194 | ``` 195 | 196 | ### 客户端(GUI) 197 | 198 | 看[维基](https://github.com/chinanf-boy/brook-zh/wiki) 199 | 200 | #### 隧道 201 | 202 | ``` 203 | # Run as tunnel 127.0.0.1:5 to 1.2.3.4:5 204 | $ brook tunnel -l 127.0.0.1:5 -t 1.2.3.4:5 -s server_address:port -p password 205 | ``` 206 | 207 | #### Tproxy(通常在 Linux 路由器盒上使用) 208 | 209 | 看[维基](https://github.com/chinanf-boy/brook-zh/wiki/How-to-run-transparent-proxy-on-Linux%3F) 210 | 211 | #### VPN 212 | 213 | ``` 214 | # Run as VPN to proxy all TCP/UDP. [需要 ROOT 权限]. 215 | $ sudo brook vpn -l 127.0.0.1:1080 -s server_address:port -p password 216 | ``` 217 | 218 | **看[维基](https://github.com/chinanf-boy/brook-zh/wiki/How-to-run-VPN-on-Linux,-MacOS-and-Windows%3F)了解更多教程** 219 | 220 | #### relay 221 | 222 | ``` 223 | # Run as relay to 1.2.3.4:5 224 | $ brook relay -l :5 -r 1.2.3.4:5 225 | ``` 226 | 227 | #### Socks5 228 | 229 | ``` 230 | # Run as a raw socks5 server 1.2.3.4:1080 231 | $ brook socks5 -l :1080 -i 1.2.3.4 232 | ``` 233 | 234 | #### Socks5 到 HTTP 235 | 236 | ``` 237 | # Convert socks5://127.0.0.1:1080 to http(s)://127.0.0.1:8080 proxy 238 | $ brook socks5tohttp -l 127.0.0.1:8080 -s 127.0.0.1:1080 239 | ``` 240 | 241 | #### 2.6.8 242 | 243 | ``` 244 | # Run as a shadowsocks server 245 | $ brook ssserver -l :9999 -p password 246 | ``` 247 | 248 | ``` 249 | # Run as multiple shadowsocks servers 250 | $ brook ssservers -l ":9999 password" -l ":8888 password" 251 | ``` 252 | 253 | > 如果您运行公共/共享服务器,请不要忘记此`--tcpDeadline`参数 254 | 255 | ``` 256 | # Run as shadowsocks client, start a socks5 proxy socks5://127.0.0.1:1080 257 | $ brook ssclient -l 127.0.0.1:1080 -i 127.0.0.1 -s server_address:port -p password 258 | ``` 259 | 260 | ``` 261 | # Run as shadowsocks client, start a http(s) proxy http(s)://127.0.0.1:8080 262 | $ brook ssclient -l 127.0.0.1:8080 -i 127.0.0.1 -s server_address:port -p password --http 263 | ``` 264 | 265 | > 默认方法是 aes-256-cfb 266 | 267 | **看[维基](https://github.com/chinanf-boy/brook-zh/wiki)了解更多教程** 268 | 269 | ## 贡献 270 | 271 | 请阅读[CONTRIBUTING.md](.github/CONTRIBUTING.md)先 272 | 273 | ## 执照 274 | 275 | 根据 GPLv3 许可证获得许可 276 | --------------------------------------------------------------------------------