https://github.com/helloxz/brook-relay
brook relay for docker
https://github.com/helloxz/brook-relay
Last synced: about 1 year ago
JSON representation
brook relay for docker
- Host: GitHub
- URL: https://github.com/helloxz/brook-relay
- Owner: helloxz
- License: apache-2.0
- Created: 2021-01-08T01:28:40.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-01T09:46:23.000Z (about 5 years ago)
- Last Synced: 2025-04-02T22:22:57.257Z (about 1 year ago)
- Language: Shell
- Size: 12.7 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# brook-relay
基于brook relay进行端口转发,打包为Docker镜像。
## 自行构建
```bash
#克隆代码
git clone https://github.com/helloxz/brook-relay.git
#进入代码目录
cd brook-relay
#构建Docker镜像
docker build -t brook-relay .
#运行容器
docker run -itd -e DIP="192.168.1.222" -e DPORT="22" -p 2293:9999 brook-relay
```
* DIP:为目标IP
* DPORT:目标端口
* 2293:本地主机端口(可自行修改)
## Docker hub
如果不想自行构建镜像的同学,也可以直接运行xiaoz已经构建好的镜像,命令为:
```
docker run -itd -e DIP="192.168.1.222" -e DPORT="22" -p 2293:9999 helloz/brook-relay
```