lyndonhao / gogo-tester

Automatically exported from code.google.com/p/gogo-tester
0 stars 0 forks source link

Goagent 局域网使用问题,麻烦版主一下 #35

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
首先感谢你提供的测试工具,确实很好用。

我在部署局域网使用的时候,
修改[listen]
#监听ip,如果需要允许局域网/公网使用,设为0.0.0.0即可
ip = 0.0.0.0

和

#二级代理,一般内网会用到
[proxy]  
#是否启用
enable = 1
autodetect = 1
#代理服务器地址
host = 192.168.1.211
#代理服务器端口
port = 8080   

运行后

------------------------------------------------------
GoAgent Version    : 3.1.18 (python/2.7.6 gevent/1.0.1 pyopenssl/0.13)
Uvent Version      : 0.3.0 (pyuv/0.11.0-dev libuv/0.11.2-pre)
Listen Address     : 0.0.0.0:8087
Local Proxy        : 192.168.1.211:8080
GAE Mode           : https
GAE Profile        : ipv4
GAE APPID          : ******
Pac Server         : http://192.168.1.211:8086/proxy.pac
Pac File           : file://Z:\goagent\goagent-3.1.18\local\proxy.pac
DNS Listen         : 192.168.1.211:53
DNS Servers        : 42.120.21.30|208.67.222.222|208.67.220.220|114.114.114.114|
114.114.115.115
------------------------------------------------------

浏览器设置成全局代理,但是在服务器端出现以下错误:

ERROR - [Jun 23 15:15:16] create_http_request "POST https://goagentset2.appspot.
com/2" failed:[Errno 10061] 由于目标计算机积极拒绝,无法连接。
Traceback (most recent call last):
  File "proxy.py", line 1847, in create_http_request
  File "proxy.py", line 2594, in create_ssl_connection
  File "proxy.py", line 2577, in create_tcp_connection
  File "Z:\goagent\goagent-3.1.18\local\python27.zip\gevent\socket.py", line 591
, in create_connection
error: [Errno 10061] 由于目标计算机积极拒绝,无法连接。

INFO - [Jun 23 15:15:16] URLFETCH "GET http://www.baidu.com/" fetchserver='https
://goagentset2.appspot.com/2' error(10061, '\xd3\xc9\xd3\xda\xc4\xbf\xb1\xea\xbc
\xc6\xcb\xe3\xbb\xfa\xbb\xfd\xbc\xab\xbe\xdc\xbe\xf8\xa3\xac\xce\xde\xb7\xa8\xc1
\xac\xbd\xd3\xa1\xa3'), retry...
INFO - [Jun 23 15:15:16] 192.168.1.6:52376 "MOCK GET http://www.baidu.com/ HTTP/
1.1" 502 1509

试了一个晚上没有解决,不知道可否帮忙指点以下

先谢过!

Original issue reported on code.google.com by Hombre....@gmail.com on 23 Jun 2014 at 7:18

GoogleCodeExporter commented 8 years ago
如果你想让其他电脑通过你的电脑翻墙,直接设置[listen]的ip=
0.0.0.0就可以了,使用的时候其他电脑或者手机的代理IP写你��
�脑的IP。
[proxy]选项是你的GoAgent需要通过代理进行连接是时候用的。
也就是 你的请求->Goagent->[proxy]->网络

Original comment by arbiterazzvx on 23 Jun 2014 at 7:45

GoogleCodeExporter commented 8 years ago
另外还有CA证书的问题,需要其他电脑或者手机也导入Goagent��
�前使用的CA证书。

Original comment by arbiterazzvx on 23 Jun 2014 at 7:48

GoogleCodeExporter commented 8 years ago
感谢,已经测试成功,有需要我为项目做点什么贡献的请直��
�,一定全力帮忙

Original comment by Hombre....@gmail.com on 23 Jun 2014 at 7:54