xhrise / snova

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

關於 IsHostInCN Filter #210

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
  {
    "Filter" : ["IsHostInCN"],
    "Proxy":["Direct", "Default"]
  },
  {
    "Filter" : ["!IsHostInCN"],
    "Proxy":["Default"]
  }

在cloud_spac.json中設置以上的規則後(已開啟IPRangeRepo及刪除了Is
BlockedByGFW Filter), 國內外都是直連, 似乎無效. 
於是下載了wipmania IP庫 ( 
http://static.wipmania.com/static/worldip.en.text.zip ), 
文件日期是2011年5月的, 而訪問 http://www.wipmania.com/ 顯示Service 
temporarily unavailable, 這個IP庫沒用了吧?

後來用了Flora_Pac ( https://github.com/Leask/Flora_Pac ), 國內直連, 
國外走代理, 效果很不錯.

希望能集成Flora_Pac或者改用apnic.net的IP庫.

Original issue reported on code.google.com by Jacobwa...@gmail.com on 29 Nov 2012 at 7:37

GoogleCodeExporter commented 9 years ago
下个版本修改成apnic的ip库

Original comment by yinqiwen@gmail.com on 29 Nov 2012 at 7:41

GoogleCodeExporter commented 9 years ago
另外還有以下問題:
1. GAE認證: 假若設置了5個appid, 而第3個appid流量用完了, 
那麼認證時, 前兩個成功, 第3個返回503錯誤, 
後面的第4、5個就不認證了, 而且代理似乎不走GAE而走C4.
請問能不能認證時跳過流量用完的appid?
2. 默認規則下訪問部份google網站返回Error 503 (Server Error)!!1, 
如 picasa.google.com ,改走GAE/C4沒問題.

Original comment by Jacobwa...@gmail.com on 29 Nov 2012 at 8:05

GoogleCodeExporter commented 9 years ago
1. 
失败一个被认为GAE整个初始化失败;可以改为启动时忽略认��
�失败的appid。
2. 默认的*.google.com规则确实可能不适用某些站点。

Original comment by yinqiwen@gmail.com on 29 Nov 2012 at 8:14

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
*.google-analytics.com* 這個規則似乎也有問題. 
部份網站卡在等待www.google-analytics.com響應. 如www.alexa.com , 
*.google-analytics.com*走google.go和gae.go都有問題, 只有走c4.go正常.

Original comment by Jacobwa...@gmail.com on 30 Nov 2012 at 1:28

GoogleCodeExporter commented 9 years ago
卡在等待www.google-analytics.com不一定是规则的问题,有可能是Go
ogle的https间歇性阻断的原因

Original comment by yinqiwen@gmail.com on 30 Nov 2012 at 1:37

GoogleCodeExporter commented 9 years ago
但不用代理, 直接上www.alexa.com就沒問題.

Original comment by Jacobwa...@gmail.com on 30 Nov 2012 at 2:02

GoogleCodeExporter commented 9 years ago
google旗下的站点大部分包括“*.google-analytics.com*”都配置为优
先通过GoogleHttps,参照cloud_spac.json的默认设置

Original comment by yinqiwen@gmail.com on 30 Nov 2012 at 2:05

GoogleCodeExporter commented 9 years ago
這個我知道的. *.google-analytics.com* 
通過Direct、GoogleHttps、GAE都有問題, 只有C4正常, 
而且不用代理就可以直連, 這應該是代理的問題吧?

Original comment by Jacobwa...@gmail.com on 30 Nov 2012 at 2:14

GoogleCodeExporter commented 9 years ago
google code也有访问www.google-analytics.com, 
但并未见此问题。这个问题暂时存疑吧

Original comment by yinqiwen@gmail.com on 30 Nov 2012 at 2:18

GoogleCodeExporter commented 9 years ago
books.google.com返回Error 503, www.google.com/alerts重定向循环, 
无法访问, google-analytics.com也有相同情况.

Original comment by RoxieSo...@gmail.com on 1 Dec 2012 at 1:12

GoogleCodeExporter commented 9 years ago
books.google.com, 
google-analytics.com应该都可以访问的吧?修改了默认的规则?
www.google.com/alerts这个是个问题,需要参考 
cloud_spac.json中的www.google.*/imgres修改规则

Original comment by yinqiwen@gmail.com on 1 Dec 2012 at 1:16

GoogleCodeExporter commented 9 years ago
books.google.com有时可以访问, 有时就返回503, 好怪异.
google-analytics说的是上面提到的网站卡在等待响应.

Original comment by RoxieSo...@gmail.com on 1 Dec 2012 at 1:22

GoogleCodeExporter commented 9 years ago
等待响应的问题已经修改了,这两天重新打个包

Original comment by yinqiwen@gmail.com on 1 Dec 2012 at 1:24

GoogleCodeExporter commented 9 years ago
books.google.com若之前正常访问过,再用gsnova是可以访问的,不�
��返回503。但清除缓存或都用浏览器的隐身模式访问,还是会
返回503。在cloud_spac.json加入以下规则就可以解决。
  {
    "Host" : ["books.google.com"],
    "Proxy":["Google", "Default"]
  }

Original comment by NannieS...@gmail.com on 3 Dec 2012 at 2:33

GoogleCodeExporter commented 9 years ago
已记录,下次修改

Original comment by yinqiwen@gmail.com on 3 Dec 2012 at 2:34

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
iprange和gfwlist不会自动更新? 
文件日期一直是首次运行gsnova的时间!

Original comment by AriaViv...@gmail.com on 6 Dec 2012 at 8:40

GoogleCodeExporter commented 9 years ago
gfwlist远端没有更新
iprange下个版本会改成强制每次启动时更新

Original comment by yinqiwen@gmail.com on 6 Dec 2012 at 9:12

GoogleCodeExporter commented 9 years ago
带有IP地址的网址, IsHostInCN Filter判断不了, 
不会直连而走代理!比如

2012/12/11 17:13:05 forward.go:480: Session[2596]Request GET 
http://res.mfs.ykimg.com/050D00005084F91E97927378F302B616

2012/12/11 17:13:07 c4.go:310: Session[2600]Request GET 
http://119.147.157.215/f4v/13/158573413.h264_2.f4v?10200&key=a65d521e9705d4abd04
52850c6f91e0040966d0994&playtype=1&tk=147806919325945019180235517&brt=3&bc=0&nt=
0&du=1389710&ispid=97&rc=200&inf=1&si=10200&npc=4062&pp=0&ul=0&mt=0&sid=10200&ri
d=0&rst=0&au=0&pc=0&id=tudou&itemid=128801756&fi=158573413&sz=79844463&posky=PaV
vdtMp29xW33JOY5hB17e4jqan2&plybgn=1

res.mfs.ykimg.com判断为直连, 
而119.147.157.215(中国IP)却判断走代理.

Original comment by JayleeAm...@gmail.com on 11 Dec 2012 at 9:22

GoogleCodeExporter commented 9 years ago
似乎是个bug

Original comment by yinqiwen@gmail.com on 11 Dec 2012 at 10:23

GoogleCodeExporter commented 9 years ago
发现google自定义搜索返回503. 应加入以下规则.
  {
    "URL" : ["www.google.*/custom"],
    "Proxy":["Direct", "Default"]
  }

Original comment by NannieS...@gmail.com on 19 Dec 2012 at 8:24

GoogleCodeExporter commented 9 years ago
已记录

Original comment by yinqiwen@gmail.com on 19 Dec 2012 at 10:34