欢迎光临
我们一直在努力

Goproxy内网使用_ goproxy 教程 _goproxy 内网穿透_goagent安卓版下载

Goproxy内网使用_ goproxy 教程 _goproxy 内网穿透_goagent安卓版下载

关于 goproxy

Proxy 是 golang 实现的高性能 http,https,websocket,tcp, 防污染 DNS,socks5 代理服务器, 支持内网穿透, 链式代理, 通讯加密, 智能 HTTP,SOCKS5 代理, 域名黑白名单, 跨平台,KCP 协议支持, 集成外部 API。

 

最近刚入门了go语言的基础语法等内容,为了更加深入学习go语言,也由于本人对网络协议方面比较感兴趣,于是,便看起了goproxy这个开源项目。

项目地址:https://github.com/snail007/goproxy

然而,在使用上边的自动安装/半自动安装脚本进行安装脚本时,由于网络的问题,压缩包总是一直下载 不下来。于是,边打算自己编译安装。

步骤如下:

1. 将项目文件夹copy到$GOPATH/src/github.com/snail007/goproxy目录下。

2. 使用go build github.com/snail007/goproxy进行编译(本人go语言版本1.8,系统为ubuntu14.04)。

3. 使用go install github.com/snail007/goproxy进行安装。安装后可以看到,在$GOPATH/bin目录下就能看到goproxy应用啦。

4. 进入到goproxy的源码根目录,运行以下脚本。

cp $GOPATH/bin/goproxy /usr/bin/
chmod +x /usr/bin/goproxy
if [ ! -e /etc/proxy ]; then
mkdir /etc/proxy
cp blocked /etc/proxy
cp direct /etc/proxy
fi

if [ ! -e /etc/proxy/proxy.crt ]; then
cd /etc/proxy/
goproxy keygen >/dev/null 2>&1
fi
rm -rf /tmp/proxy
然后goproxy就可以运行啦。
---------------------

Linux之CentOS上部署安装goproxy服务端

 
goproxy下载
https://github.com/phuslu/goproxy/releases/tag/goproxy

可以根据你自己的系统选择。

我的电脑是 win7 x64位的,所以我选择: goproxy_windows_amd64-r707.7z

本文演示,也只演示该版本的配置!!!

配置步骤
我就继续这篇文章 利用Heroku搭建免费科学爬墙(亲测可行) 中搭建成功的网址来演示。

ruyo.herokuapp.com

1> 首选解压 goproxy_windows_amd64-r707.7z

2> 我们需要修改里面2个文件 php.json 和 httpproxy.json

PHP.json 修改2部分

“URL”:”https://ruyo.herokuapp.com/index.do” 注意要替换你的网址哦。

“SSLVerify”:true

1
2
3
4
5
6
7
8
"Servers": [
{
"Url": "https://ruyo.herokuapp.com/index.do",
"Password": "123456",
"SSLVerify": true,
"Host": "",
}
],

httpproxy.json

修改第三行: “Enabled”:false

修改”PHP”: 下面一行:

“Enabled”:true

“Address”: “127.0.0.1:8087”

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
"Default": {
"Enabled": false,
"Address": "127.0.0.1:8087",
"KeepAlivePeriod": 0,
"ReadTimeout": 600,
"WriteTimeout": 3600,
"RequestFilters": [
// "auth",
// "rewrite",
"stripssl",
"autorange",
],
"RoundTripFilters": [
"autoproxy",
// "auth",
// "vps",
// "php",
"gae",
"direct",
],
"ResponseFilters": [
"autorange",
// "rewrite",
// "ratelimit",
]
},
"PHP": {
"Enabled": true,
"Address": "127.0.0.1:8087",
"KeepAlivePeriod": 0,
"ReadTimeout": 600,
"WriteTimeout": 3600,
"RequestFilters": [
"stripssl",
],
"RoundTripFilters": [
"autoproxy",
"php",
],
"ResponseFilters": [
]
},
}

3> 修改完成后,双击 goproxy-gui.exe 运行。屏幕右下角会显示个小图标。右键小图标有设置IE代理。

常见问题
启动GoProxy证书报错

删除旧GoAgent证书。导入新证书即可。新证书在 goproxy文件夹中 GoProxy.crt

No related posts.

赞(0)
未经允许不得转载:福利吧|福利社|fuliba » Goproxy内网使用_ goproxy 教程 _goproxy 内网穿透_goagent安卓版下载

相关推荐

  • 暂无文章