Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有关 COW 如何检测被墙网站 #50

Open
graminc opened this issue Jun 14, 2013 · 10 comments
Open

有关 COW 如何检测被墙网站 #50

graminc opened this issue Jun 14, 2013 · 10 comments

Comments

@graminc
Copy link

graminc commented Jun 14, 2013


COW 如何检测被墙网站

COW 将以下错误认为是墙在作怪:

服务器连接被重置 (connection reset)
创建连接超时
服务器读操作超时

下面这一条归类到 创建连接超时 或 服务器读操作超时 当中了吧,
错误 324 (net::ERR_EMPTY_RESPONSE):服务器已断开连接,且未发送任何数据。
单独作为一条,检测效率是否更高效。

Snova / GSnova 增强的PAC实现SPAC(Special Proxy Auto Config)
http://code.google.com/p/snova/ https://github.com/yinqiwen/gsnova
默认的智能代理127.0.0.1:48100,全局代理127.0.0.1:48102
使用智能代理48100端口翻墙效果很好。好像是使用gfwlist转换成pac,我没看明白。

wallproxy
http://code.google.com/p/wallproxy/
http://code.google.com/p/wwqgtxx-goagent/ 中的 wwqgtxx-wallproxy-Release-noFirefox-1.3.7z 使用的就是wallproxy ,启动后在系统右下角托盘处,单击 设置代理 打开代理设置对话框。

默认的智能代理127.0.0.1:8086,自动代理pac(自动更新) 作用于 IE浏览器代理设置, internet属性 →局域网设置 → 使用自动配置脚本 PAC。

wallproxy智能代理 比 自动代理pac 要强大,有些被墙的网页,自动代理pac模式下打不开,智能代理可以很顺利打开。使用智能代理8086端口翻墙效果很好。

希望作者观察对比一下,他们的检测机制如何,融合wallproxy 、Snova的优点。

@cyfdecyf
Copy link
Owner

谢谢你的建议,有时间的话我会看下他们的实现。

@retopara
Copy link

+1

@glacjay
Copy link
Contributor

glacjay commented Jan 4, 2014

最近又遇到 500 的情况了,直接访问和通过 COW 都返回 500 ,但通过 SSH 等代理访问就 OK 。

@cyfdecyf
Copy link
Owner

cyfdecyf commented Jan 4, 2014

@glacjay 用 COW 的时候二级代理是 shadowsocks 还是本地起的 ssh 代理?

@glacjay
Copy link
Contributor

glacjay commented Jan 4, 2014

试过 SS 、COW 、SSH 三种二级代理,结果一样。改了下代码,已临时解决。

@cyfdecyf
Copy link
Owner

cyfdecyf commented Jan 5, 2014

又是有些网站直连会返回 500 错误么?

@glacjay
Copy link
Contributor

glacjay commented Jan 5, 2014

是的,附示例:

╰─$ curl -D - blogspot.com
HTTP/1.1 500 Internal Server Error
Server: gcached
Date: Sun, 05 Jan 2014 12:26:26 GMT
Content-Type: text/html
Content-Length: 283
X-GC-Error: 54.READ_ERROR.JS-MOBILE-NJ-02_221_178_200_113
Connection: close

<TITLE>Service Unavailable - Connection Error</TITLE>

Service Unavailable

Connection reset by peer

Reference #54.df415ba7.4a7d80bf.1388924786

@glacjay
Copy link
Contributor

glacjay commented Jan 6, 2014

给跪了,Windows 版没这问题。

@wwqgtxx
Copy link

wwqgtxx commented Jan 11, 2014

不打算去支持gfwlist么?

@cyfdecyf
Copy link
Owner

@wwqgtxx 使用 gfwlist 的话也就没有必要使用 COW 了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants