socks5 server with network simulation, like clumsy but for Socks5 proxy.
支持网络模拟的 Socks5 服务器, 像 clumsy, 但是用于 Socks5 代理。
# 项目结构搭建
mkdir socks5-simulation
cd socks5-simulation/
go mod init socks5-simulation
# Go 包安装
go get github.com/urfave/cli/v3@latest
go get github.com/txthinking/socks5
go get github.com/txthinking/runnergroup
go get github.com/yanlinLiu0424/godivert
touch main.go
国内加速克隆:
git clone https://mirror.ghproxy.com/https://github.com/gsw945/socks5-simulation.git
git clone https://github.com/gsw945/socks5-simulation.git
cd socks5-simulation
# 启用 Go Mod
set GO111MODULE=on
# 使用国内源
set GOPROXY=https://proxy.golang.com.cn,direct
# 安装Go包
go mod tidy -v
# 编译
go build -o socks5-simulation.exe main.go
# 运行
.\socks5-simulation.exe --listen 0.0.0.0:2060
# 编译
go build -o socks5-simulation main.go
# 运行
./socks5-simulation --listen 0.0.0.0:2060