add v2ray
This commit is contained in:
parent
00b8edf64f
commit
4f2268ac3f
42
etc/v2ray/ws-tls.client.json
Normal file
42
etc/v2ray/ws-tls.client.json
Normal file
@ -0,0 +1,42 @@
|
||||
{
|
||||
"inbounds": [{
|
||||
"port": 1080,
|
||||
"listen": "127.0.0.1",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"udp": true
|
||||
}
|
||||
}],
|
||||
"outbounds": [{
|
||||
"protocol": "vmess",
|
||||
"settings": {
|
||||
"vnext": [{
|
||||
"address": "SERVER_ADDR",
|
||||
"port": 443,
|
||||
"users": [{ "id": "UUID" }]
|
||||
}]
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "ws",
|
||||
"security": "tls",
|
||||
"wsSettings": {
|
||||
"path": "/ray"
|
||||
}
|
||||
}
|
||||
},{
|
||||
"protocol": "freedom",
|
||||
"tag": "direct",
|
||||
"settings": {}
|
||||
}],
|
||||
"routing": {
|
||||
"strategy": "rules",
|
||||
"settings": {
|
||||
"domainStrategy": "IPOnDemand",
|
||||
"rules": [{
|
||||
"type": "field",
|
||||
"ip": ["geoip:private"],
|
||||
"outboundTag": "direct"
|
||||
}]
|
||||
}
|
||||
}
|
||||
}
|
38
etc/v2ray/ws.server.json
Normal file
38
etc/v2ray/ws.server.json
Normal file
@ -0,0 +1,38 @@
|
||||
{
|
||||
"inbounds": [{
|
||||
"port": 80,
|
||||
"protocol": "vmess",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"id": "UUID",
|
||||
"level": 1,
|
||||
"alterId": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "ws",
|
||||
"wsSettings": {
|
||||
"path": "/ray"
|
||||
}
|
||||
}
|
||||
}],
|
||||
"outbounds": [{
|
||||
"protocol": "freedom",
|
||||
"settings": {}
|
||||
},{
|
||||
"protocol": "blackhole",
|
||||
"settings": {},
|
||||
"tag": "blocked"
|
||||
}],
|
||||
"routing": {
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": ["geoip:private"],
|
||||
"outboundTag": "blocked"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user