VPS部署新goproxy简明教程

2015/10/07
什么叫新goproxy,是因为有人用go语言写了一个类似于SS的加密隧道工具,
项目地址:https://github.com/shell909090/goproxy

1. 编译:
安装golang1.5.1,配置好环境变量,然后运行:
go get github.com/shell909090/goproxy/goproxy/goproxy/
go build github.com/shell909090/goproxy/goproxy/goproxy/
编译完成
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的可执行文件goproxy,然后创建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.batlinux客户端直接运行:./goproxy -config ./gopconfig.json

排错日志输出在my.log

最后浏览器新建一个http 127.0.0.1:8000的代理,enjoy!


作者:Gary12 来源:https://groups.google.com

Related Posts