项目地址:https://github.com/
1. 编译:
安装golang1.5.1,配置好环境变量,然后运行:
go get github.com/shell909090/
go build github.com/shell909090/
cp goproxy ~
cd ~
创建key:
同样head -c 16 /dev/random | base64 记住这个KEY 创建json,配置如下: vi gopconfig.json
{ "mode": "server", "listen": ":5678", "logfile": "my.log", "loglevel": "WARNING", "adminiface": "127.0.0.1:5234", "cipher": "aes", "key": "your key", "passwd": { "username": "password" } } 把key和username,password,填进去,
然后ESC,:wq存盘退出 至此VPS服务端配置完毕 然后运行: ./goproxy -config gopconfig.json 服务端全部搞定 客户端: 用同样方法编译出win或者linux的可执行文件goprox y,然后创建json配置文件,gopconfig.json, 内容如下: { "mode": "http", "listen": ":8000", "server": "VPS IP:5678", "logfile": "my.log", "loglevel": "WARNING", "adminiface": "127.0.0.1:5234", "dnsnet": "internal", "cipher": "aes", "key": "your key", "username": "username", "password": "password" }
把key和username,password,填进去, 存盘退出。
windows下新建一个批处理gopclient.bat, 内容: goproxy -config ./gopconfig.json,然后运行
gopclient.bat
linux客户端直接运行:./
goproxy -config ./gopconfig.json
排错日志输出在my.log
最后浏览器新建一个http 127.0.0.1:8000的代理,enjoy!
作者:Gary12 来源:https://groups.google.com