amnextking / wallproxy-plus

Automatically exported from code.google.com/p/wallproxy-plus
2 stars 0 forks source link

为什么 PC 上的 Chrome 在 8086 模式下可以登录 Google 账号进行同步什么的, iOS 上的就不行呢? #460

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
我特意在 PC 上断开, 再登录, 可以看到命令行里的信息如下

127.0.0.1 - [2012-11-21 22:00:43] FWD "CONNECT accounts.google.com:443 
HTTP/1.1" 200 -
127.0.0.1 - [2012-11-21 22:00:45] FWD "CONNECT talk.google.com:5222 HTTP/1.1" 
200 -
127.0.0.1 - [2012-11-21 22:00:45] GAE "GET 
https://accounts.youtube.com/accounts/SetSID?ssdc=1&sidt=ALWU2cuLwJdJEbYQjr%2B7M
809AgnNoLEFs3FvTvYOiiSxuXK6%2B5u2zHymIOn7xDI%2BELtsxYKiCfq0DiFRYQ52RK11K6GYsaynI
g6j4Pqh5S6HU1%2FqHPEO0%2FxTl8ot8Nm2zKs9lYmykL7rEqUu%2BQV5cY2uXJQK%2FO6wzNUXtseZd
EFPIYA3kP66s9X%2B%2Fc%2FA0EUz3rph2Xss90wpW11VKbahZGVSYOs5OTru59A0n57ufl4otNtsyZ5
pp2xb%2FhFrWwSIQFQuS8CiWqmlkCa%2B%2BtH%2BCGKur5EuidI3fH5DZBl4zg%2Fn5qDUKINCMg8OO
4%2FQx%2BgIVjllCleH2kOhmvRr2mnXsW1wbD%2FuON85Sfem%2By6IY4bw3WmOBmM6cY%2BJXE0ad8H
Xa%2FULuvg%2BezQn&continue=http%3A%2F%2Fwww.google.com HTTP/1.1" 200 432

稍等片刻便登录成功

但是 iOS 上的 Chrome 在代理为 8086 的情况下登录 Google 
账号就不行, 然后命令行的反馈是

127.0.0.1 - [2012-11-21 22:03:59] FWD "CONNECT talk.google.com:443 HTTP/1.1" 
200 -
Forward https://accounts.google.com: [Errno 10060] 
由于连接方在一段时间后没有正确答复或连接的主机没有反��
�,连接尝试失败。, try http_failed_handler.

Original issue reported on code.google.com by heeroyuyj on 21 Nov 2012 at 2:04

GoogleCodeExporter commented 9 years ago
多试几遍?

Original comment by www.eh...@gmail.com on 21 Nov 2012 at 2:15

GoogleCodeExporter commented 9 years ago
试了无数次的... 最早用 WP 就有这个问题

我是现在想起来了 问问

Original comment by heeroyuyj on 21 Nov 2012 at 2:23

GoogleCodeExporter commented 9 years ago
我试了一下,也是相同的情况

Original comment by wwqgtxx on 21 Nov 2012 at 2:30

GoogleCodeExporter commented 9 years ago
把accounts.google.com加入sites(或者[hosts]中那一长串域名)呢?
accounts.google.com默认没有走wp自带的hosts,也没有走GAE,也就是
说与无代理效果相同,可能你电脑上和iOS上解析出来的ip不同
。

Original comment by www.eh...@gmail.com on 21 Nov 2012 at 2:32

GoogleCodeExporter commented 9 years ago
可以改一下,让所有google的网站都走wp+的host么

Original comment by wwqgtxx on 21 Nov 2012 at 2:37

GoogleCodeExporter commented 9 years ago
维护google的hosts也是一件比较头疼的事,因为似乎不是所有的
google网站都能走相同的ip,所以简单点加.google.com得维护一些�
��外域名,加www.google.com之类的域名个数又太多无法一一列举�
��总之就是那么配置的,你要是配出个比较稳定的方案出来代
替现有配置也行。

Original comment by www.eh...@gmail.com on 21 Nov 2012 at 2:44

GoogleCodeExporter commented 9 years ago
我来试试,要是可以,12点我另开issue发给你,要是没回音,�
��该就是不行了,先看看issue461 ok?

Original comment by wwqgtxx on 21 Nov 2012 at 2:54

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
把加入withgae中试试

Original comment by wwqgtxx on 21 Nov 2012 at 3:05

GoogleCodeExporter commented 9 years ago
还有上次问过作者的, 就是 WP+ 里的远程 DNS 解析, 是通过 UDP 
还是 TCP?

通过 UDP 协议进行 DNS 查询时, 会收到来自旁路的干扰结果, 
通过 TCP 进行查询则不会

愿意看下的话, 可以去这里 
http://opengg.me/603/using-google-encrypted-search-freely/

Original comment by heeroyuyj on 21 Nov 2012 at 3:10

GoogleCodeExporter commented 9 years ago
呃, 刚刚看到在 
https://code.google.com/p/wallproxy-plus/issues/detail?id=406#c9 的回复了

貌似这是个问题

可以的话, 建议还是弄成 TCP 的

Original comment by heeroyuyj on 21 Nov 2012 at 3:18

GoogleCodeExporter commented 9 years ago
但tcp会被直接阻断,让程序出错,还是无法取得ip

Original comment by wwqgtxx on 21 Nov 2012 at 3:25

GoogleCodeExporter commented 9 years ago
我现在在用 DNSForwarder (http://micasmica.blogspot.com/2011/08/dns.html) 
配合 WallProxy

这个就支持 TCP 模式查询的, 使用良好无问题

Original comment by heeroyuyj on 21 Nov 2012 at 3:27

GoogleCodeExporter commented 9 years ago
弄不好还会让整个dns的ip被封,这样更不利

Original comment by wwqgtxx on 21 Nov 2012 at 3:29

GoogleCodeExporter commented 9 years ago
传个上来看看

Original comment by wwqgtxx on 21 Nov 2012 at 3:30

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
@15

https://code.google.com/p/wallproxy-plus/downloads/detail?name=DNSForwarder%20v2
.2.1.rar&can=2&q=#makechanges

Original comment by heeroyuyj on 21 Nov 2012 at 3:52

GoogleCodeExporter commented 9 years ago
看样子是我表达有误

实际的操作方式是

将 UDP 形式的 DNS 数据包,以 TCP 形式转发至指定的 DNS 
服务器, 在本地开设 DNS 代理服务器. 本地 DNS 服务器与上游 
DNS 服务器之间通过 TCP 协议进行查询, 将结果通过 UDP 
协议返回给本机客户端, 这样就不会被旁路干扰

Original comment by heeroyuyj on 21 Nov 2012 at 3:53

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
最新测试, DNS 不同解析 IP 不同也没影响, 把 accounts.google.com 
clients4.google.com  加到 [hosts] 里就行了

登录很快, 也没其它问题

Original comment by heeroyuyj on 21 Nov 2012 at 4:15

GoogleCodeExporter commented 9 years ago
我就是指上游的dns很容易被tcp阻断,要不就是ip封锁。
程序很好用,希望可以长久的使用,谢谢楼上

Original comment by wwqgtxx on 21 Nov 2012 at 9:38

GoogleCodeExporter commented 9 years ago
v2.1.7版,远程dns支持tcp。

Original comment by www.eh...@gmail.com on 22 Nov 2012 at 1:33

GoogleCodeExporter commented 9 years ago
这个帖子哦了!

Original comment by heeroyuyj on 22 Nov 2012 at 1:43

GoogleCodeExporter commented 9 years ago
Moved to: Issue wallproxy:511

Original comment by heeroyuyj on 2 Dec 2012 at 5:10