conradjohnathan17 / snova

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

snova+cloudfoundry 无法使用 #146

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
确定cloudfoundry端部署成功了

用的gsnova,现象是可以打开豆瓣之类的网站,推特之类不行��
�也就是跟没用代理一样

搜了一下,有人说是cloudfoundry用的人多了
http://www.80-80.net/thread-1027-1-1.html

附上我的设置文件
[LocalServer]
Listen=localhost:48100
#KeepAliveTimeout=15
#AutoOpenWebUI=false

[GAE]
Enable=0 故意把GAE关上了
WorkerNode[0]=
ConnectionMode=HTTP
Compressor=Snappy
Encrypter=SE1
InjectRange=*.c.youtube.com
RangeFetchRetryLimit=1
ConnectionPoolSize=20
RangeFetchLimitSize=262144
RangeConcurrentFetcher=3
UserAgent=Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20100101 
Firefox/15.0.1

[C4]
Enable=1
WorkerNode[0]="我的apps".cloudfoundry.com
ConnectionMode=HTTPs 自己加上的"s"
ConnectionPoolSize=2
HTTPMinWritePeriod = 250
Compressor=Snappy
Encrypter=SE1
UserAgent=Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20100101 
Firefox/15.0.1

[Google]
Enable=1
UseGlobalProxy=0
ConnectTimeout=1500
PreferIP=false

[Hosts]
#0:Disable 1:Only for HTTPS 2:All Protocols
Enable=1
CloudHosts=https://snova.googlecode.com/svn/trunk/repository/cloud_hosts.conf
HttpDNS=https://httpdns.cloudfoundry.com/dns?Domain=${DOMAIN}
TrustedDNS=8.8.8.8|8.8.4.4|208.67.222.222|208.67.220.220
PreferDNS=true
#259200secs=3days
DNSCacheExpire=604800
PersistDNSCache=true
#If host:port is not connected in 5s, consider it's blocked and removed from 
DNS cache
BlockVerifyTimeout=5
InjectRange=*.c.youtube.com
RangeFetchLimitSize=262144
RangeConcurrentFetcher=5
HostsRepo[0]=https://smarthosts.googlecode.com/svn/trunk/hosts
ExceptHosts=(www.)?facebook.com|www.chromium.org
IPRangeRepo=http://static.wipmania.com/static/worldip.en.text.zip

[SSH]
Enable=0
#Config identify file as url's i para.
Server[0]=ssh://user:pass@host:port
#Server[1]=ssh://user@host:port/?i=C:\Users\myname\.ssh\id_rsa
#Use remote DNS over SSH tunnel
RemoteResolve=1
UseGlobalProxy=0

[SPAC]
Enable=1
Default=c4
GFWList=https://autoproxy-gfwlist.googlecode.com/svn/trunk/gfwlist.txt
CloudRule=https://snova.googlecode.com/svn/trunk/repository/cloud_spac.json
#Proxy address for generated PAC
PACProxy=127.0.0.1:48100

[LocalProxy]
#Proxy=http://GoogleCNIP
Proxy=https://GoogleHttps

[Debug]
Enable=0

Original issue reported on code.google.com by yao...@gmail.com on 29 Oct 2012 at 10:15

GoogleCodeExporter commented 9 years ago
1. ConnectionMode=HTTP
这个只能是HTTP

2. Default=c4
C要大写 

Original comment by yinqiwen@gmail.com on 29 Oct 2012 at 11:46

GoogleCodeExporter commented 9 years ago
1. ConnectionMode=HTTPS
這個是可以使用HTTPS的

Original comment by Fight4Fu...@gmail.com on 29 Oct 2012 at 12:41

GoogleCodeExporter commented 9 years ago
太好了,作者回复的真迅速
修改后youtube能看了,但twitter依然不行,浏览器里改成https也�
��行

试了这个 http://www.whereisip.net/ 查询ip网站,显示的是实际ip

是因为gsnova自动获取的pac规则里不包含上面那个网站的原因��
�

我想让所有流量都走gsnova,之前用goagent配合proxifier,但gae自�
��缺陷,应用程序代理不了,所以想来试试C4上的snova,请问��
�者,比如像qq这类的软件(其实我想用的是美服英雄联盟)��
�被snova代理吗

Original comment by yao...@gmail.com on 29 Oct 2012 at 12:58

GoogleCodeExporter commented 9 years ago
spac里默认有GFWList判断, 非GFWList直接访问
youtube默认也是直接访问的
你可以把SPAC下的Enable改为0, 
以及Hosts下的enable改为0看看全部走C4能否访问twitter

snova的C4是个完全HTTP代理,不太清楚proxifier是什么原理;一般
只支持设置HTTP(S)proxy的场景

Original comment by yinqiwen@gmail.com on 29 Oct 2012 at 1:05

GoogleCodeExporter commented 9 years ago
刚才又看了一下,命令行里显示了
Request GET http://www.whereisip.net/
是否意味着这个网站已经走代理了,但显示的IP依旧是实际IP

另外命令行里老是夹杂着
No Google Proxy reachable
还有什么
i/o timeout; http request:EOF
之类的错误讯息

Original comment by yao...@gmail.com on 29 Oct 2012 at 1:08

GoogleCodeExporter commented 9 years ago
1. 
要看每一行中的的[xx.go]的xx部分,一般这个表明proxy的实现;
forward.go一般表示直接
2. 表明连不上Google的服务器

Original comment by yinqiwen@gmail.com on 29 Oct 2012 at 1:15

GoogleCodeExporter commented 9 years ago
可为什么要连接google的服务器么?不是用paas的么?

如何不做任何判断就直接走paas,我也连不上twitter

感觉没有goagent的paas好用

Original comment by wwqgtxx on 29 Oct 2012 at 2:40

GoogleCodeExporter commented 9 years ago
1. SPAC估计还是Enable=1,所以规则仍然有效
2. 
C4是可以访问https站点的,包括twitter。不能访问可能有多种原
因:spac规则,远端PaaS服务端等问题

Original comment by yinqiwen@gmail.com on 29 Oct 2012 at 3:08

GoogleCodeExporter commented 9 years ago
把spac关闭还是一样

Original comment by wwqgtxx on 29 Oct 2012 at 3:15

GoogleCodeExporter commented 9 years ago
可能是DNS污染问题,参考http://code.google.com/p/snova/issues/detail?id
=147

Original comment by yinqiwen@gmail.com on 30 Oct 2012 at 2:16

GoogleCodeExporter commented 9 years ago
我是楼主,关闭SPAC和hosts后可以访问推特了,IP查询也是美国
地址了,可是访问Amazon,youtube时网页显示不完美,反复刷新�
��是如此,换成goagent就好了,是因为cloudfoundry不稳定的原因��
�,4个C4服务端,作者更推荐哪个

Original comment by yao...@gmail.com on 30 Oct 2012 at 2:45

Attachments:

GoogleCodeExporter commented 9 years ago
訪問Youtube沒有比使用GAE代理更快的了。

Original comment by Fight4Fu...@gmail.com on 30 Oct 2012 at 2:53

GoogleCodeExporter commented 9 years ago
cloudfoundry服务器不如google的,无论带宽,稳定性均不如;唯��
�优势是限制很少
所以snova/gsnova提供了SPAC用于各种proxy实现的粘合,目的在于��
�合各自的优势

Original comment by yinqiwen@gmail.com on 30 Oct 2012 at 2:58