Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "log" : {
- "access": "/var/log/xray/access.log",
- "error": "/var/log/xray/error.log",
- "loglevel": "warning"
- },
- "inbounds": [
- {
- "listen": "127.0.0.1",
- "port": 10000,
- "protocol": "dokodemo-door",
- "settings": {
- "address": "127.0.0.1"
- },
- "tag": "api"
- },
- {
- "listen": "127.0.0.1",
- "port": "10001",
- "protocol": "vless",
- "settings": {
- "decryption":"none",
- "clients": [
- {
- "id": "KobeKobz"
- #vless
- }
- ]
- },
- "streamSettings":{
- "network": "ws",
- "wsSettings": {
- "path": "/vless"
- }
- }
- },
- {
- "listen": "127.0.0.1",
- "port": "10002",
- "protocol": "vmess",
- "settings": {
- "clients": [
- {
- "id": "KobeKobz",
- "alterId": 0
- #vmess
- }
- ]
- },
- "streamSettings":{
- "network": "ws",
- "wsSettings": {
- "path": "/vmess"
- }
- }
- },
- {
- "listen": "127.0.0.1",
- "port": "10003",
- "protocol": "trojan",
- "settings": {
- "decryption":"none",
- "clients": [
- {
- "password": "KobeKobz"
- #trojanws
- }
- ],
- "udp": true
- },
- "streamSettings":{
- "network": "ws",
- "wsSettings": {
- "path": "/trojan-ws"
- }
- }
- },
- {
- "listen": "127.0.0.1",
- "port": "10004",
- "protocol": "shadowsocks",
- "settings": {
- "clients": [
- {
- "method": "aes-128-gcm",
- "password": "KobeKobz"
- #ssws
- }
- ],
- "network": "tcp,udp"
- },
- "streamSettings":{
- "network": "ws",
- "wsSettings": {
- "path": "/ss-ws"
- }
- }
- },
- {
- "listen": "127.0.0.1",
- "port": "10005",
- "protocol": "vless",
- "settings": {
- "decryption":"none",
- "clients": [
- {
- "id": "KobeKobz"
- #vlessgrpc
- }
- ]
- },
- "streamSettings":{
- "network": "grpc",
- "grpcSettings": {
- "serviceName": "vless-grpc"
- }
- }
- },
- {
- "listen": "127.0.0.1",
- "port": "10006",
- "protocol": "vmess",
- "settings": {
- "clients": [
- {
- "id": "KobeKobz",
- "alterId": 0
- #vmessgrpc
- }
- ]
- },
- "streamSettings":{
- "network": "grpc",
- "grpcSettings": {
- "serviceName": "vmess-grpc"
- }
- }
- },
- {
- "listen": "127.0.0.1",
- "port": "10007",
- "protocol": "trojan",
- "settings": {
- "decryption":"none",
- "clients": [
- {
- "password": "KobeKobz"
- #trojangrpc
- }
- ]
- },
- "streamSettings":{
- "network": "grpc",
- "grpcSettings": {
- "serviceName": "trojan-grpc"
- }
- }
- },
- {
- "listen": "127.0.0.1",
- "port": "10008",
- "protocol": "shadowsocks",
- "settings": {
- "clients": [
- {
- "method": "aes-128-gcm",
- "password": "KobeKobz"
- #ssgrpc
- }
- ],
- "network": "tcp,udp"
- },
- "streamSettings":{
- "network": "grpc",
- "grpcSettings": {
- "serviceName": "ss-grpc"
- }
- }
- }
- ],
- "outbounds": [
- {
- "protocol": "freedom",
- "settings": {}
- },
- {
- "protocol": "blackhole",
- "settings": {},
- "tag": "blocked"
- }
- ],
- "routing": {
- "rules": [
- {
- "type": "field",
- "ip": [
- "0.0.0.0/8",
- "10.0.0.0/8",
- "100.64.0.0/10",
- "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": "blocked"
- },
- {
- "inboundTag": [
- "api"
- ],
- "outboundTag": "api",
- "type": "field"
- },
- {
- "type": "field",
- "outboundTag": "blocked",
- "protocol": [
- "bittorrent"
- ]
- }
- ]
- },
- "stats": {},
- "api": {
- "services": [
- "StatsService"
- ],
- "tag": "api"
- },
- "policy": {
- "levels": {
- "0": {
- "statsUserDownlink": true,
- "statsUserUplink": true
- }
- },
- "system": {
- "statsInboundUplink": true,
- "statsInboundDownlink": true,
- "statsOutboundUplink" : true,
- "statsOutboundDownlink" : true
- }
- }
- }
- {
- "outbounds": [
- {
- "protocol": "dns",
- "tag": "dns-out"
- },
- {
- "streamSettings": {
- "sockopt": {
- "mark": 255
- }
- },
- "settings": {
- "domainStrategy": "UseIPv4"
- },
- "protocol": "freedom",
- "tag": "direct"
- },
- {
- "protocol": "blackhole",
- "tag": "blackhole"
- },
- {
- "settings": {
- "servers": [
- {
- "port": 10000,
- "address": "127.0.0.1"
- }
- ]
- },
- "streamSettings": {
- "network": "tcp",
- "security": "none"
- },
- "protocol": "socks",
- "tag": "out"
- }
- ],
- "log": {
- "loglevel": "warning"
- },
- "dns": {
- "hosts": {
- "tiar.app": "174.138.21.128",
- "geosite:category-ads-all": "127.0.0.1"
- },
- "servers": [
- {
- "address": "https://doh.tiar.app/dns-query",
- "domains": ["geosite:geolocation-!id"],
- "expectIPs": ["geoip:!id"]
- },
- "174.138.21.128",
- {
- "address": "174.138.21.128",
- "port": 53,
- "domains": ["geosite:id", "geosite:category-games@id"],
- "expectIPs": ["geoip:id"],
- "skipFallback": true
- },
- {
- "address": "localhost",
- "skipFallback": true
- }
- ]
- },
- "routing": {
- "rules": [
- {
- "type": "field",
- "outboundTag": "Reject",
- "domain": ["geosite:category-ads-all"]
- },
- {
- "type": "field",
- "outboundTag": "Direct",
- "domain": [
- "geosite:private",
- "geosite:apple-id",
- "geosite:google-id",
- "geosite:tld-id",
- "geosite:category-games@id"
- ]
- },
- {
- "type": "field",
- "outboundTag": "Proxy",
- "domain": ["geosite:geolocation-!id"]
- },
- {
- "type": "field",
- "outboundTag": "Direct",
- "domain": ["geosite:id"]
- },
- {
- "type": "field",
- "outboundTag": "Proxy",
- "network": "tcp,udp"
- }
- ]
- },
- "inbounds": [
- {
- "port": 10000,
- "protocol": "dokodemo-door",
- "settings": {
- "port": 53,
- "network": "udp",
- "address": "174.138.21.128"
- },
- "tag": "dns-in",
- "listen": "127.0.0.1"
- }
- ]
- }
Add Comment
Please, Sign In to add comment