From f9704ac03eb6abe4667840ee82eebf20d4e433f2 Mon Sep 17 00:00:00 2001 From: Newnius Date: Fri, 26 Apr 2024 14:17:41 +0000 Subject: [PATCH] Add v2ray/gateway.json --- v2ray/gateway.json | 132 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 v2ray/gateway.json diff --git a/v2ray/gateway.json b/v2ray/gateway.json new file mode 100644 index 0000000..c7024e6 --- /dev/null +++ b/v2ray/gateway.json @@ -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" + } + ] + } +} \ No newline at end of file