google-code-export / snova

Automatically exported from code.google.com/p/snova
1 stars 4 forks source link

什么情况 #157

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
2012/11/06 10:56:35 gae.go:252: Failed to request data from 
GAE:aaaaaaaaa.appspot.com for:http: error connecting to proxy 
https://www.google.com.hk:443: dial tcp 74.125.31.107:443: i/o timeout
2012/11/06 10:56:35 gae.go:187: http: error connecting to proxy 
https://www.google.com.hk:443: dial tcp 74.125.31.107:443: i/o timeout
2012/11/06 10:56:40 gae.go:252: Failed to request data from 
GAE:aaaaaaaaa.appspot.com for:http: error connecting to proxy 
https://www.google.com.hk:443: dial tcp 74.125.31.107:443: i/o timeout
2012/11/06 10:56:40 gae.go:187: http: error connecting to proxy 
https://www.google.com.hk:443: dial tcp 74.125.31.107:443: i/o timeout
2012/11/06 10:56:40 gae.go:770: Failed to auth appid:http: error connecting to 
proxy https://www.google.com.hk:443: dial tcp 74.125.31.107:443: i/o timeout
2012/11/06 10:56:40 launch.go:81: [WARN]Failed to init GAE:http: error 
connecting to proxy https://www.google.com.hk:443: dial tcp 74.125.31.107:443: 
i/o timeout

Original issue reported on code.google.com by pazz7ven on 6 Nov 2012 at 3:07

GoogleCodeExporter commented 9 years ago
默认通过https连接google站点(GAE),这个说明此时无法直接连
接到https://www.google.com.hk

Original comment by yinqiwen@gmail.com on 6 Nov 2012 at 5:00

GoogleCodeExporter commented 9 years ago
好像是dnsmasq的设置问题 
请问为什么把源码打包成一个执行文件 
修改起来不是很麻烦吗

Original comment by pazz7ven on 6 Nov 2012 at 9:54

GoogleCodeExporter commented 9 years ago
Go是个像C的编译型语言,修改了还是要编译的

Original comment by yinqiwen@gmail.com on 6 Nov 2012 at 10:28

GoogleCodeExporter commented 9 years ago
这样阿 
如果编译的话那个dns.go的不是用的本地dns解析的,如果用远��
�的非标准端口会不会好一些,比如opendns 
5353端口,或者整合到本地dns 这样是否能避免干扰 还有就是C4
让所有非google被墙的https网站默认走C4

Original comment by pazz7ven on 6 Nov 2012 at 10:56

GoogleCodeExporter commented 9 years ago
1. 
DNS是用的Hosts下的TrustedDNS配置的地址解析的,端口目前固定��
�53,不能修改
2. C4,GAE配合设置参考 http://code.google.com/p/snova/issues/detail?id=155

Original comment by yinqiwen@gmail.com on 6 Nov 2012 at 11:03

GoogleCodeExporter commented 9 years ago
  {
    "Protocol" : "https",
    "Proxy":  ["C4"]
  },
这样的话似乎google的所有https都走C4啦 影响速度阿 
我只把cloud_spac.json的改了下
    "Protocol" : "http",
    "Host": ["twitter.com", "facebook.com"],
    "Attr":  ["RedirectHttps"]
  },
  {
    "Protocol" : "https",
    "Host": ["twitter.com"],
    "Proxy": ["C4"]
  },
  {
    "Protocol" : "https",
    "Host": ["facebook.com"],
    "Proxy": ["C4"]
  },

如果能再只能点就好了

所有google的网站无论http还是https都走gae
所有被墙的https型非google网站都走C4
其他被墙的http型默认走gae 如果被限制 其次再走C4

Original comment by pazz7ven on 6 Nov 2012 at 11:28

GoogleCodeExporter commented 9 years ago
1. 
google的大部分站点已经在cloud_spac.json中配置了,包括被屏蔽��
�
2. 
默认https的被屏蔽的会尝试直连的,facebook似乎可以直连;失�
��则按规则
3. 多个站点用同一规则可以写在一起, 
proxy选择也可写多个,就是首个失败则第二个,失败则第三个
   {
    "Protocol" : "https",
    "Host": ["facebook.com", “twitter.com”],
    "Proxy": ["C4","GAE"]
  },
4. spac支持isBlockedByGFW, 你可以仔细看下cloud_spac.json;

Original comment by yinqiwen@gmail.com on 6 Nov 2012 at 11:40

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
2012/11/06 19:50:37 dispatch.go:137: Session[38]Process error:No proxy found 
for request 'CONNECT twitter.com:443' with 1 candidates for host:twitter.com:443
2012/11/06 19:50:37 dispatch.go:197: Session[38]Failed to read http request:use 
of closed network connection
2012/11/06 19:50:37 gae.go:516: Session[39]Request CONNECT 
https://twitter.com:443
2012/11/06 19:50:37 cert.go:55: Failed to get tls cert:open 
/home/zzzzzzzz/proxy/gsnova/cert/host/twitter.com.cert: permission denied
2012/11/06 19:50:37 dispatch.go:103: Session[39][WARN][GAE]Failed to request 
proxy event for reason:open 
/home/zzzzzzz/proxy/gsnova/cert/host/twitter.com.cert: permission denied

Original comment by pazz7ven on 6 Nov 2012 at 11:53

GoogleCodeExporter commented 9 years ago
json格式比较严格,应该是文件格式错误,多个,之类错误;�
��看前面日志是否有相关错误

Original comment by yinqiwen@gmail.com on 6 Nov 2012 at 11:58

GoogleCodeExporter commented 9 years ago
改的时候格式是正确的阿 没改之前也是这个样子 
生成的证书没有读取权限

Original comment by pazz7ven on 6 Nov 2012 at 12:09

Attachments:

GoogleCodeExporter commented 9 years ago
C4是不需要生成证书的,所以一定是规则文件某处格式错误。

Original comment by yinqiwen@gmail.com on 6 Nov 2012 at 1:40

GoogleCodeExporter commented 9 years ago
说的就是gae的伪造证书 规则文件?这个?
  {
    "Host" : [*.xunlei.com*,*.qq.com*,*.duapp.com*,*.sinaapp.com*,*.cn*],
    "Proxy":["Direct"]
  }

Original comment by pazz7ven on 6 Nov 2012 at 3:07

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
这个是错误的,每个字符串要用英文引号包含,估计里面还��
�漏掉逗号的错误;而且这个规则也是多余的,cloud_spac.json最后
有一个规则已经包含大部分需要直连的情况。
 {
    "Filter" : ["!IsBlockedByGFW"],
    "Proxy":["Direct", "Default"]
  }

Original comment by yinqiwen@gmail.com on 6 Nov 2012 at 3:13