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

访问Google网站有时会提示不是私密连接 #1166

Closed
Cat7373 opened this issue Oct 8, 2015 · 6 comments
Closed

访问Google网站有时会提示不是私密连接 #1166

Cat7373 opened this issue Oct 8, 2015 · 6 comments

Comments

@Cat7373
Copy link
Contributor

Cat7373 commented Oct 8, 2015

证书路径: GeoTrust Global CA -> Google Internet Authority G2 -> *.googlevideo.com
而不是XX-Net颁发的证书
一般重启GAEProxy后可恢复正常
相关日志↓
Oct 08 09:56:07 - [INFO] FWD CONNECT www.google.com:443
Oct 08 09:56:07 - [DEBUG] get ip:1.255.33.74 t:96
Oct 08 09:56:07 - [DEBUG] tcp conn 1.255.33.74 time:49
Oct 08 09:56:07 - [DEBUG] forward local disconnected.
Oct 08 09:56:07 - [DEBUG] FWD CONNECT www.google.com:443 with closed
Oct 08 09:56:08 - [INFO] FWD CONNECT www.google.com:443
Oct 08 09:56:08 - [DEBUG] get ip:1.255.22.249 t:107
Oct 08 09:56:08 - [DEBUG] tcp conn 1.255.22.249 time:46
Oct 08 09:56:08 - [DEBUG] forward local disconnected.
Oct 08 09:56:08 - [DEBUG] FWD CONNECT www.google.com:443 with closed

又访问一次↓
Oct 08 09:57:15 - [INFO] FWD CONNECT www.google.com:443
Oct 08 09:57:15 - [DEBUG] get ip:1.255.22.207 t:84
Oct 08 09:57:15 - [DEBUG] tcp conn 1.255.22.207 time:44
Oct 08 09:57:15 - [DEBUG] forward local disconnected.
Oct 08 09:57:15 - [DEBUG] FWD CONNECT www.google.com:443 with closed

@xxnet
Copy link
Contributor

xxnet commented Oct 8, 2015

你的版本是否太老了?
目前的版本里已经不使用FWD很久了。

FWD是不替换证书的,但是gvs的证书无法工作在google.com 域名

2015-10-08 9:57 GMT+08:00 Cat73 [email protected]:

证书路径: GeoTrust Global CA -> Google Internet Authority G2 -> *.
googlevideo.com
而不是XX-Net颁发的证书
相关日志↓
Oct 08 09:56:07 - [INFO] FWD CONNECT www.google.com:443
Oct 08 09:56:07 - [DEBUG] get ip:1.255.33.74 t:96
Oct 08 09:56:07 - [DEBUG] tcp conn 1.255.33.74 time:49
Oct 08 09:56:07 - [DEBUG] forward local disconnected.
Oct 08 09:56:07 - [DEBUG] FWD CONNECT www.google.com:443 with closed
Oct 08 09:56:08 - [INFO] FWD CONNECT www.google.com:443
Oct 08 09:56:08 - [DEBUG] get ip:1.255.22.249 t:107
Oct 08 09:56:08 - [DEBUG] tcp conn 1.255.22.249 time:46
Oct 08 09:56:08 - [DEBUG] forward local disconnected.
Oct 08 09:56:08 - [DEBUG] FWD CONNECT www.google.com:443 with closed


Reply to this email directly or view it on GitHub
#1166.

@Cat7373
Copy link
Contributor Author

Cat7373 commented Oct 8, 2015

用的2.5.1,我也不知道为何会这样- -
直接在稳定版本列表里下载的,什么都没改动。

从2.0.5中复制了以下三个文件过去:
data\gae_proxy\config.ini
data\gae_proxy\CA.crt
data\launcher\config.ymal

修改了以下配置:
关闭PHP模块
关闭自动更新
最大扫描IP线程改为5

其他:
XX-Net所在的路径中包含中文但不包含空格
经检查 data\gae_proxy\config.ini 中没有hosts相关的内容

@Cat7373
Copy link
Contributor Author

Cat7373 commented Oct 8, 2015

修改了下config.py的代码
xlog.info("[debug_fwd] start")
for i in range(0, len(self.HOSTS_FWD)):
xlog.info("[debug_fwd] " + self.HOSTS_FWD[i])
xlog.info("[debug_fwd] end")
并没有输出任何fwd的东东- -
证明在刚启动的时候是没有问题的- -
并且每次出现这个问题都不是XX-Net刚启动的时候,而是天晓得啥时候就突然这样了。
我修改下,让状态页输出这个列表试试看 - -

@Cat7373
Copy link
Contributor Author

Cat7373 commented Oct 8, 2015

在 web_control.py 的 req_status_handler 函数增加了以下代码:
"fwd_hosts": "|".join(config.HOSTS_FWD),
"gae_hosts": "|".join(config.HOSTS_GAE),
"direct_hosts": "|".join(config.HOSTS_DIRECT),
"fwd_end": config.HOSTS_FWD_ENDSWITH,
"gae_end": config.HOSTS_GAE_ENDSWITH,
"direct_end": config.HOSTS_DIRECT_ENDSWITH

等下次遇到这个问题的时候再看看吧- -
现在比较蛋疼的就是不知如何能重现- - 完全是随机出现- - 只能等- -

@xxnet
Copy link
Contributor

xxnet commented Oct 9, 2015

发了2.5.2 修改这个bug。

对于GAE不支持的Google 网站请求,会改为FWD模式。

但是FWD模式是不修改任何通讯过程,而gvs ip必须特殊的SSL握手才能工作。
因此改为DIRECT模式。

请测试能否解决你的问题

2015-10-08 21:08 GMT+08:00 Cat73 [email protected]:

在 web_control.py 的 req_status_handler 函数增加了以下代码:
"fwd_ips": "|".join(config.HOSTS_FWD),
"gae_ips": "|".join(config.HOSTS_GAE),
"direct_ips": "|".join(config.HOSTS_DIRECT)


Reply to this email directly or view it on GitHub
#1166 (comment).

@Cat7373
Copy link
Contributor Author

Cat7373 commented Oct 9, 2015

问题完全是随机出现- -
我也不知道是怎么触发的- -
以后如果还遇到的话再提吧。。。

@Cat7373 Cat7373 closed this as completed Oct 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants