访问google奇怪的现象,-firefox以后发生的

331 views
Skip to first unread message

weixi...@gmail.com

unread,
Mar 4, 2016, 11:17:18 AM3/4/16
to XX-Net
昨天安装firefox调试好以后,插件使用的pan。发现别的网站都能上,唯独google.com不行。
今天发现论坛说访问google.com/ncr 可以访问,于是我点了一下论坛里的https://www.google.com/ncr的链接,真的进去了。
但是今天我发现,只要是我在地址栏手打google的地址,无论是google.com 还是有ncr,都不能上去。
但奇怪的是,我点网页中google.com的链接 或者ncr的,或是我收藏夹中google.com的地址,或是地址栏中的历史,就能进去。。。我一脸蒙B啊。。
下面贴上我的状态栏信息
属性
本地网络状态 OK
IP数量 107
IP延迟 416
连接池(帮助) 9 / 50
浏览器代理设置 OK
CA证书状态 OK
扫描IP线程数(设置) 0
屏蔽状态 (帮助) OK

配置

属性
监听代理 127.0.0.1:8087
PAC自动代理地址 http://127.0.0.1:8086/proxy.pac(开全局也不行)
IPv6 禁用

Appid

属性
当前工作AppID  马赛克

系统版本

属性
XX-Net Version 2.9.2
Python Version 2.7.11
System Platform AMD64, Windows-10-10.0.10586
OS System Windows
OS Version 10.0.10586
OS Release 10
OS Detail Version:10-0; Build:10586; Platform:2; CSD:; ServicePack:0-0; Suite:256; ProductType:0
Language zh_CN
Architecture 32bit,WindowsPE
Browser Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:44.0) Gecko/20100101 Firefox/44.0

和日志,下面这段是直接手打google.com地址产生的日志 但页面一直等待google响应 进不去 所以我叉掉了
Mar 05 00:08:49.635 - [DEBUG] create_ssl update ip:216.58.194.65 time:1481

Mar 05 00:08:50 - [DEBUG]LOG_EXCEPT: create_ssl update ip:216.58.194.169 time:2077, Except:[Errno 9] Bad file descriptor

Mar 05 00:08:53.046 - [DEBUG] get ip:216.58.194.186 t:516

Mar 05 00:08:53.147 - [DEBUG] get ip:216.58.195.245 t:517

Mar 05 00:08:53.248 - [DEBUG] get ip:208.104.242.80 t:520

Mar 05 00:08:53.348 - [DEBUG] get ip:212.188.49.207 t:524

Mar 05 00:08:53.449 - [DEBUG] get ip:58.69.77.93 t:531

Mar 05 00:08:53.550 - [DEBUG] get ip:216.58.194.215 t:538

Mar 05 00:08:53.651 - [DEBUG] get ip:216.58.194.137 t:547

Mar 05 00:08:53.718 - [DEBUG] create_ssl update ip:216.58.194.186 time:450

Mar 05 00:08:53.751 - [DEBUG] get ip:216.58.195.18 t:549

Mar 05 00:08:53.853 - [DEBUG] get ip:58.69.77.91 t:549

Mar 05 00:08:53.934 - [DEBUG] create_ssl update ip:216.58.195.245 time:529

Mar 05 00:08:53.953 - [DEBUG] get ip:216.58.195.232 t:549

Mar 05 00:08:54.054 - [DEBUG] get ip:216.58.195.242 t:551

Mar 05 00:08:54.138 - [DEBUG] create_ssl update ip:212.188.49.207 time:530

Mar 05 00:08:54.428 - [DEBUG] create_ssl update ip:58.69.77.93 time:754

Mar 05 00:08:54.429 - [DEBUG] create_ssl update ip:216.58.194.137 time:520

Mar 05 00:08:54.660 - [DEBUG] create_ssl update ip:216.58.195.232 time:473

Mar 05 00:08:54.724 - [DEBUG] create_ssl update ip:216.58.195.242 time:447

Mar 05 00:08:54.846 - [DEBUG] create_ssl update ip:58.69.77.91 time:769

Mar 05 00:08:55.716 - [DEBUG] create_ssl update ip:208.104.242.80 time:2129

Mar 05 00:08:57.310 - [DEBUG] create_ssl update ip:216.58.195.18 time:1026

Mar 05 00:08:59.097 - [DEBUG] create_ssl update ip:216.58.194.215 time:4913


然后下面这段是点击主页上google.com (和手打一模一样的地址)产生的日志,并且进去了
Mar 05 00:09:15.204 - [INFO] GAE CONNECT www.google.com:443

Mar 05 00:09:15.213 - [DEBUG] GAE CONNECT Direct GET https://www.google.com/

Mar 05 00:09:16.134 - [INFO] GAE CONNECT www.google.com:443

Mar 05 00:09:16.142 - [DEBUG] GAE CONNECT Direct GET https://www.google.com/complete/search?client=hp&hl=zh-CN&gs_rn=64&gs_ri=hp&tok=bTQeJeVqQXR990Oea3u0hg&cp=0&gs_id=0&q=&xhr=t

Mar 05 00:09:16.383 - [INFO] DIRECT chucked t:240 s:75 200 www.google.com /complete/search?client=hp&hl=zh-CN&gs_rn=64&gs_ri=hp&tok=bTQeJeVqQXR990Oea3u0hg&cp=0&gs_id=0&q=&xhr=t

Mar 05 00:09:16.817 - [INFO] DIRECT chucked t:1602 s:54091 200 www.google.com /

Mar 05 00:09:16.880 - [INFO] GAE CONNECT www.google.com:443

Mar 05 00:09:16.888 - [DEBUG] GAE CONNECT Direct GET https://www.google.com/gen_204?v=3&s=webhp&atyp=csi&ei=Q7PZVoz-HeO8jgTq46v4AQ&imc=2&imn=2&imp=1&e=3700326,3700388,4014828,4029815,4031109,4031139,4032678,4033307,4036509,4036527,4038012,4038214,4038394,4039268,4041776,4042784,4042788,4043041,4043492,4045096,4045293,4045841,4046043,4046187,4046397,4046835,4046837,4046904,4047454,4047593,4048347,4048980,4049063,4049501,4049549,4049553,4050281,4050750,4051241,4051596,4051714,4052091,4052751,4052811,4054284,4054552,4054591,4056038,4056126,4056682,4057170,4057586,4057835,4058016,4058117,4058298,4058316,4058328,4058330,4058337,4058384,4058903,4058908,4058940,4059318,4059766,4060008,4060659,4060886,4060999,4061140,4061202,4061564,4061887,4062070,4062072,4062084,8300272,8300310,8502094,8502986,8503011,8503132,8503303,8503306,8503347,8503367,8503404,8503585,10200084,10200096,10201680&adh=&xjs=init.17.18.sb.13.jsa.1.async.1.fpe.1.m.1&ima=0&rt=xjsls.432,xjses.490,xjsee.523,xjs.523,prt.1244,iml.1271,dcl.1252,jraids.1252,jraide.1258,ol.1272,aft.1244,wsrt.407,cst.0,dnst.0,rqst.1604,rspt.1612,rqstt.20,unt.0,cstt.0,dit.1658

Mar 05 00:09:16.888 - [DEBUG] host_conn_pool www.google.com get:216.58.195.242 handshake:447

Mar 05 00:09:17 - [INFO]LOG_EXCEPT: DIRECT t:226 204 www.google.com /gen_204?v=3&s=webhp&atyp=csi&ei=Q7PZVoz-HeO8jgTq46v4AQ&imc=2&imn=2&imp=1&e=3700326,3700388,4014828,4029815,4031109,4031139,4032678,4033307,4036509,4036527,4038012,4038214,4038394,4039268,4041776,4042784,4042788,4043041,4043492,4045096,4045293,4045841,4046043,4046187,4046397,4046835,4046837,4046904,4047454,4047593,4048347,4048980,4049063,4049501,4049549,4049553,4050281,4050750,4051241,4051596,4051714,4052091,4052751,4052811,4054284,4054552,4054591,4056038,4056126,4056682,4057170,4057586,4057835,4058016,4058117,4058298,4058316,4058328,4058330,4058337,4058384,4058903,4058908,4058940,4059318,4059766,4060008,4060659,4060886,4060999,4061140,4061202,4061564,4061887,4062070,4062072,4062084,8300272,8300310,8502094,8502986,8503011,8503132,8503303,8503306,8503347,8503367,8503404,8503585,10200084,10200096,10201680&adh=&xjs=init.17.18.sb.13.jsa.1.async.1.fpe.1.m.1&ima=0&rt=xjsls.432,xjses.490,xjsee.523,xjs.523,prt.1244,iml.1271,dcl.1252,jraids.1252,jraide.1258,ol.1272,aft.1244,wsrt.407,cst.0,dnst.0,rqst.1604,rspt.1612,rqstt.20,unt.0,cstt.0,dit.1658, Except:[Errno 9] Bad file descriptor

Mar 05 00:09:17.140 - [INFO] GAE CONNECT plus.google.com:443

Mar 05 00:09:17.151 - [DEBUG] GAE CONNECT POST https://plus.google.com/u/0/_/n/gcosuc

Mar 05 00:09:17.151 - [DEBUG] ssl_pool.get:216.58.203.45 handshake:91

Mar 05 00:09:17.412 - [INFO] GAE 1292|216.58.203.45|81286 t:260 s:55 hs:91 200 https://plus.google.com/u/0/_/n/gcosuc

Mar 05 00:09:18.166 - [INFO] GAE CONNECT www.google.com:443

Mar 05 00:09:18.207 - [DEBUG] GAE CONNECT Direct GET https://www.google.com/gen_204?atyp=i&ct=idck&cad=&s=1&ei=Q7PZVoz-HeO8jgTq46v4AQ&zx=1457107758159

Mar 05 00:09:18.208 - [DEBUG] host_conn_pool www.google.com get:216.58.195.242 handshake:447

Mar 05 00:09:18.436 - [INFO] DIRECT t:229 204 www.google.com /gen_204?atyp=i&ct=idck&cad=&s=1&ei=Q7PZVoz-HeO8jgTq46v4AQ&zx=1457107758159

Mar 05 00:09:22.164 - [INFO] GAE CONNECT plus.google.com:443

Mar 05 00:09:22.179 - [DEBUG] GAE CONNECT GET https://plus.google.com/u/0/_/notifications/frame?sourceid=1&hl=zh-CN&origin=https%3A%2F%2Fwww.google.com&uc=1&jsh=m%3B%2F_%2Fscs%2Fabc-static%2F_%2Fjs%2Fk%3Dgapi.gapi.en._cqmy4YB_As.O%2Fm%3D__features__%2Fam%3DAAQ%2Frt%3Dj%2Fd%3D1%2Frs%3DAHpOoo_Od0DD_-BqqphVDSkrTfHyZDmCtA

Mar 05 00:09:22.179 - [DEBUG] ssl_pool.get:216.58.203.45 handshake:91

Mar 05 00:09:22.915 - [INFO] GAE 1292|216.58.203.45|81666 t:736 s:8230 hs:91 Spd:17074 200 https://plus.google.com/u/0/_/notifications/frame?sourceid=1&hl=zh-CN&origin=https%3A%2F%2Fwww.google.com&uc=1&jsh=m%3B%2F_%2Fscs%2Fabc-static%2F_%2Fjs%2Fk%3Dgapi.gapi.en._cqmy4YB_As.O%2Fm%3D__features__%2Fam%3DAAQ%2Frt%3Dj%2Fd%3D1%2Frs%3DAHpOoo_Od0DD_-BqqphVDSkrTfHyZDmCtA

有木有遇到同样情况的

weixi...@gmail.com

unread,
Mar 4, 2016, 11:20:27 AM3/4/16
to XX-Net, weixi...@gmail.com
刚刚试了下edge 并无上述问题,看来是我firefox的问题。。。我清除全部记录再试试

weixi...@gmail.com

unread,
Mar 4, 2016, 11:26:51 AM3/4/16
to XX-Net, weixi...@gmail.com
刚刚清除了firefox所有数据,试了手打所有可以用的地址,都不能上去。再次清除数据,点开收藏夹里的www.google.com ,这次点收藏夹也进不去了。然后我把收藏夹的地址改为www.google.com/ncr,再次清除数据,从收藏夹打开这个带ncr的地址,成功进去。

林华

unread,
Mar 4, 2016, 11:54:33 AM3/4/16
to XX-Net, weixi...@gmail.com
原因可能是这个:
在配置文件中(gae_proxy/local/proxy.ini),google.com被设置成直连(direct)
而输入 google.com 回车后,会跳转到 google.com.hk , 但所连的ip并不是香港的ip,
不给这个域名(google.com.hk)提供服务,所以就一直转圈。

把直连(direct)改成 gae 可能会解决此问题。
但这解释不了为什么用其它浏览器(edge,chrome)可以打开

林华

unread,
Mar 4, 2016, 12:20:37 PM3/4/16
to XX-Net, weixi...@gmail.com
也可能是 http/https 的问题
在进行一系列的跳转时,其它浏览器会强制使用https,而firefox不会,
导致载入不了。

林华

unread,
Mar 4, 2016, 7:31:52 PM3/4/16
to XX-Net, weixi...@gmail.com
第一个解释中,“不给这个域名(google.com.hk)提供服务” 的说法有误,想表达的意思是 
服务器可能缺乏 这个域名对应服务 所请求的文件。  即 这个网址 可能会请求一些只有香港服务器才有的文件,
而通用的服务器里面没有这个文件,你去请求通用服务器,这就导致请求不到。
不过应该是第二个解释所述的原因。

ksm...@gmail.com

unread,
Mar 5, 2016, 12:08:08 AM3/5/16
to XX-Net, weixi...@gmail.com
https everywhere扩展可解决问题,所以是第二个无误。
2016年3月5日土曜日 8時31分52秒 UTC+8 林华:
Message has been deleted

林华

unread,
Mar 5, 2016, 5:59:51 AM3/5/16
to XX-Net, weixi...@gmail.com, ksm...@gmail.com
正解!
总结一下
由于 www.google.comwww.google.com.hk 是设置成直连(direct)的,如果跳转到http方式,则数据是以明文传输的,从而触发了GFW的url关键字,导致连接被阻断,因此浏览器一直转圈缓冲。解决方法有两个:
1、把直连(direct)方式改成gae方式
2、强制以https访问(安装https everywhere扩展插件)

林华

unread,
Mar 5, 2016, 7:38:29 AM3/5/16
to XX-Net, weixi...@gmail.com, ksm...@gmail.com
对了,还有一种方法,就是之前用的
3、不让它跳转,访问 https://www.google.com/ncr  。但此法有局限性

@xxnet

测试了一下
https://github.com/XX-net/XX-Net/issues/590
所述的问题也与此有关
添加 protocol_version = 'HTTP/1.1' 这一行后,关闭https everywhere后,用firefox不能打开
http://distrowatch.com/table.php?distribution=slitaz  ,打开后,可以打开

也许应该在xxnet内部实现https everywhere的功能,这样在移动端不用担心浏览器的问题

Net XX

unread,
Mar 5, 2016, 9:44:02 AM3/5/16
to 林华, XX-Net, weixi...@gmail.com, ksm...@gmail.com

​目前没有非加密的方式,Direct也是TLS加密通讯

weixi...@gmail.com

unread,
Mar 5, 2016, 10:00:55 PM3/5/16
to XX-Net
感谢楼上几位的解答,我正在用你们的方法尝试解决

weixi...@gmail.com

unread,
Mar 5, 2016, 10:11:57 PM3/5/16
to XX-Net, weixi...@gmail.com
刚刚修改了那个文件中google搜索地址的连接方式为gae,然后XX-NET不能打开了。用修改前的文件覆盖之后又能打开了

在 2016年3月5日星期六 UTC+8上午12:54:33,林华写道:

weixi...@gmail.com

unread,
Mar 5, 2016, 10:21:34 PM3/5/16
to XX-Net, weixi...@gmail.com
用了插件- -问题解决了。。改文件不会。。

林华

unread,
Mar 6, 2016, 5:54:57 AM3/6/16
to XX-Net, weixi...@gmail.com

Xueyang Lei

unread,
Mar 6, 2016, 9:18:31 PM3/6/16
to XX-Net, weixi...@gmail.com
感谢,已解决

在 2016年3月6日星期日 UTC+8下午6:54:57,林华写道:
Reply all
Reply to author
Forward
0 new messages