-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from Ariselia/master
update readme.
- Loading branch information
Showing
2 changed files
with
154 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# AndroidLibV2ray | ||
# AndroidLibV2Ray | ||
|
||
![Build Status](https://api.travis-ci.org/xiaokangwang/AndroidLibV2ray.svg?branch=master) | ||
|
||
在安卓设备上使用V2RayGo, | ||
若在使用vmess+tcp(即最基本的设置),请按conf文件夹中的conf_vpnservice.json为模板进行修改; | ||
若在使用ws+tls,请按照conf文件夹中的conf_ws_vpnservice.json为模板进行修改. | ||
如果想更多的了解LibV2ray, 请点击[这里](https://github.com/xiaokangwang/LibV2Ray-Doc/blob/master/configure.dot) | ||
|
||
### 在安卓设备上使用V2RayGo | ||
若在使用vmess+tcp(即最基本的设置), 请按conf文件夹中的conf_vpnservice.json为模板进行修改;<br> | ||
若在使用ws+tls,请按照conf文件夹中的conf_ws_vpnservice.json为模板进行修改; | ||
#### 如果想更多的了解LibV2Ray, 请点击[这里](https://cdn.rawgit.com/xiaokangwang/5542497a3017b8bf9a99c08891a06f27/raw/928d87a1e2722dfd02041731d0dd39eff68bbf89/out.svg) | ||
##### 需要自行编译请参考 [这个](https://github.com/xiaokangwang/V2RayGO/issues/1) issue. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
{ | ||
"port": 10808, | ||
"log": { | ||
"access": "", | ||
"error": "", | ||
"loglevel": "info" | ||
}, | ||
"inbound": { | ||
"protocol": "socks", | ||
"listen": "127.0.0.1", | ||
"settings": { | ||
"auth": "noauth", | ||
"udp": true | ||
} | ||
}, | ||
"inboundDetour": [ | ||
{ | ||
"protocol": "http", | ||
"port": 10845, | ||
"settings": {}, | ||
"listen": "127.0.0.1" | ||
}, | ||
{ | ||
"protocol": "dokodemo-door", | ||
"listen": "127.0.0.1", | ||
"port": 10846, | ||
"settings": { | ||
"network": "tcp", | ||
"timeout": 0, | ||
"followRedirect": true | ||
} | ||
}, | ||
{ | ||
"protocol": "dokodemo-door", | ||
"listen": "127.0.0.1", | ||
"port": 5353, | ||
"settings": { | ||
"network": "tcp", | ||
"timeout": 120, | ||
"address": "208.67.222.222", | ||
"port": 53, | ||
"followRedirect": false | ||
} | ||
} | ||
], | ||
"outbound": { | ||
"protocol": "vmess", | ||
"settings": { | ||
"vnext": [ | ||
{ | ||
"address": "serveraddr.com", | ||
"port": 443, | ||
"users": [ | ||
{ | ||
"id": "uuid", | ||
"alterId": 64 | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"streamSettings": { | ||
"network": "tcp", | ||
"security": "tls", | ||
"tlsSettings": { | ||
"allowInsecure": false | ||
} | ||
} | ||
}, | ||
"outboundDetour": [ | ||
{ | ||
"protocol": "freedom", | ||
"settings": {}, | ||
"tag": "direct" | ||
} | ||
], | ||
"routing": { | ||
"strategy": "rules", | ||
"settings": { | ||
"rules": [ | ||
{ | ||
"type": "field", | ||
"ip": [ | ||
"0.0.0.0/8", | ||
"10.0.0.0/8", | ||
"100.64.0.0/10", | ||
"127.0.0.0/8", | ||
"169.254.0.0/16", | ||
"172.16.0.0/12", | ||
"192.0.0.0/24", | ||
"192.0.2.0/24", | ||
"192.168.0.0/16", | ||
"198.18.0.0/15", | ||
"198.51.100.0/24", | ||
"203.0.113.0/24", | ||
"::1/128", | ||
"fc00::/7", | ||
"fe80::/10" | ||
], | ||
"outboundTag": "direct" | ||
} | ||
] | ||
} | ||
}, | ||
"transport": {}, | ||
"#lib2ray": { | ||
"enabled": true, | ||
"listener": { | ||
"onUp": "#none", | ||
"onDown": "#none" | ||
}, | ||
"env": [ | ||
"V2RayDNSPort=5353", | ||
"DNSForwardingProxyPort=5350", | ||
"V2RaySocksPort=10808" | ||
], | ||
"render": [], | ||
"escort": [], | ||
"vpnservice": { | ||
"Target": "${datadir}tun2socks", | ||
"Args": [ | ||
"--netif-ipaddr", | ||
"26.26.26.2", | ||
"--netif-netmask", | ||
"255.255.255.0", | ||
"--socks-server-addr", | ||
"127.0.0.1:$V2RaySocksPort", | ||
"--tunfd", | ||
"3", | ||
"--tunmtu", | ||
"1500", | ||
"--sock-path", | ||
"/dev/null", | ||
"--loglevel", | ||
"4", | ||
"--enable-udprelay" | ||
], | ||
"VPNSetupArg": "m,1500 a,26.26.26.1,24 r,0.0.0.0,0 d,208.67.222.222" | ||
}, | ||
"preparedDomainName": { | ||
"domainName": [ | ||
"serveraddr.com:443" | ||
], | ||
"tcpVersion": "tcp4", | ||
"udpVersion": "udp4" | ||
} | ||
} | ||
} |