Add v2ray/gateway.json

This commit is contained in:
Newnius 2024-04-26 14:17:41 +00:00
parent 0f854dcfe7
commit f9704ac03e

132
v2ray/gateway.json Normal file
View File

@ -0,0 +1,132 @@
{
"dns": {
"hosts": {
"dummy.local": "127.0.0.1"
},
"servers": [
{
"address": "114.114.114.114",
"port": 53,
"clientIp": "58.32.1.1",
"domains": ["geosite:cn"]
}
],
"clientIp": "58.32.1.1",
"queryStrategy": "UseIPv4"
},
"inbounds": [
{
"tag": "http-in",
"listen": "0.0.0.0",
"port": 80,
"protocol": "dokodemo-door",
"settings": {
"address": "0.0.0.0",
"network": "tcp",
"followRedirect": true
},
"sniffing": {
"enabled": true,
"destOverride": ["http", "tls"]
},
"streamSettings": {
"sockopt": {
"tproxy": "tproxy"
}
}
},
{
"tag": "https-in",
"listen": "0.0.0.0",
"port": 443,
"protocol": "dokodemo-door",
"settings": {
"address": "0.0.0.0",
"network": "tcp",
"followRedirect": true
},
"sniffing": {
"enabled": true,
"destOverride": ["http", "tls"]
},
"streamSettings": {
"sockopt": {
"tproxy": "tproxy"
}
}
}
],
"outbounds": [
{
"tag": "proxy",
"protocol": "vmess",
"mux": {
"enabled": false
},
"settings": {
"vnext": [
{
"address": "proxy.example.com",
"port": 443,
"users": [
{
"id": "UUID-UUID-UUID-UUID-UUID"
}
]
}
]
},
"streamSettings": {
"network": "ws",
"security": "tls",
"wsSettings": {
"path": "/ray"
}
}
},
{
"tag": "direct",
"protocol": "freedom",
"settings": {
"domainStrategy": "AsIs"
},
"streamSettings": {
}
}
],
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"domain": [
"geosite:cn"
],
"outboundTag": "direct"
},
{
"type": "field",
"ip": [
"geoip:private",
"geoip:cn"
],
"outboundTag": "direct"
},
{
"type": "field",
"outboundTag": "direct",
"domain": ["proxy.example.com"]
},
{
"type": "field",
"inboundTag": ["http-in"],
"outboundTag": "proxy"
},
{
"type": "field",
"inboundTag": ["https-in"],
"outboundTag": "proxy"
}
]
}
}