yinqiwen / gsnova Goto Github PK
View Code? Open in Web Editor NEWPrivate proxy solution & network troubleshooting tool.
License: BSD 3-Clause "New" or "Revised" License
Private proxy solution & network troubleshooting tool.
License: BSD 3-Clause "New" or "Revised" License
一年前我安装过snova,最近部署为gsnova 0.22版,准备修改root密码
可是发现Google Code上面的Java包里面和原来不一样,没有了admin.bat,于是我使用0.21版本的admin.bat
打开后,输入appid,root,密码
然后提示如下错误
java.lang.NullPointerException
at org.snova.framework.admin.gae.GAEAdmin.runGAEAdmin.java:169
at org.snova.framework.admin.Admin.mainAdmin.java:68
null
然后点击回车退出
请问作者新版本下要如何使用admin.bat,这个错误又是什么原因?
日志出错的部分:
2013/03/27 09:19:59 gae.go:405: Session[1]Request GET http://www.youtube.com/watch?feature=player_embedded&v=ibPziLRGvkg
2013/03/27 09:20:00 range.go:332: Session[1]Recv res:200 map[X-Youtube-Visitor:[pcp1H23Vt3Q] X-Youtube-Experiment:[;922912;902000;919512;913605;931202;900821;900823;931203;931401;908529;919373;930803;906836;920201;929602;930101;930603;900824;910223] Date:[Wed, 27 Mar 2013 01:19:59 GMT] Cache-Control:[no-cache] Server:[gwiseguy/2.0] X-Google-Cache-Control:[remote-fetch] Set-Cookie:[SID=DQAAAL0AAAB0fxdzRwEgnInzeH2aVR-nghvLbSfOl8elF7izqkIV8gbyjtSpPgL_S4GHaXNRvhrLHnAkCo9kEEQDcCifnCuPLOVHlW93GTaKlkn7b0TQeXm-xughS4rfPbS-88bhhAAMS_13G-RFU79ehpbD1-E_KtFJAIw51o-x2BswpjqrN7AevNuRj2PqtpnY0wb5jBjV-N9ohmj7WjFnK0ymy-kINri8Y2-0I3laA7lvzBm6XkoBG0BwR86pGL_zbmZj7oc; path=/; domain=.youtube.com; expires=Sat, 25-Mar-2023 01:19:59 GMT] Expires:[Tue, 27 Apr 1971 19:44:06 EST] Content-Length:[26949] P3p:[CP="This is not a P3P policy! See http://support.google.com/accounts/bin/answer.py?answer=151657&hl=en-US for more info."] Content-Encoding:[gzip] Via:[HTTP/1.1 GWA] X-Xss-Protection:[1; mode=block] Content-Type:[text/html; charset=utf-8] X-Youtube-Other-Cookies:[VISITOR_INFO1_LIVE=pcp1H23Vt3Q;LOGIN_INFO=39;PREF=al=zh-CN&fv=11.2.202&f1=50000000] X-Content-Type-Options:[nosniff] X-Frame-Options:[SAMEORIGIN]]
2013/03/27 09:20:00 gae.go:405: Session[2]Request GET http://www.youtube.com/watch?v=ibPziLRGvkg&additional=noparsemeplease
2013/03/27 09:20:01 gae.go:405: Session[3]Request GET http://r14---sn-p5q7ynle.c.youtube.com/generate_204?ms=au&ip=74.125.184.86&cp=U0hVSVNRV19GUkNONV9LS0FHOnR6bzVIMzdBdjJV&mt=1364347155&factor=1.25&key=yt1&source=youtube&upn=IkHhog33ktk&mv=m&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&id=89b3f388b446be48&newshard=yes&sver=3&ipbits=8&fexp=922912%2C902000%2C919512%2C913605%2C931202%2C900821%2C900823%2C931203%2C931401%2C908529%2C919373%2C930803%2C906836%2C920201%2C929602%2C930101%2C930603%2C900824%2C910223&signature=AB88C68AA6F6DFF27875103B2C07CC32BCCBDC70.8F48CCBBFEA2943BE075465005E21FA4810431C2&itag=35&algorithm=throttle-factor&burst=40&expire=1364369618
2013/03/27 09:20:01 range.go:332: Session[2]Recv res:200 map[Content-Type:[text/html; charset=utf-8] Content-Length:[27387] Set-Cookie:[SID=DQAAALwAAAB0fxdzRwEgnInzeH2aVR-naEUszbYx7caWheKAnkEC8esABi0cb6ez1CZj-ysTJzKn96d_hI7_WefDRnJ0cs7DXLJbKhPsR2f6zZbldLhygWVXJv3p8l0J99ti2xjj3gHxRiV5PrDtWSFFOMEjoUT-qAicKqBY0bgb_a2JsT8FXYpdhY2uwm3VUEW2MSWe6J6ZUQCVU7MSti4MbIHHg9jnaRaU5_It4tSsOfFkOU0YSlgCfqXjfOlgTM5QKvKO0sc; path=/; domain=.youtube.com; expires=Sat, 25-Mar-2023 01:20:00 GMT] Expires:[Tue, 27 Apr 1971 19:44:06 EST] X-Youtube-Experiment:[;922912;902000;919512;913605;931202;900821;900823;931203;931401;908529;919373;930803;906836;920201;929602;930101;930603;900824;910223] Cache-Control:[no-cache] Content-Encoding:[gzip] Via:[HTTP/1.1 GWA] X-Google-Cache-Control:[remote-fetch] X-Frame-Options:[SAMEORIGIN] P3p:[CP="This is not a P3P policy! See http://support.google.com/accounts/bin/answer.py?answer=151657&hl=en-US for more info."] Date:[Wed, 27 Mar 2013 01:20:01 GMT] X-Youtube-Other-Cookies:[VISITOR_INFO1_LIVE=pcp1H23Vt3Q;LOGIN_INFO=39;PREF=al=zh-CN&fv=11.2.202&f1=50000000] X-Youtube-Visitor:[pcp1H23Vt3Q] Server:[gwiseguy/2.0] X-Content-Type-Options:[nosniff] X-Xss-Protection:[1; mode=block]]
2013/03/27 09:20:02 range.go:332: Session[3]Recv res:204 map[Server:[GFE/2.0] Date:[Wed, 27 Mar 2013 01:20:02 GMT] X-Google-Cache-Control:[remote-fetch] Content-Type:[text/html; charset=UTF-8] Content-Length:[0] Via:[HTTP/1.1 GWA]]
现在GAE的go版本还无法使用ConnectionMode=HTTPS,请问有可能得到支持吗?
我启用了SSH(为了看 vimeo),买的廉价SSH所以不是很稳定会断,好像 gsnova 当 SSH 断开时不会自动重连?我只能重开 gsnova 。
服务器使用github最新版 nodejs (也试过google code 上的版本 )
客户端使用 0.19.4
安装在cloudfoundry上正常
└─(09:32:29)──> ./gsnova ──(一, 121)─┘
2013/01/21 09:32:33 hosts.go:156: Init AutoHost.
2013/01/21 09:32:33 google.go:439: Init Google.
2013/01/21 09:32:33 c4.go:448: Init C4.
2013/01/21 09:32:33 c4.go:437: UserToken is a8:20:66:02:29:89
2013/01/21 09:32:34 c4.go:113: Session[0]Role:push unexpected response 404 Not Found for backdoor.cloudfoundry.com
2013/01/21 09:32:34 launch.go:93: [WARN]Failed to init GAE:GAE not inited since [GAE] Enable=0
2013/01/21 09:32:34 launch.go:98: =============Start gsnova 0.19.4==============
2013/01/21 09:32:34 launch.go:52: Listen on address localhost:48100
2013/01/21 09:32:34 launch.go:52: Listen on address localhost:48102
2013/01/21 09:32:38 local_hosts.go:56: Fetch remote clound hosts:https://snova.googlecode.com/svn/trunk/repository/cloud_hosts.conf
2013/01/21 09:32:38 spac.go:357: Generate PAC from gfwlist https://autoproxy-gfwlist.googlecode.com/svn/trunk/gfwlist.txt
2013/01/21 09:32:38 spac.go:314: Fetch remote clound spac rule:https://snova.googlecode.com/svn/trunk/repository/cloud_spac.json
2013/01/21 09:32:38 google.go:317: Session[7]Request CONNECT https://snova.googlecode.com:443
2013/01/21 09:32:43 google.go:317: Session[8]Request CONNECT https://snova.googlecode.com:443
2013/01/21 09:32:43 google.go:317: Session[9]Request CONNECT https://smarthosts.googlecode.com:443
2013/01/21 09:32:45 c4.go:310: Session[10]Request GET http://www.google.com.hk/complete/search?client=chrome&hl=en-US&q=fa&sugkey=AIzaSyCLlKc60a3z7lo8deV-hAyDU7rHYgL4HZg
2013/01/21 09:32:45 c4.go:310: Session[11]Request GET http://www.google.com.hk/complete/search?client=chrome&hl=en-US&q=fac&sugkey=AIzaSyCLlKc60a3z7lo8deV-hAyDU7rHYgL4HZg
2013/01/21 09:32:45 c4.go:113: Session[10]Role:pull unexpected response 404 Not Found for backdoor.cloudfoundry.com
2013/01/21 09:32:45 c4.go:310: Session[12]Request GET http://www.google.com.hk/complete/search?client=chrome&hl=en-US&q=face&sugkey=AIzaSyCLlKc60a3z7lo8deV-hAyDU7rHYgL4HZg
2013/01/21 09:32:46 c4.go:113: Session[11]Role:pull unexpected response 404 Not Found for backdoor.cloudfoundry.com
2013/01/21 09:32:46 c4.go:310: Session[15]Request CONNECT https://www.facebook.com:443
2013/01/21 09:32:46 c4.go:310: Session[16]Request CONNECT https://www.facebook.com:443
2013/01/21 09:32:46 c4.go:310: Session[14]Request CONNECT https://www.facebook.com:443
2013/01/21 09:32:46 c4.go:310: Session[17]Request CONNECT https://www.facebook.com:443
2013/01/21 09:32:46 c4.go:310: Session[13]Request GET http://www.facebook.com/
2013/01/21 09:32:47 c4.go:113: Session[16]Role:pull unexpected response 404 Not Found for backdoor.cloudfoundry.com
2013/01/21 09:32:47 c4.go:113: Session[13]Role:pull unexpected response 404 Not Found for backdoor.cloudfoundry.com
2013/01/21 09:32:48 c4.go:113: Session[11]Role:pull unexpected response 404 Not Found for backdoor.cloudfoundry.com
我在 配置文件的 Proxy 节点里 设置了 Transparent 为true 端口假设为 6060
然后启动后 通过 netstat -ntplu 查看 并没有看到 程序在UDP 监听6060 端口
请问 iptables 这个转发要怎么写 理解中 是用 TPROXY 来实现的udp转发 但是需要程序监听对应的UDP端口
谢谢.
gsnova代理下打开http://cloud.feedly.com/#latest
提示error:405
而使用goagent页面正常载入无错误提示
c4.go:107: Unexpected response 405 Method Not Allowed for xxxx
服务器版本已经是最新的 0.16.1 。
archlinux最新版, go1.1.2, 说是yinqiwen/src/github.com源码找不到
linux出的feature版里没有32位真是相当地奇怪. 一般而言都是32位的bin能在64位的机器上跑, 反过来却不行. 所以这样出的release相当欠妥.
gae编译失败,
web.go:12: can't find import: "github.com/yinqiwen/gsnova/common/event"
--- end server output ---
打开发现真的不存在
https://github.com/yinqiwen/gsnova/common/event
发现下载中的编译版都是几个月之前的了,作者能不能发布一下最新版本的编译版呢?
之前的0.22.1里面有gsnova可执行文件,在苹果OSX下可用start指令运行,可最新版没了,苹果系统下还得装GO语言先编译,麻烦作者能否发布一个编译版???谢谢!
原来用过snova,本地端需要安装Java环境,请问这个项目是不是不需要Java环境?
那样的话真的方便多了
Y大的gsnova-paas-deploy-with-dependencies-v0.26.3.tar好像没法直接用GIT部署?我这老是出错。
user_spac.json
{
"Host" : ["accounts.youtube.com", "twitter.com", "login.yahoo.com"],
"Proxy":["socks://127.0.0.1:3439", "SSH"]
},
log
2013/03/03 10:35:58 gae.go:526: Session[1]Request CONNECT https://twitter.com:443
显示twitter.com还是连接到gae,而不是走自定义代理.
如果走自定义代理的话,应该就不需要导入证书了吧?
我拿https://login.yahoo.com/测试了下,貌似的确可以.
2013/03/03 10:45:45 ssh.go:105: Session[6]Request CONNECT https://login.yahoo.com:443
不晓得twitter.com规则是命中cloud_spac.json的规则,还是snova-gfwlist.pac里的规则,这个命中规则希望有熟悉的朋友能够讲解下
大改了,是不是不支持 (heroku)pass 了?谢谢!
google,youtube都打不开了。有人遇到同样情况吗?
用的herokuapp.com搭建[C4]服务,客户端是Proxifer+gsnova,gsnova日志:
...
...
2014/01/12 19:41:16 c4.go:273: Session[502] Request CONNECT https://65.55.223.22:33033
2014/01/12 19:41:17 c4.go:273: Session[503] Request CONNECT https://157.55.56.167:33033
2014/01/12 19:41:18 c4.go:273: Session[504] Request CONNECT https://65.55.223.22:443
2014/01/12 19:41:18 c4.go:273: Session[505] Request CONNECT https://157.55.130.175:33033
2014/01/12 19:41:19 c4.go:273: Session[506] Request CONNECT https://157.55.56.167:443
2014/01/12 19:41:19 c4.go:273: Session[507] Request CONNECT https://157.55.56.174:33033
2014/01/12 19:41:20 c4.go:273: Session[508] Request CONNECT https://157.55.130.175:443
2014/01/12 19:41:20 c4.go:273: Session[509] Request CONNECT https://157.56.52.33:33033
2014/01/12 19:41:21 c4.go:273: Session[510] Request CONNECT https://157.55.56.174:443
2014/01/12 19:41:22 c4.go:273: Session[511] Request CONNECT https://157.56.52.33
...
...
Proxifer一直连接中,没有响应。
是gsnova无法支持skype吗?
bash build.sh
...
main/server.go:11: MAX_READ_CHUNK_SIZE redeclared in this block
previous declaration at main/launch.go:21
main/server.go:14: seed redeclared in this block
previous declaration at main/launch.go:24
main/server.go:16: handleConn redeclared in this block
previous declaration at main/launch.go:26
main/server.go:21: handleServer redeclared in this block
previous declaration at main/launch.go:31
main/server.go:31: startLocalProxyServer redeclared in this block
previous declaration at main/launch.go:41
还有 git submodule update --init 时
No submodule mapping found in .gitmodules for path 'src/github.com/nsf/gocode'
10:16 PM Error 422: --- begin server output ---
Compile failed:
2016/09/29 07:16:11 go-app-builder: build timing: 8×compile (1.586s total), 0×link (0 total)
2016/09/29 07:16:11 go-app-builder: failed running compile: exit status 1
web.go:68: undefined: c
--- end server output ---
10:16 PM Rolling back the update.
Error 422: --- begin server output ---
--- end server output ---
已在 client.json 里把 HTTPProxy 改为 "Proxy":"http://127.0.0.1:8087"
gsnova-paas-deploy-with-dependencies-v0.26.4.tar.bz2 里面哪些要改?
gsnova_android-v0.26.4.apk里面貌似都是默认的选项 貌似也没啥要改的。 T。T 好难啊~~
我去snova项目地址看了下,说是go语言版支持。
You can use snova admin tool to control traffic and blacklist for 'anonymouse'.
应该是:anonymous吧? 还是作者故意如此?
另外,是否我自己搭建的GAE服务端是会自动共享给他人的?
另外上面说的这个对anoymous的blacklist命令要如何使用?
(PS: 我觉得很有可能作者在程序里面也把这个拼写弄错了,不仅仅是网页,希望能够改正一下)
原因:如今连github也被墙了,golang代码编译时依赖的类库又是在github上的,根本就是个死循环。
download李提供的二进制版本又没有包含linux386、freebsd386 、freebsdamd64 这3个常用版本,这让人情何以堪啊。。。
原因是可能被污染之类的,openshift 上面的 C4 gsnova或浏览器 连接 http 时总是 reset 。浏览器 https 则没问题。
主要体现为:
搜索:https://encrypted.google.com/search?q=keyword
会被重定向到:http://encrypted.google.com.hk/url?sa=p&hl=zh-CN&pref=hkredirect&pval=yes&q=http://encrypted.google.com.hk/search%3Fq%3Dkeyword&ust=xxxxxxxxxxxxxxxx&usg=xxxxxxxxxxxxxxxxxxxxxx
错误页面提示:
503. That’s an error.
The service you requested is not available at this time.
Service error -27. That’s all we know.
发现关闭SPAC之后就能正常搜索
请问这是为什么呢?
另外发现即便是[host] 和[spac]中的enable被设置为0的情况下
开启程序后依然会
fetch hosts and pac
请问能不能加一个选项允许用户彻底不加载这两个内容(remote hosts and pac)
请问gsnova支持gae ipv6吗?
Readme tells little about server.conf and client.conf.
Howto generate key used for encryption ?
Can cipher be defined at server.conf ? Or server will auto-match client setting ?
Can application layer packet encryption be disabled and only use TLS or QUIC (transport layer) for security ?
What does "UDPGW" do ?
What does local "Admin" do ?
Snova-C4-NodeJS openshiftv2 服务端 用gsnova-0.23.1 客户端 怎样配置用sni 加速 ..https模式,先谢过!
访问facebook.com时也会有提示说证书问题,但是可以强制访问,
但是访问twitter.com时,就没有强制按钮。
看到有些地方说需要导入证书可以解决,能否详细说明原理与步骤。
谢谢
http://feedproxy.google.com 加到 user_spac.json 第二组(c.youtube.com),解决,同理,o-o--- youtube 也会 502 ,删掉第一组解决。
client.json
"Enable":true,
"Type":"direct",
"Name":"TLSDirect",
"SNI":["www.google.com.hk", "www.google.co.jp"],
"ForceTLS":true
},
{
"Enable":true,
//'reject' channel would reject all traffic
"Type":"reject",
"Name":"Reject"
},
{
"Enable":true,
"Type":"gae",
"Name":"mygae",
"ServerList":["appid"],
"SNI":["www.google.com.hk", "www.google.co.jp"],
//Unit: second
"DialTimeout":5,
//Unit: second
"ReadTimeout":15
hosts.json
//this is just a example, do not use the ip in your env
//"sni_proxy":["10.10.10.10", "11.11.11.11"],
// "cn_sni_proxy" :["10.10.10.10", "11.11.11.11"],
// "google_https":["sni_proxy"],
// "*.appspot.com":["sni_proxy"],
// "*.google.com":["google_https"],
// "*.googlevideo.com":["google_https"],
// "*.gstatic.com":["google_https"],
// "*.googleusercontent.com":["google_https"],
// "*.ytimg.com":["google_https"],
不明白怎样配置google ip 的位置,用gae模式翻墙.
2.如果用gae+sni 应该如何配置,,谢谢大神指教!
2015/11/20 15:24:01 google.go:97: Session[199]Request CONNECT https://mtalk.google.com:5228
2015/11/20 15:24:01 dispatch.go:111: Session[199][WARN][GoogleHttps]Failed to request proxy event for reason:No google proxy reachable:dial tcp 173.194.72.199:443: i/o timeout
2015/11/20 15:24:01 c4_http.go:160: Pull worker[evening-basin-7128.herokuapp.com]:2 stop working
2015/11/20 15:24:01 c4_http.go:147: Pull worker[evening-basin-7128.herokuapp.com]:2 start working
2015/11/20 15:24:03 c4_http.go:151: Pull worker[evening-basin-7128.herokuapp.com]:0 recv invalid res:<nil>
2015/11/20 15:24:04 c4_http.go:160: Pull worker[evening-basin-7128.herokuapp.com]:0 stop working
2015/11/20 15:24:04 c4_http.go:147: Pull worker[evening-basin-7128.herokuapp.com]:0 start working
2015/11/20 15:24:06 forward.go:134: Failed to dial address:mtalk.google.com:5228 for reason:No available IP found for mtalk.google.com:5228
2015/11/20 15:24:06 forward.go:201: Failed to connect forward address for mtalk.google.com:5228.
2015/11/20 15:24:06 dispatch.go:111: Session[199][WARN][Forwardhttp://mtalk.google.com:5228]Failed to request proxy event for reason:No available IP found for mtalk.google.com:5228
2015/11/20 15:24:06 c4.go:274: Session[199] Request CONNECT https://mtalk.google.com:5228
2015/11/20 15:24:12 c4_http.go:151: Pull worker[evening-basin-7128.herokuapp.com]:2 recv invalid res:<nil>
2015/11/20 15:24:13 c4_http.go:160: Pull worker[evening-basin-7128.herokuapp.com]:2 stop working
2015/11/20 15:24:13 c4_http.go:147: Pull worker[evening-basin-7128.herokuapp.com]:2 start working
2015/11/20 15:24:14 google.go:97: Session[200]Request CONNECT https://www.google.com:443
2015/11/20 15:24:14 dispatch.go:111: Session[200][WARN][GoogleHttps]Failed to request proxy event for reason:No google proxy reachable:dial tcp 64.233.187.86:443: i/o timeout
2015/11/20 15:24:14 forward.go:134: Failed to dial address:www.google.com:443 for reason:No available IP found for www.google.com:443
2015/11/20 15:24:14 forward.go:201: Failed to connect forward address for www.google.com:443.
2015/11/20 15:24:14 dispatch.go:111: Session[200][WARN][Forwardhttp://www.google.com:443]Failed to request proxy event for reason:No available IP found for www.google.com:443
2015/11/20 15:24:14 c4.go:274: Session[200] Request CONNECT https://www.google.com:443
2015/11/20 15:24:15 c4_http.go:151: Pull worker[evening-basin-7128.herokuapp.com]:0 recv invalid res:<nil>
2015/11/20 15:24:16 c4_http.go:160: Pull worker[evening-basin-7128.herokuapp.com]:0 stop working
2015/11/20 15:24:16 c4_http.go:147: Pull worker[evening-basin-7128.herokuapp.com]:0 start working
2015/11/20 15:24:16 google.go:97: Session[201]Request CONNECT https://www.google.com:443
2015/11/20 15:24:16 dispatch.go:111: Session[201][WARN][GoogleHttps]Failed to request proxy event for reason:No google proxy reachable:dial tcp 74.125.23.100:443: i/o timeout
2015/11/20 15:24:22 forward.go:134: Failed to dial address:www.google.com:443 for reason:No available IP found for www.google.com:443
2015/11/20 15:24:22 forward.go:201: Failed to connect forward address for www.google.com:443.
2015/11/20 15:24:22 dispatch.go:111: Session[201][WARN][Forwardhttp://www.google.com:443]Failed to request proxy event for reason:No available IP found for www.google.com:443
2015/11/20 15:24:22 c4.go:274: Session[201] Request CONNECT https://www.google.com:443
2015/11/20 15:24:23 c4_http.go:151: Pull worker[evening-basin-7128.herokuapp.com]:2 recv invalid res:<nil>
2015/11/20 15:24:24 c4_http.go:160: Pull worker[evening-basin-7128.herokuapp.com]:2 stop working
2015/11/20 15:24:24 c4_http.go:147: Pull worker[evening-basin-7128.herokuapp.com]:2 start working
2015/11/20 15:24:26 c4_http.go:151: Pull worker[evening-basin-7128.herokuapp.com]:0 recv invalid res:<nil>
2015/11/20 15:24:27 c4_http.go:160: Pull worker[evening-basin-7128.herokuapp.com]:0 stop working
2015/11/20 15:24:27 c4_http.go:147: Pull worker[evening-basin-7128.herokuapp.com]:0 start working
2015/11/20 15:24:34 c4_http.go:151: Pull worker[evening-basin-7128.herokuapp.com]:2 recv invalid res:<nil>
2015/11/20 15:24:35 c4_http.go:160: Pull worker[evening-basin-7128.herokuapp.com]:2 stop working
2015/11/20 15:24:35 c4_http.go:147: Pull worker[evening-basin-7128.herokuapp.com]:2 start working
2015/11/20 15:24:36 c4.go:173: Session[201]Remote www.google.com:443 connection closed, current proxy addr:www.google.com:443
2015/11/20 15:24:42 google.go:97: Session[202]Request CONNECT https://www.google.com:443
2015/11/20 15:24:45 c4_http.go:151: Pull worker[evening-basin-7128.herokuapp.com]:2 recv invalid res:<nil>
2015/11/20 15:24:46 c4_http.go:160: Pull worker[evening-basin-7128.herokuapp.com]:2 stop working
2015/11/20 15:24:46 c4_http.go:147: Pull worker[evening-basin-7128.herokuapp.com]:2 start working
2015/11/20 15:24:48 forward.go:79: Found 192.30.252.128:443 for github.com:443
2015/11/20 15:24:48 forward.go:205: Session[203]Request CONNECT https://github.com:443
2015/11/20 15:24:49 forward.go:79: Found 54.175.100.133:443 for collector.githubapp.com:443
2015/11/20 15:24:50 forward.go:205: Session[204]Request CONNECT https://collector.githubapp.com:443
2015/11/20 15:24:50 forward.go:79: Found 192.30.252.125:443 for api.github.com:443
2015/11/20 15:24:51 forward.go:205: Session[206]Request CONNECT https://api.github.com:443
2015/11/20 15:24:53 google.go:97: Session[205]Request CONNECT https://clients1.google.com:443
2015/11/20 15:24:53 dispatch.go:111: Session[205][WARN][GoogleHttps]Failed to request proxy event for reason:No google proxy reachable:dial tcp 74.125.203.199:443: i/o timeout
func ServConn(local_reader *bufio.Reader, local *net.TCPConn, dialer Dialer) error {
connections.Add(1)
defer local.Close()
defer connections.Done()
// SOCKS does not include a length in the header, so take
// a punt that each request will be readable in one go.
buf := make([]byte, 256)
n, err := local_reader.Read(buf)
if err != nil || n < 2 {
//log.Printf("[%s] unable to read SOCKS header: %v", local.RemoteAddr(), err)
return fmt.Errorf("[%s] unable to read SOCKS header: %v", local.RemoteAddr(), err)
}
buf = buf[:n]
.......
see http://golang.org/pkg/bufio/#Reader.Read
It calls Read at most once on the underlying Reader, hence n may be less than len(p).
if local_reader.Read(buf) return 4 bytes, it may fall, is it?
https://github.com/mojombo/toml
看上去好像配置起来会比 json 舒服一些。
我之前编译成功过,用的是ubuntu 12.10 X64,现在用ubuntu 13.04 X64一直编译通不过
github.com/yinqiwen/gsnova/src/main
main
# main
/var/tmp/go-link-nXKOkG/000000.o: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
/usr/local/go/pkg/tool/linux_amd64/6l: running gcc failed: unsuccessful exit status 0x100
# github.com/yinqiwen/gsnova/src/main
/var/tmp/go-link-y1YzQG/000000.o: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
/usr/local/go/pkg/tool/linux_amd64/6l: running gcc failed: unsuccessful exit status 0x100
这是我认为比较关键的出错信息,是在看不懂,难道是gcc的原因?
hosts.json里只配置sniproxy,client.json里也配置了sniproxy,log里有connect的记录,但是连接速度明显是直连的,hosts.json配置上加上
"google_https":["sni_proxy"],
*.googlevideo.com":["google_https"],
速度就上去了,但是这是走的TSLDirect,那就是说现在的paas是默认不走sniproxy了吗?因为看现在http站点访问也没什么问题了,故有此一问。那要是不走sniproxy,log里connect是怎么回事呢,要想走sniproxy,client.json又该怎么配置?
提示 no updates from conf server:224.0.0.1:48100
#17
正如上面这个issue所提,此版本不能播放youtube视频,我不知道要怎么编译,按照首页的教程试了一下,还是没有成功,能不能请作者发布一个改进版的 0.22版本?
@ yinqiwen 你好!请问gsnova pass 服务端gsnova-paas-deploy-with-dependencies 有无镜像地址,
想试试能否在OpenShif v3 平台搭建服务端,谢谢解答!
Looks like this project still keeps the string 'SNIProxy' ,however I cannot estabish websocket connection through a sni proxy via configuring client.json as follows, which works well for version 0.26.3:
"Channel":[
{
"Enable":true,
"Name":"heroku-websocket",
//Allowed server url with schema 'http/http2/https/ws/wss/tcp/tls/quic/kcp/ssh'
//"ServerList":["quic://1.1.1.1:48101"],
"ServerList":[
"wss://example.herokuapp.com"
],
"SNI": ["herokuapp.com"],
"SNIProxy" : "cn_sni_proxy",
//"ServerList":["tcp://127.0.0.1:18080"],
//"ServerList":["ssh://[email protected]:22?key=./PPP"],
//if u are behind a HTTP proxy
"Proxy":"",
"ConnsPerServer":3,
//Unit: second
"DialTimeout":6,
//Unit: second
"ReadTimeout":15,
//Reconnect after 120s
"ReconnectPeriod": 300,
//ReconnectPeriod rand adjustment, the real reconnect period is random value between [P - adjust, P + adjust]
"RCPRandomAdjustment" : 10,
//Send heartbeat msg to keep alive
"HeartBeatPeriod": 30,
"Compressor":"none"
},
Although sniproxy is specified in client.json & hosts.json respectively, the client in version 0.28.0 ignore that and still connect wss server directly. Is the sniproxy function for PaaS deprecated in version 0.28.0?
报错信息如下:
dial websocket error:x509: failed to load system roots and no roots provided
2016/12/26 11:03:02 Channel[0] connect wss://.herokuapp.com failed:x509: failed to load system roots and no roots provided.
2016/12/26 11:03:03 Channel[0] auth failed since remote server disconnect.
2016/12/26 11:03:03 [ERROR]Failed to connect [0]wss://.herokuapp.com for reason:Server:wss://.herokuapp.com auth failed.
2016/12/26 11:03:03 Proxy channel(PAAS):heroku init failed with reason:Failed to auth wss://*.herokuapp.com
客户端如下显示:
owed proxy channel with schema:[http http2 https kcp quic ssh tcp tls ws wss]
2017/09/23 01:10:56 proxy.go:281: Proxy channel:direct init success
2017/09/23 01:10:56 dns.go:136: DNS query gsnova-liupanshan-liupanshan.7e14.starter-us-west-2.openshiftapps.com to 208.67.222.222:443
2017/09/23 01:10:57 dial.go:100: Connect tcp://gsnova-liupanshan-liupanshan.7e14.starter-us-west-2.openshiftapps.com:443 success.
2017/09/23 01:10:58 ws.go:34: dial websocket error:websocket: bad handshake
2017/09/23 01:10:58 proxy.go:272: [ERROR]Failed to create mux session for wss://gsnova-liupanshan-liupanshan.7e14.starter-us-west-2.openshiftapps.com/:0 with reason:websocket: bad handshake
2017/09/23 01:10:58 proxy.go:286: [ERROR]Proxy channel:heroku-websocket init failed
2017/09/23 01:10:58 proxy.go:409: Started GSnova r11.
2017/09/23 01:10:58 local_server.go:249: Listen on address :48100
2017/09/23 01:10:58 local_server.go:249: Listen on address :48101
2017/09/23 01:10:58 local_server.go:249: Listen on address :48102
2017/09/23 01:11:48 local_server.go:180: Failed to open stream for reason:No proxy found to get mux session by proxy:heroku-websocket
--------------------------------------------------------帮我看看 谢谢
说一下步骤也行,谷歌半天没有可参考的教程。paas须好,但是担心帐号问题。谢谢
话说提供一个完善的自动编译脚本不行吗?我虽然对go不熟悉,但也不至于看了半天还搞不定吧。
ubuntu 14.04 i686
无法通过SSH的方式使用AWS的虚拟机。报错如下:
2014/03/06 16:15:22 ssh.go:281: Init SSH.
2014/03/06 16:15:22 ssh.go:362: Invalid SSH server url:ssh://[email protected]:22/?i=aws.pem to connect for reason:dial tcp: missing address
尝试了很多组合,带端口、不带端口;私钥文件相对路径、绝对路径都不正确。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.