Skip to content

Commit 034a4ba

Browse files
committed
v20240214
1 parent b78e10d commit 034a4ba

File tree

24 files changed

+285
-1208
lines changed

24 files changed

+285
-1208
lines changed

OPENSOURCELICENSES

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -933,3 +933,29 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
933933
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
934934
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
935935
SOFTWARE.
936+
937+
#### code_field
938+
939+
https://github.com/BertrandBev/code_field
940+
941+
MIT License
942+
943+
Copyright (c) 2021 Bertrand Bevillard
944+
945+
Permission is hereby granted, free of charge, to any person obtaining a copy
946+
of this software and associated documentation files (the "Software"), to deal
947+
in the Software without restriction, including without limitation the rights
948+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
949+
copies of the Software, and to permit persons to whom the Software is
950+
furnished to do so, subject to the following conditions:
951+
952+
The above copyright notice and this permission notice shall be included in all
953+
copies or substantial portions of the Software.
954+
955+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
956+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
957+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
958+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
959+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
960+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
961+
SOFTWARE.

README.md

Lines changed: 29 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,10 @@ Table of Contents
9999
* [Run brook socks5 with username and password. A stand-alone standard socks5 server](#run-brook-socks5-with-username-and-password-a-stand-alone-standard-socks5-server)
100100
* [brook relayoverbrook can relay a local address to a remote address over brook, both TCP and UDP, it works with brook server wsserver wssserver.](#brook-relayoverbrook-can-relay-a-local-address-to-a-remote-address-over-brook-both-tcp-and-udp-it-works-with-brook-server-wsserver-wssserver)
101101
* [brook dnsserveroverbrook can create a encrypted DNS server, both TCP and UDP, it works with brook server wsserver wssserver.](#brook-dnsserveroverbrook-can-create-a-encrypted-dns-server-both-tcp-and-udp-it-works-with-brook-server-wsserver-wssserver)
102-
* [brook tproxy Transparent Proxy Gateway on official OpenWrt](#brook-tproxy-transparent-proxy-gateway-on-official-openwrt)
103-
* [brook tproxy Transparent Proxy Gateway on any Linux (wired)](#brook-tproxy-transparent-proxy-gateway-on-any-linux-wired)
104-
* [GUI for official OpenWrt](#gui-for-official-openwrt)
102+
* [Brook OpenWRT Router: Perfectly supports IPv4/IPv6/TCP/UDP. Native IPv6](#brook-openwrt-router-perfectly-supports-ipv4ipv6tcpudp-native-ipv6)
103+
* [Turn macOS into a Gateway with Brook](#turn-macos-into-a-gateway-with-brook)
104+
* [Turn Windows into a Gateway with Brook](#turn-windows-into-a-gateway-with-brook)
105+
* [Turn Linux into a Gateway with Brook](#turn-linux-into-a-gateway-with-brook)
105106
* [brook relay can relay a address to a remote address. It can relay any tcp and udp server](#brook-relay-can-relay-a-address-to-a-remote-address-it-can-relay-any-tcp-and-udp-server)
106107
* [brook socks5tohttp can convert a socks5 to a http proxy](#brook-socks5tohttp-can-convert-a-socks5-to-a-http-proxy)
107108
* [brook pac creates pac server](#brook-pac-creates-pac-server)
@@ -121,9 +122,10 @@ Table of Contents
121122
* [运行 brook socks5, 一个独立的标准 socks5 server, 指定用户名和密码](#运行-brook-socks5-一个独立的标准-socks5-server-指定用户名和密码)
122123
* [brook relayoverbrook 中继任何 TCP 和 UDP server, 让其走 brook 协议. 它与 brook server wsserver wssserver 一起工作](#brook-relayoverbrook-中继任何-tcp-和-udp-server-让其走-brook-协议-它与-brook-server-wsserver-wssserver-一起工作)
123124
* [brook dnsserveroverbrook 用来创建一个加密 DNS Server, TCP and UDP, 它与 brook server wsserver wssserver 一起工作](#brook-dnsserveroverbrook-用来创建一个加密-dns-server-tcp-and-udp-它与-brook-server-wsserver-wssserver-一起工作)
124-
* [brook tproxy 透明代理网关在官网原版 OpenWrt](#brook-tproxy-透明代理网关在官网原版-openwrt)
125-
* [brook tproxy 透明代理网关在任意 Linux(有线)](#brook-tproxy-透明代理网关在任意-linux有线)
126-
* [官网原版 OpenWrt 图形客户端](#官网原版-openwrt-图形客户端)
125+
* [Brook OpenWRT 路由器,完美支持 IPv4/IPv6/TCP/UDP,Native IPv6](#brook-openwrt-路由器完美支持-ipv4ipv6tcpudpnative-ipv6)
126+
* [使用 Brook 把 macOS 变成网关](#使用-brook-把-macos-变成网关)
127+
* [使用 Brook 把 Windows 变成网关](#使用-brook-把-windows-变成网关)
128+
* [使用 Brook 把 Linux 变成网关](#使用-brook-把-linux-变成网关)
127129
* [brook relay 可以中继任何 TCP 和 UDP server, 这是一个独立的功能, 它不依赖 brook server wsserver wssserver](#brook-relay-可以中继任何-tcp-和-udp-server-这是一个独立的功能-它不依赖-brook-server-wsserver-wssserver)
128130
* [brook socks5tohttp 将 socks5 proxy 转换为 http proxy](#brook-socks5tohttp-将-socks5-proxy-转换为-http-proxy)
129131
* [brook pac 创建一个 pac server](#brook-pac-创建一个-pac-server)
@@ -157,9 +159,9 @@ brook server -l :9999 -p hello
157159

158160
| iOS | Android | Mac |Windows |Linux |OpenWrt |
159161
| --- | --- | --- | --- | --- | --- |
160-
| [![](https://brook.app/images/appstore.png)](https://apps.apple.com/us/app/brook-network-tool/id1216002642) | [![](https://brook.app/images/android.png)](https://github.com/txthinking/brook/releases/latest/download/Brook.apk) | [![](https://brook.app/images/mac.png)](https://apps.apple.com/us/app/brook-network-tool/id1216002642) | [![Windows](https://brook.app/images/windows.png)](https://github.com/txthinking/brook/releases/latest/download/Brook.exe) | [![](https://brook.app/images/linux.png)](https://github.com/txthinking/brook/releases/latest/download/Brook.bin) | [![OpenWrt](https://brook.app/images/openwrt.png)](https://github.com/txthinking/brook/releases) |
161-
162-
> OpenWrt: After installation, you need to refresh the page to see the menu
162+
| [![](https://brook.app/images/appstore.png)](https://apps.apple.com/us/app/brook-network-tool/id1216002642) | [![](https://brook.app/images/android.png)](https://github.com/txthinking/brook/releases/latest/download/Brook.apk) | [![](https://brook.app/images/mac.png)](https://apps.apple.com/us/app/brook-network-tool/id1216002642) | [![Windows](https://brook.app/images/windows.png)](https://github.com/txthinking/brook/releases/latest/download/Brook.msix) | [![](https://brook.app/images/linux.png)](https://github.com/txthinking/brook/releases/latest/download/Brook.app) | [![OpenWrt](https://brook.app/images/openwrt.png)](https://github.com/txthinking/brook/releases) |
163+
| / | / | [App Mode](https://www.txthinking.com/talks/articles/macos-app-mode-en.article) | [How](https://www.txthinking.com/talks/articles/msix-brook-en.article) | [How](https://www.txthinking.com/talks/articles/linux-app-brook-en.article) | [How](https://www.txthinking.com/talks/articles/brook-openwrt-en.article) |
164+
| / | / | [App 模式](https://www.txthinking.com/talks/articles/macos-app-mode.article) | [如何](https://www.txthinking.com/talks/articles/msix-brook.article) | [如何](https://www.txthinking.com/talks/articles/linux-app-brook.article) | [如何](https://www.txthinking.com/talks/articles/brook-openwrt.article) |
163165

164166
## CLI Client
165167

@@ -519,7 +521,7 @@ https://txthinking.github.io/ca/ca.pem
519521
| [hancock](https://github.com/txthinking/hancock) | Manage multiple remote servers and execute commands remotely |
520522
| [sshexec](https://github.com/txthinking/sshexec) | A command-line tool to execute remote command through ssh |
521523
| [jb](https://github.com/txthinking/jb) | write script in an easier way than bash |
522-
| [bash](https://github.com/txthinking/bash) | One-click script 一键脚本 |
524+
| [bash](https://github.com/txthinking/bash) | Many one-click scripts |
523525
| [pacman](https://archlinux.org/packages/extra/x86_64/brook/) | `pacman -S brook` |
524526
| [brew](https://formulae.brew.sh/formula/brook) | `brew install brook` |
525527
| [docker](https://hub.docker.com/r/txthinking/brook) | `docker run txthinking/brook` |
@@ -537,7 +539,6 @@ https://txthinking.github.io/ca/ca.pem
537539
| [Announce](https://t.me/s/txthinking_news) | All news you should care |
538540
| [GitHub](https://github.com/txthinking) | Other useful repos |
539541
| [Socks5 Configurator](https://chromewebstore.google.com/detail/socks5-configurator/hnpgnjkeaobghpjjhaiemlahikgmnghb) | If you prefer CLI brook client |
540-
| [Pastebin](https://paste.brook.app) | Create importable many brook links |
541542
| [Brook Deploy](https://www.txthinking.com/deploy.html) | Deploy brook with GUI |
542543
| [TxThinking](https://www.txthinking.com) | Everything |
543544
@@ -875,7 +876,7 @@ Run as dns server over brook, both TCP and UDP, [src <-> $ brook dnserversoverbr
875876
876877
## tproxy
877878
878-
Run as transparent proxy, a router gateway, both TCP and UDP, only works on Linux, [src <-> $ brook tproxy <-> $ brook server/wsserver/wssserver/quicserver <-> dst]
879+
Run as transparent proxy, a router gateway, both TCP and UDP, only works on Linux, [src <-> $ brook tproxy <-> $ brook server/wsserver/wssserver/quicserver <-> dst]. OpenWRT: https://www.txthinking.com/talks/articles/brook-openwrt-en.article
879880
880881
- **--address**="": When server is brook wsserver or brook wssserver or brook quicserver, specify address instead of resolving addresses from host, such as 1.2.3.4:443
881882
@@ -923,8 +924,6 @@ Run as transparent proxy, a router gateway, both TCP and UDP, only works on Linu
923924
924925
- **--udpovertcp**: When server is brook server, UDP over TCP
925926
926-
- **--webListen**="": Ignore all other parameters, run web UI, like: ':9999'
927-
928927
- **--withoutBrookProtocol**: When server is brook wsserver or brook wssserver or brook quicserver, the data will not be encrypted with brook protocol
929928
930929
## link
@@ -1468,52 +1467,21 @@ brook relayoverbrook ... --from 127.0.0.1:5353 --to 8.8.8.8:53
14681467
brook dnsserveroverbrook ... --listen 127.0.0.1:53
14691468
```
14701469
1471-
## brook tproxy Transparent Proxy Gateway on official OpenWrt
1472-
1473-
**No need to manipulate iptables!**
1474-
1475-
```
1476-
opkg update
1477-
opkg install ca-certificates openssl-util ca-bundle coreutils-nohup iptables iptables-mod-tproxy iptables-mod-socket ip6tables
1478-
```
1470+
## Brook OpenWRT Router: Perfectly supports IPv4/IPv6/TCP/UDP. Native IPv6
14791471
1480-
```
1481-
brook tproxy --link 'brook://...' --dnsListen :5353
1482-
```
1472+
https://www.txthinking.com/talks/articles/brook-openwrt-en.article
14831473
1484-
1. OpenWrt DNS forwardings: OpenWrt Web -> Network -> DHCP and DNS -> General Settings -> DNS forwardings -> 127.0.0.1#5353
1485-
2. OpenWrt Ignore resolve file: OpenWrt Web -> Network -> DHCP and DNS -> Resolv and Hosts Files -> Ignore resolve file
1486-
3. By default, OpenWrt will automatically issue the IP of the router as gateway and DNS for your computers and mobiles
1487-
1488-
## brook tproxy Transparent Proxy Gateway on any Linux (wired)
1489-
1490-
**No need to manipulate iptables!**
1491-
1492-
```
1493-
systemctl stop systemd-resolved
1494-
systemctl disable systemd-resolved
1495-
echo nameserver 8.8.8.8 > /etc/resolv.conf
1496-
```
1497-
1498-
```
1499-
brook tproxy --link 'brook://...' --dnsListen 192.168.1.2:53 --disableAAAA
1500-
```
1474+
## Turn macOS into a Gateway with Brook
15011475
1502-
Replace 192.168.1.2 with your Linux IP. You may need to manually configure the computer or mobile gateway and DNS.
1476+
https://www.txthinking.com/talks/articles/brook-macos-gateway-en.article
15031477
1504-
## GUI for official OpenWrt
1478+
## Turn Windows into a Gateway with Brook
15051479
1506-
**No need to manipulate iptables!**
1480+
https://www.txthinking.com/talks/articles/brook-windows-gateway-en.article
15071481
1508-
port 9999, 8888, 5353 will be used. It work with brook server, brook wsserver, brook wssserver and brook quicserver.
1482+
## Turn Linux into a Gateway with Brook
15091483
1510-
1. Download the [ipk](https://github.com/txthinking/brook/releases) file for your router
1511-
2. Upload and install: OpenWrt Web -> System -> Software -> Upload Package...
1512-
3. Refresh page, the Brook menu will appear at the top
1513-
4. OpenWrt Web -> Brook -> type and Connect
1514-
5. And OpenWrt DNS forwardings: OpenWrt Web -> Network -> DHCP and DNS -> General Settings -> DNS forwardings -> 127.0.0.1#5353
1515-
6. And OpenWrt Ignore resolve file: OpenWrt Web -> Network -> DHCP and DNS -> Resolv and Hosts Files -> Ignore resolve file
1516-
7. By default, OpenWrt will automatically issue the IP of the router as gateway and DNS for your computers and mobiles
1484+
https://www.txthinking.com/talks/articles/brook-linux-gateway-en.article
15171485
15181486
## brook relay can relay a address to a remote address. It can relay any tcp and udp server
15191487
@@ -1776,52 +1744,21 @@ brook relayoverbrook ... --from 127.0.0.1:5353 --to 8.8.8.8:53
17761744
brook dnsserveroverbrook ... --listen 127.0.0.1:53
17771745
```
17781746
1779-
## brook tproxy 透明代理网关在官网原版 OpenWrt
1780-
1781-
**无需操作 iptables!**
1782-
1783-
```
1784-
opkg update
1785-
opkg install ca-certificates openssl-util ca-bundle coreutils-nohup iptables-mod-tproxy iptables-mod-socket ip6tables iptables
1786-
```
1787-
1788-
```
1789-
brook tproxy --link 'brook://...' --dnsListen :5353
1790-
```
1747+
## Brook OpenWRT 路由器,完美支持 IPv4/IPv6/TCP/UDP,Native IPv6
17911748
1792-
1. OpenWrt DNS forwardings: OpenWrt Web -> Network -> DHCP and DNS -> General Settings -> DNS forwardings -> 127.0.0.1#5353
1793-
2. OpenWrt Ignore resolve file: OpenWrt Web -> Network -> DHCP and DNS -> Resolv and Hosts Files -> Ignore resolve file
1794-
3. 默認, OpenWrt 將會下發 router 的 IP 的為電腦或手機的網關和 DNS
1749+
https://www.txthinking.com/talks/articles/brook-openwrt.article
17951750
1796-
## brook tproxy 透明代理网关在任意 Linux(有线)
1797-
1798-
**无需操作 iptables!**
1799-
1800-
```
1801-
systemctl stop systemd-resolved
1802-
systemctl disable systemd-resolved
1803-
echo nameserver 8.8.8.8 > /etc/resolv.conf
1804-
```
1805-
1806-
```
1807-
brook tproxy --link 'brook://...' --dnsListen 192.168.1.2:53 --disableAAAA
1808-
```
1751+
## 使用 Brook 把 macOS 变成网关
18091752
1810-
替换 192.168.1.2 为你的 Linux 的IP. 配置其他机器的网关和 DNS 为这台机器的 IP 即可
1753+
https://www.txthinking.com/talks/articles/brook-macos-gateway.article
18111754
1812-
## 官网原版 OpenWrt 图形客户端
1755+
## 使用 Brook 把 Windows 变成网关
18131756
1814-
**无需操作 iptables!**
1757+
https://www.txthinking.com/talks/articles/brook-windows-gateway.article
18151758
1816-
**端口 9999, 8888, 5353 将会被使用**. 它与 brook server, brook wsserver, brook wssserver, brook quicserver 一起工作.
1759+
## 使用 Brook 把 Linux 变成网关
18171760
1818-
1. 下載適合你系統的[ipk](https://github.com/txthinking/brook/releases)文件
1819-
2. 上傳並安裝: OpenWrt Web -> System -> Software -> Upload Package...
1820-
3. 刷新頁面, 頂部菜單會出現 Brook 按鈕
1821-
4. OpenWrt Web -> Brook -> 輸入後點擊 Connect
1822-
5. OpenWrt DNS forwardings: OpenWrt Web -> Network -> DHCP and DNS -> General Settings -> DNS forwardings -> 127.0.0.1#5353
1823-
6. OpenWrt Ignore resolve file: OpenWrt Web -> Network -> DHCP and DNS -> Resolv and Hosts Files -> Ignore resolve file
1824-
7. 默認, OpenWrt 將會下發 router 的 IP 為電腦或手機的網關和 DNS
1761+
https://www.txthinking.com/talks/articles/brook-linux-gateway.article
18251762
18261763
## brook relay 可以中继任何 TCP 和 UDP server, 这是一个独立的功能, 它不依赖 brook server wsserver wssserver
18271764

0 commit comments

Comments
 (0)