Skip to content

Commit

Permalink
Merge pull request #24 from Ariselia/master
Browse files Browse the repository at this point in the history
update readme.
  • Loading branch information
xiaokangwang committed Dec 18, 2017
2 parents a22f2d8 + a23db51 commit a15440e
Show file tree
Hide file tree
Showing 2 changed files with 154 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
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.
148 changes: 148 additions & 0 deletions conf/conf_tls_only_vpnservice.json
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"
}
}
}

0 comments on commit a15440e

Please sign in to comment.