BROOK is server software written in Go
Supports Shadowsocks UDP and TCP forwarding
Software installation
First, determine whether the server is 32-bit or 64-bit
uname -m
If the result shows x86_64 , then it is 64-bit; if it returns i386或i686 , then it is 32-bit.
32-bit software download
wget https://github.com/txthinking/brook/releases/download/v20171113/brook_linux_386
64-bit software download
wget https://github.com/txthinking/brook/releases/download/v20171113/brook
Then grant brook execute permissions
chmod +x brook
Usage
Single-port forwarding
Note: here, 6.6.6.6:8888 is the IP and port of the target SS server,
and the preceding 6666 is the port that the local server listens on.
For example, when using Shadowsocks, enter the IP address of the local forwarding server
and port 6666, and it will automatically forward to the target server’s IP 6.6.6.6 and port 888.
nohup ./brook relay -l :6666 -r 6.6.6.6:8888 > /dev/null 2>&1 &
Multi-port forwarding
nohup ./brook relays -l ":2333 2.2.2.2:6666" -l ":6666 3.3.3.3:6688" -l ":8888 6.6.6.6:7766" > /dev/null 2>&1 &