Comments (7)
试下
{"Protocol":["https"], "Rule":["BlockedByGFW"], "Remote":"Direct"}
这个是https的情况,在代理为http代理才能生效
from gsnova.
部署包的问题,应该只需要修改key为自己的设置
android apk这个目前是需要和PC上的gsnova client配合使用的, PC上的gsnova 和android 上需要连接在一个路由器上:
gsnova client用来提供配置文件同步服务, 将需要同步的配置文件放到一个目录下,这个目录设置在cleint.json里的Admin/ConfigDir中。 文件目录则需要如下的目录结构:
android
├── cac
│ ├── client.json
│ └── hosts.json
├── heroku
│ ├── client.json
│ └── hosts.json
├── qcloud-kcp
│ ├── client.json
│ └── hosts.json
├── qcloud-quic
│ ├── client.json
│ └── hosts.json
└── qcloud-tcp
├── client.json
└── hosts.json
gsnova android 则同步这些配置后,就可以选择cac/heroku等配置了
from gsnova.
刚release了一个0.27.3,建议用这个, 与0.26.x不兼容
android的配置需要注意的是和pc上有微妙的不同,主要是udp/dns相关的地方,这个是一个例子:
{
"Log": [
"stdout"
],
"UserAgent": "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20100101 Firefox/15.0.1",
"Cipher": {
"Method": "auto",
"Key": "809240d3a021449f6e67bb73221d42df942a308a"
},
"Auth": "gsnova",
"LocalDNS": {
//"Listen": "127.0.0.1:48100",
"FastDNS":["223.5.5.5","180.76.76.76"],
"TrustedDNS": [
"208.67.222.222:443",
"208.67.220.220:443"
],
"TCPConnect": true
},
//fake address, only used as udp protocol indicator
"UDPGW":{
"Addr":"20.20.20.20:1111",
"LocalDNSRecord":{
"*" : "111.111.111.111"
}
},
"SNI":{
//Used to redirect SNI host to another for sniffed SNI
"Redirect":{
//This fix "DF-DFERH-01" error in HW phone for google play
"services.googleapis.cn":"services.googleapis.com"
}
},
"Proxy":[
{
"Local": ":48100",
"PAC":[
{"Protocol":["dns"],"Remote":"direct"},
{"Protocol":["udp"],"Remote":"direct"},
{"Remote":"default"}
]
}
],
"Channel": [
{
"Enable": true,
"Name": "default",
"ServerList": [
"quic://119.119.119.119:48100"
],
//if u are behind a HTTP proxy
"HTTPProxy": "",
"ConnsPerServer": 3,
//Unit: second
"DialTimeout": 5,
//Unit: second
"ReadTimeout": 15,
//Reconnect after 120s
"ReconnectPeriod": 2400,
//ReconnectPeriod rand adjustment, the real reconnect period is random value between [P - adjust, P + adjust]
"RCPRandomAdjustment": 60,
//Send heartbeat msg to keep alive
"HeartBeatPeriod": 30
}
]
}
from gsnova.
@yinqiwen 之前试了下 0.27.2,真是强,速度很快
如果使用前一个版本 0.27.2 版的服务端是可以的
研究了一会,最后发现需要把 Procfile 文件里最后的 * 加上双引号 -allow "*"
不然服务端里这个允许用户就会变成了 Godeps
2017-09-06T10:24:27.006642+00:00 app[web.1]: "AllowedUser": [
2017-09-06T10:24:27.006643+00:00 app[web.1]: "Godeps"
2017-09-06T10:24:27.006643+00:00 app[web.1]: ],
加上引号就正常了,这个感觉很怪....
2017-09-06T10:32:02.602840+00:00 app[web.1]: "AllowedUser": [
2017-09-06T10:32:02.602840+00:00 app[web.1]: "*"
2017-09-06T10:32:02.602841+00:00 app[web.1]: ],
from gsnova.
sorry, 忘了shell会解释 "*"
from gsnova.
感谢~
顺便问下如果想要 BlockedByGFW 并且是 http 的全部走 heroku
BlockedByGFW 并且是 https 的全部走 sni ,怎么设置,以前好像有个 "Method":["CONNECT"] 这种,但是新版应该不行吧
因为好像全部的网址都被这里写成 CONNECT 模式了
Line 297 in fc3203a
顺便还有 apnic_cn.txt 不太正常,每次都会被写空
下次打开就无法加载了,需要改成只读模式才行
from gsnova.
就是这样,确实可以,多谢,多谢
from gsnova.
Related Issues (20)
- 0.33.1版Android apk点“连接VPN”即自动退出app。
- where is the Makefile HOT 1
- mac os : display "Killed: 9" HOT 1
- how generate Cipher key、P2P Token?
- 如何自动选择icmp(隧道)、udp(p2p、(隧道))、dns(隧道)、kcp、tcp协议?
- No enough arguments HOT 1
- gsnova卡顿
- fd leak
- Transparent Proxy guidance
- gsnova客户端启动在Mac OS12下失败,能否用新版go重新build一个macos的包?
- log文件 HOT 1
- 正常使用过程中出现连接断开问题 HOT 6
- 下载油管视频会断流 HOT 1
- vultr和搬瓦工
- 命令行下多用户
- 发现一个奇怪的现象 HOT 2
- 请问那里能看到Android版的源码 HOT 1
- Transparent模式下大量CLOSE_WAIT HOT 2
- gsnova 0.34.0 访问某些网站被识别为机器人 HOT 1
- Rotating Proxy Pool
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gsnova.