gsw945 / socks5-simulation

socks5 server with network simulation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

socks5-simulation

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包源加速和安装Go包

# 启用 Go Mod
set GO111MODULE=on
# 使用国内源
set GOPROXY=https://proxy.golang.com.cn,direct
# 安装Go包
go mod tidy -v

(三)、Windows 编译&运行

# 编译
go build -o socks5-simulation.exe main.go
# 运行
.\socks5-simulation.exe --listen 0.0.0.0:2060

(四)、Linux 编译&运行

# 编译
go build -o socks5-simulation main.go
# 运行
./socks5-simulation --listen 0.0.0.0:2060

参考

计划参考

About

socks5 server with network simulation

License:MIT License


Languages

Language:Go 98.6%Language:Batchfile 1.4%