Merge pull request #7 from Sanczzg/master

全面更新模板
This commit is contained in:
EpLiar 2020-08-01 23:13:07 +08:00 committed by GitHub
commit b886734f26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 770 additions and 1140 deletions

View File

@ -2,36 +2,65 @@
"log": { "log": {
"loglevel": "warning" "loglevel": "warning"
}, },
"inbound": { "routing": {
"port": 6789, "domainStratedy": "AsIs",
"listen": "127.0.0.1", "rules": [
"protocol": "socks", {
"settings": { "type": "field",
"auth": "noauth", "ip": [
"udp": false, "geoip:private"
"ip": "127.0.0.1" ],
} "tag": "direct"
}
]
}, },
"outbound": { "inbounds": [
"protocol": "socks", {
"settings": { "listen": "127.0.0.1",
"servers": [ "port": "1080",
{ "protocol": "socks",
"address": "you server", "settings": {
"port": 443, "auth": "noauth",
"users": [ "udp": true,
{ "ip": "127.0.0.1"
"user": "hello", }
"pass": "3.1415",
"level": 0
}
]
}
]
}, },
"streamSettings": { {
"network": "tcp", "listen": "127.0.0.1",
"security": "tls" "port": "1081",
"protocol": "http"
} }
} ],
"outbounds": [
{
"protocol": "socks",
"settings": {
"server": [
{
"address": "",
"port": 1234,
"users": [
{
"user": "",
"pass": ""
}
]
}
]
},
"streamSettings": {
"network": "tcp",
"security": "tls",
"tlsSettings": {
"serverName": "example.domain",
"allowInsecure": false
}
},
"tag": "proxy"
},
{
"protocol": "freedom",
"tag": "direct"
}
]
} }

View File

@ -1,75 +1,57 @@
{ {
"log": { "log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "warning" "loglevel": "warning"
}, },
"inbound": { "routing": {
"port": 443, "domainStrategy": "AsIs",
"protocol": "socks", "rules": [
"settings": { {
"auth": "password", "type": "field",
"accounts": [ "ip": [
{ "geoip:private"
"user": "hello", ],
"pass": "3.1415" "outboundTag": "block"
} }
], ]
"udp": false, },
"ip": "127.0.0.1", "inbounds": [
"timeout": 0, {
"userLevel": 0 "listen": "0.0.0.0",
}, "port": 1234,
"streamSettings": { "protocol": "socks",
"network": "tcp", "settings": {
"security": "tls", "auth": "password",
"tlsSettings": { "accounts": [
"certificates": [
{ {
"certificateFile": "/etc/v2ray/v2ray.crt", "user": "",
"keyFile": "/etc/v2ray/v2ray.key" "pass": ""
} }
] ],
"udp": true,
"ip": "127.0.0.1"
},
"streamSettings": {
"network": "tcp",
"security": "tls",
"tlsSettings": {
"certificates": [
{
"certificateFile": "/path/to/certificate.crt",
"keyFile": "/path/to/key.key"
}
]
}
} }
} }
}, ],
"outbound": { "outbounds": [
"protocol": "freedom", {
"settings": {} "protocol": "freedom",
}, "tag": "direct"
"outboundDetour": [ },
{ {
"protocol": "blackhole", "protocol": "blackhole",
"settings": {}, "tag": "block"
"tag": "blocked"
} }
], ]
"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": "blocked"
}
]
}
}
}

View File

@ -1,149 +1,94 @@
{ {
"outbound": { "log": {
"streamSettings": { "loglevel": "warning"
"network": "tcp",
"kcpSettings": null,
"wsSettings": null,
"tcpSettings": {
"header": {
"type": "http",
"request": {
"path": [
"/"
],
"version": "1.1",
"method": "GET",
"headers": {
"Host": "cloudflare.com",
"User-Agent": [
"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36",
"Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/53.0.2785.109 Mobile/14A456 Safari/601.1.46"
],
"Connection": [
"keep-alive"
],
"Pragma": "no-cache",
"Accept-Encoding": [
"gzip, deflate"
]
}
},
"response": {
"status": "200",
"headers": {
"Transfer-Encoding": [
"chunked"
],
"Connection": [
"keep-alive"
],
"Content-Type": [
"application/octet-stream",
"video/mpeg"
],
"Pragma": "no-cache"
},
"reason": "OK",
"version": "1.1"
}
}
},
"tlsSettings": {},
"security": ""
}, },
"tag": "agentout", "routing": {
"protocol": "vmess", "domainStratedy": "AsIs",
"mux": { "rules": [
"enabled": true
},
"settings": {
"vnext": [
{
"users": [
{ {
"alterId": 100, "type": "field",
"security": "aes-128-gcm", "ip": [
"id": "e2b39869-7e9e-411b-a561-00904419bed9" "geoip:private"
],
"tag": "direct"
} }
], ]
"port": 1234,
"address": "Your_IP_Address"
}
]
}
},
"log": {
"access": "",
"loglevel": "info",
"error": ""
},
"outboundDetour": [
{
"tag": "direct",
"protocol": "freedom",
"settings": {
"response": null
}
}, },
{ "inbounds": [
"tag": "blockout",
"protocol": "blackhole",
"settings": {
"response": {
"type": "http"
}
}
}
],
"inbound": {
"streamSettings": null,
"settings": {
"ip": "127.0.0.1",
"udp": true,
"clients": null,
"auth": "noauth"
},
"protocol": "socks",
"port": 1080,
"listen": "0.0.0.0"
},
"inboundDetour": null,
"routing": {
"settings": {
"rules": [
{ {
"ip": [ "listen": "127.0.0.1",
"0.0.0.0/8", "port": "1080",
"10.0.0.0/8", "protocol": "socks",
"100.64.0.0/10", "settings": {
"127.0.0.0/8", "auth": "noauth",
"169.254.0.0/16", "udp": true,
"172.16.0.0/12", "ip": "127.0.0.1"
"192.0.0.0/24", }
"192.0.2.0/24", },
"192.168.0.0/16", {
"198.18.0.0/15", "listen": "127.0.0.1",
"198.51.100.0/24", "port": "1081",
"203.0.113.0/24", "protocol": "http"
"::1/128", }
"fc00::/7", ],
"fe80::/10" "outbounds": [
], {
"domain": null, "protocol": "vmess",
"type": "field", "settings": {
"port": null, "vnext": [
"outboundTag": "direct" {
"address": "",
"port": 1234,
"user": [
{
"id": "",
"alterId": 4,
"security": "auto",
"testsEnabled": "VMessAEAD"
}
]
}
]
},
"streamSettings": {
"network": "tcp",
"tcpSettings": {
"header": {
"type": "http",
"request": {
"version": "1.1",
"method": "GET",
"path": [
"/"
],
"headers": {
"Host": [
"www.bing.com",
"www.cloudflare.com",
"www.amazon.com"
],
"User-Agent": [
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36 Edg/84.0.522.49",
"Mozilla/5.0 (iPhone; CPU iPhone OS 13_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/84.0.4147.71 Mobile/15E148 Safari/604.1"
],
"Accept-Encoding": [
"gzip, deflate"
],
"Connection": [
"keep-alive"
],
"Pragma": "no-cache"
}
}
}
},
"security": "none"
},
"tag": "proxy"
},
{
"protocol": "freedom",
"tag": "direct"
} }
],
"domainStrategy": "IPIfNonMatch"
},
"strategy": "rules"
},
"dns": {
"servers": [
"8.8.8.8",
"8.8.4.4",
"localhost"
] ]
} }
}

View File

@ -1,122 +1,73 @@
{ {
"outbound": { "log": {
"streamSettings": null, "loglevel": "warning"
"tag": null, },
"protocol": "freedom", "routing": {
"mux": null, "domainStrategy": "AsIs",
"settings": null "rules": [
}, {
"log": { "type": "field",
"access": "/var/log/v2ray/access.log", "ip": [
"loglevel": "info", "geoip:private"
"error": "/var/log/v2ray/error.log" ],
}, "outboundTag": "block"
"outboundDetour": [
{
"tag": "blocked",
"protocol": "blackhole",
"settings": null
}
],
"inbound": {
"streamSettings": {
"network": "tcp",
"kcpSettings": null,
"wsSettings": null,
"tcpSettings": {
"header": {
"request": {
"path": [
"/"
],
"version": "1.1",
"method": "GET",
"headers": {
"Host": "cloudflare.com",
"Connection": [
"keep-alive"
],
"Accept-Encoding": [
"gzip, deflate"
],
"Pragma": "no-cache",
"User-Agent": [
"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36",
"Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/53.0.2785.109 Mobile/14A456 Safari/601.1.46"
]
} }
}, ]
"type": "http", },
"response": { "inbounds": [
"status": "200", {
"headers": { "listen": "0.0.0.0",
"Transfer-Encoding": [ "port": 1234,
"chunked" "protocol": "vmess",
], "settings": {
"Connection": [ "clients": [
"keep-alive" {
], "id": "",
"Content-Type": [ "alterId": 4
"application/octet-stream", }
"video/mpeg" ],
], "disableInsecureEncryption": true
"Pragma": "no-cache"
}, },
"reason": "OK", "streamSettings": {
"version": "1.1" "network": "tcp",
} "tcpSettings": {
"header": {
"type": "http",
"response": {
"version": "1.1",
"status": "200",
"reason": "OK",
"headers": {
"Content-Type": [
"application/octet-stream",
"video/mpeg",
"application/x-msdownload",
"text/html",
"application/x-shockwave-flash"
],
"Transfer-Encoding": [
"chunked"
],
"Connection": [
"keep-alive"
],
"Pragma": "no-cache"
}
}
}
},
"security": "none"
}
} }
}, ],
"tlsSettings": {}, "outbounds": [
"security": ""
},
"settings": {
"ip": null,
"udp": true,
"clients": [
{ {
"alterId": 100, "protocol": "freedom",
"security": "aes-128-gcm", "tag": "direct"
"id": "e2b39869-7e9e-411b-a561-00904419bed9" },
}
],
"auth": null
},
"protocol": "vmess",
"port": 1234,
"listen": null
},
"inboundDetour": null,
"routing": {
"settings": {
"rules": [
{ {
"ip": [ "protocol": "blackhole",
"0.0.0.0/8", "tag": "block"
"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"
],
"domain": null,
"type": "field",
"port": null,
"outboundTag": "blocked"
} }
], ]
"domainStrategy": null }
},
"strategy": "rules"
},
"dns": null
}

View File

@ -1,111 +1,73 @@
{ {
"outbound": {
"streamSettings": {
"network": "h2",
"kcpSettings": null,
"httpSettings": {
"host": [
"example.domain"
],
"path": "/test"
},
"tcpSettings": null,
"tlsSettings": {},
"security": "tls"
},
"tag": "agentout",
"protocol": "vmess",
"mux": {
"enabled": true
},
"settings": {
"vnext": [
{
"users": [
{
"alterId": 100,
"security": "aes-128-gcm",
"id": "0cdf8a45-303d-4fed-9780-29aa7f54175e"
}
],
"port": 443,
"address": "example.domain"
}
]
}
},
"log": { "log": {
"access": "", "loglevel": "warning"
"loglevel": "info",
"error": ""
}, },
"outboundDetour": [ "routing": {
"domainStratedy": "AsIs",
"rules": [
{
"type": "field",
"ip": [
"geoip:private"
],
"tag": "direct"
}
]
},
"inbounds": [
{ {
"tag": "direct", "listen": "127.0.0.1",
"protocol": "freedom", "port": "1080",
"protocol": "socks",
"settings": { "settings": {
"response": null "auth": "noauth",
"udp": true,
"ip": "127.0.0.1"
} }
}, },
{ {
"tag": "blockout", "listen": "127.0.0.1",
"protocol": "blackhole", "port": "1081",
"settings": { "protocol": "http"
"response": {
"type": "http"
}
}
} }
], ],
"inbound": { "outbounds": [
"streamSettings": null, {
"settings": { "protocol": "vmess",
"ip": "127.0.0.1", "settings": {
"udp": true, "vnext": [
"clients": null, {
"auth": "noauth" "address": "",
}, "port": 1234,
"protocol": "socks", "user": [
"port": 1080, {
"listen": "0.0.0.0" "id": "",
}, "alterId": 4,
"inboundDetour": null, "security": "none"
"routing": { }
"settings": { ]
"rules": [ }
{ ]
"ip": [ },
"0.0.0.0/8", "streamSettings": {
"10.0.0.0/8", "network": "http",
"100.64.0.0/10", "httpSettings": {
"127.0.0.0/8", "host": [
"169.254.0.0/16", "example.domain"
"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"
], ],
"domain": null, "path": ""
"type": "field", },
"port": null, "security": "tls",
"outboundTag": "direct" "tlsSettings": {
"serverName": "example.domain",
"allowInsecure": false
} }
], },
"domainStrategy": "IPIfNonMatch" "tag": "proxy"
}, },
"strategy": "rules" {
}, "protocol": "freedom",
"dns": { "tag": "direct"
"servers": [ }
"8.8.8.8", ]
"8.8.4.4", }
"localhost"
]
}
}

View File

@ -1,91 +1,61 @@
{ {
"outbound": {
"streamSettings": null,
"tag": null,
"protocol": "freedom",
"mux": null,
"settings": null
},
"log": { "log": {
"access": "/var/log/v2ray/access.log", "loglevel": "warning"
"loglevel": "error",
"error": "/var/log/v2ray/error.log"
}, },
"inboundDetour": null, "routing": {
"inbound": { "domainStrategy": "AsIs",
"streamSettings": { "rules": [
"network": "h2", {
"kcpSettings": null, "type": "field",
"httpSettings": { "ip": [
"host": [ "geoip:private"
"example.domain"
], ],
"path": "/test" "outboundTag": "block"
}, }
"tcpSettings": null, ]
"tlsSettings": {
"certificates": [
{
"keyFile": "/path/to/example.domain.key",
"certificateFile": "/path/to/example.domain/fullchain.cer"
}
]
},
"security": "tls"
},
"listen": null,
"protocol": "vmess",
"port": 443,
"settings": {
"ip": null,
"udp": true,
"clients": [
{
"alterId": 100,
"security": "aes-128-gcm",
"id": "0cdf8a45-303d-4fed-9780-29aa7f54175e"
}
],
"auth": null
}
}, },
"outboundDetour": [ "inbounds": [
{ {
"tag": "blocked", "listen": "0.0.0.0",
"protocol": "blackhole", "port": 1234,
"settings": null "protocol": "vmess",
"settings": {
"clients": [
{
"id": "",
"alterId": 4
}
],
"disableInsecureEncryption": false
},
"streamSettings": {
"network": "http",
"httpSettings": {
"host": [
"example.domain"
],
"path": ""
},
"security": "tls",
"tlsSettings": {
"certificates": [
{
"certificateFile": "/path/to/certificate.crt",
"keyFile": "/path/to/key.key"
}
]
}
}
} }
], ],
"routing": { "outbounds": [
"strategy": "rules", {
"settings": { "protocol": "freedom",
"rules": [ "tag": "direct"
{ },
"ip": [ {
"0.0.0.0/8", "protocol": "blackhole",
"10.0.0.0/8", "tag": "block"
"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"
],
"domain": null,
"type": "field",
"port": null,
"outboundTag": "blocked"
}
],
"domainStrategy": null
} }
}, ]
"dns": null }
}

View File

@ -1,106 +1,67 @@
{ {
"dns": { "log": {
"servers": [ "loglevel": "warning"
"8.8.8.8", },
"8.8.4.4", "routing": {
"localhost" "domainStratedy": "AsIs",
"rules": [
{
"type": "field",
"ip": [
"geoip:private"
],
"tag": "direct"
}
] ]
}, },
"inbound": { "inbounds": [
"listen": "0.0.0.0",
"port": 1080,
"protocol": "socks",
"settings": {
"auth": "noauth",
"clients": null,
"ip": "127.0.0.1",
"udp": true
},
"streamSettings": null
},
"inboundDetour": null,
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "info"
},
"outbound": {
"mux": {
"enabled": true
},
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "example.domain",
"port": 443,
"users": [
{
"alterId": 64,
"id": "0cdf8a45-303d-4fed-9780-29aa7f54175e",
"security": "none"
}
]
}
]
},
"streamSettings": {
"kcpSettings": null,
"network": "tcp",
"security": "tls",
"tcpSettings": null,
"tlsSettings": {},
"wsSettings": null
},
"tag": "agentout"
},
"outboundDetour": [
{ {
"protocol": "freedom", "listen": "127.0.0.1",
"port": "1080",
"protocol": "socks",
"settings": { "settings": {
"response": null "auth": "noauth",
}, "udp": true,
"tag": "direct" "ip": "127.0.0.1"
}
}, },
{ {
"protocol": "blackhole", "listen": "127.0.0.1",
"settings": { "port": "1081",
"response": { "protocol": "http"
"type": "http"
}
},
"tag": "blockout"
} }
], ],
"routing": { "outbounds": [
"settings": { {
"domainStrategy": "IPIfNonMatch", "protocol": "vmess",
"rules": [ "settings": {
{ "vnext": [
"domain": null, {
"ip": [ "address": "",
"0.0.0.0/8", "port": 1234,
"10.0.0.0/8", "user": [
"100.64.0.0/10", {
"127.0.0.0/8", "id": "",
"169.254.0.0/16", "alterId": 4,
"172.16.0.0/12", "security": "none"
"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", "streamSettings": {
"::1/128", "network": "tcp",
"fc00::/7", "security": "tls",
"fe80::/10" "tlsSettings": {
], "serverName": "example.domain",
"outboundTag": "direct", "allowInsecure": false
"port": null,
"type": "field"
} }
] },
"tag": "proxy"
}, },
"strategy": "rules" {
} "protocol": "freedom",
} "tag": "direct"
}
]
}

View File

@ -1,86 +1,55 @@
{ {
"dns": null,
"inbound": {
"listen": null,
"port": 443,
"protocol": "vmess",
"settings": {
"auth": null,
"clients": [
{
"alterId": 64,
"id": "e2b39869-7e9e-411b-a561-00904419bed9",
"security": "none"
}
],
"ip": null,
"udp": true
},
"streamSettings": {
"kcpSettings": null,
"network": "tcp",
"security": "tls",
"tcpSettings": null,
"tlsSettings": {
"certificates": [
{
"certificateFile": "/path/to/example.domain/fullchain.cer",
"keyFile": "/path/to/example.domain.key"
}
]
},
"wsSettings": null
}
},
"inboundDetour": null,
"log": { "log": {
"access": "/var/log/v2ray/access.log", "loglevel": "warning"
"error": "/var/log/v2ray/error.log",
"loglevel": "info"
}, },
"outbound": { "routing": {
"mux": null, "domainStrategy": "AsIs",
"protocol": "freedom", "rules": [
"settings": null, {
"streamSettings": null, "type": "field",
"tag": null "ip": [
"geoip:private"
],
"outboundTag": "block"
}
]
}, },
"outboundDetour": [ "inbounds": [
{ {
"protocol": "blackhole", "listen": "0.0.0.0",
"settings": null, "port": 1234,
"tag": "blocked" "protocol": "vmess",
"settings": {
"clients": [
{
"id": "",
"alterId": 4
}
],
"disableInsecureEncryption": false
},
"streamSettings": {
"network": "tcp",
"security": "tls",
"tlsSettings": {
"certificates": [
{
"certificateFile": "/path/to/certificate.crt",
"keyFile": "/path/to/key.key"
}
]
}
}
} }
], ],
"routing": { "outbounds": [
"settings": { {
"domainStrategy": null, "protocol": "freedom",
"rules": [ "tag": "direct"
{
"domain": null,
"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": "blocked",
"port": null,
"type": "field"
}
]
}, },
"strategy": "rules" {
} "protocol": "blackhole",
} "tag": "block"
}
]
}

View File

@ -1,56 +1,63 @@
{ {
"log": { "log": {
"loglevel": "warning" "loglevel": "warning"
},
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"ip": [
"geoip:private"
],
"outboundTag": "direct",
"port": null,
"type": "field"
}
]
},
"outbounds": [
{
"port": 1234,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "e2b39869-7e9e-411b-a561-00904419bed9",
"alterId": 100,
"testsEnabled": "VMessAEAD"
}
]
},
"tag": "proxy",
"streamSettings": {
"network": "tcp"
}
}, },
{ "routing": {
"tag": "direct", "domainStratedy": "AsIs",
"protocol": "freedom", "rules": [
"settings": { {
"domainStrategy": "UseIP" "type": "field",
} "ip": [
} "geoip:private"
], ],
"inbounds": [ "tag": "direct"
{ }
"port": 6789, ]
"listen": "127.0.0.1", },
"protocol": "socks", "inbounds": [
"settings": { {
"auth": "noauth", "listen": "127.0.0.1",
"udp": false, "port": "1080",
"ip": "127.0.0.1" "protocol": "socks",
} "settings": {
} "auth": "noauth",
] "udp": true,
"ip": "127.0.0.1"
}
},
{
"listen": "127.0.0.1",
"port": "1081",
"protocol": "http"
}
],
"outbounds": [
{
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "",
"port": 1234,
"user": [
{
"id": "",
"alterId": 4,
"security": "auto",
"testsEnabled": "VMessAEAD"
}
]
}
]
},
"streamSettings": {
"network": "tcp"
},
"tag": "proxy"
},
{
"protocol": "freedom",
"tag": "direct"
}
]
} }

View File

@ -6,29 +6,28 @@
"domainStrategy": "AsIs", "domainStrategy": "AsIs",
"rules": [ "rules": [
{ {
"type": "field",
"ip": [ "ip": [
"geoip:private" "geoip:private"
], ],
"outboundTag": "blocked", "outboundTag": "block"
"port": null,
"type": "field"
} }
] ]
}, },
"inbounds": [ "inbounds": [
{ {
"listen": "0.0.0.0",
"port": 1234, "port": 1234,
"protocol": "vmess", "protocol": "vmess",
"settings": { "settings": {
"clients": [ "clients": [
{ {
"id": "", "id": "",
"alterId": 100, "alterId": 4
"testsEnabled": "VMessAEAD"
} }
] ],
"disableInsecureEncryption": true
}, },
"tag": "tcp",
"streamSettings": { "streamSettings": {
"network": "tcp" "network": "tcp"
} }
@ -37,15 +36,11 @@
"outbounds": [ "outbounds": [
{ {
"protocol": "freedom", "protocol": "freedom",
"settings": {
},
"tag": "direct" "tag": "direct"
}, },
{ {
"protocol": "blackhole", "protocol": "blackhole",
"settings": { "tag": "block"
},
"tag": "blocked"
} }
] ]
} }

View File

@ -1,111 +1,73 @@
{ {
"outbound": { "log": {
"streamSettings": { "loglevel": "warning"
"network": "ws", },
"kcpSettings": null, "routing": {
"wsSettings": { "domainStratedy": "AsIs",
"headers": { "rules": [
"host": "example.domain" {
}, "type": "field",
"path": "" "ip": [
}, "geoip:private"
"tcpSettings": null, ],
"tlsSettings": {}, "tag": "direct"
"security": "tls" }
}, ]
"tag": "agentout", },
"protocol": "vmess", "inbounds": [
"mux": { {
"enabled": true "listen": "127.0.0.1",
}, "port": "1080",
"settings": { "protocol": "socks",
"vnext": [ "settings": {
{ "auth": "noauth",
"users": [ "udp": true,
{ "ip": "127.0.0.1"
"alterId": 100, }
"security": "aes-128-gcm", },
"id": "0cdf8a45-303d-4fed-9780-29aa7f54175e" {
} "listen": "127.0.0.1",
], "port": "1081",
"port": 443, "protocol": "http"
"address": "example.domain" }
} ],
] "outbounds": [
} {
}, "protocol": "vmess",
"log": { "settings": {
"access": "", "vnext": [
"loglevel": "info", {
"error": "" "address": "",
}, "port": 1234,
"outboundDetour": [ "user": [
{ {
"tag": "direct", "id": "",
"protocol": "freedom", "alterId": 4,
"settings": { "security": "none"
"response": null }
} ]
}, }
{ ]
"tag": "blockout", },
"protocol": "blackhole", "streamSettings": {
"settings": { "network": "ws",
"response": { "wsSettings": {
"type": "http" "path": "",
} "headers": {
} "Host": "example.domain"
} }
], },
"inbound": { "security": "tls",
"streamSettings": null, "tlsSettings": {
"settings": { "serverName": "example.domain",
"ip": "127.0.0.1", "allowInsecure": false
"udp": true, }
"clients": null, },
"auth": "noauth" "tag": "proxy"
}, },
"protocol": "socks", {
"port": 1080, "protocol": "freedom",
"listen": "0.0.0.0" "tag": "direct"
}, }
"inboundDetour": null, ]
"routing": {
"settings": {
"rules": [
{
"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"
],
"domain": null,
"type": "field",
"port": null,
"outboundTag": "direct"
}
],
"domainStrategy": "IPIfNonMatch"
},
"strategy": "rules"
},
"dns": {
"servers": [
"8.8.8.8",
"8.8.4.4",
"localhost"
]
}
} }

View File

@ -1,91 +1,61 @@
{ {
"outbound": {
"streamSettings": null,
"tag": null,
"protocol": "freedom",
"mux": null,
"settings": null
},
"log": { "log": {
"access": "/var/log/v2ray/access.log", "loglevel": "warning"
"loglevel": "error",
"error": "/var/log/v2ray/error.log"
}, },
"inboundDetour": null, "routing": {
"inbound": { "domainStrategy": "AsIs",
"streamSettings": { "rules": [
"network": "ws", {
"kcpSettings": null, "type": "field",
"wsSettings": { "ip": [
"headers": { "geoip:private"
"host": "example.domain" ],
}, "outboundTag": "block"
"path": "" }
}, ]
"tcpSettings": null,
"tlsSettings": {
"certificates": [
{
"keyFile": "/path/to/example.domain.key",
"certificateFile": "/path/to/example.domain/fullchain.cer"
}
]
},
"security": "tls"
},
"listen": null,
"protocol": "vmess",
"port": 443,
"settings": {
"ip": null,
"udp": true,
"clients": [
{
"alterId": 100,
"security": "aes-128-gcm",
"id": "0cdf8a45-303d-4fed-9780-29aa7f54175e"
}
],
"auth": null
}
}, },
"outboundDetour": [ "inbounds": [
{ {
"tag": "blocked", "listen": "0.0.0.0",
"protocol": "blackhole", "port": 1234,
"settings": null "protocol": "vmess",
"settings": {
"clients": [
{
"id": "",
"alterId": 4
}
],
"disableInsecureEncryption": false
},
"streamSettings": {
"network": "ws",
"wsSettings": {
"path": "",
"headers": {
"Host": "example.domain"
}
},
"security": "tls",
"tlsSettings": {
"certificates": [
{
"certificateFile": "/path/to/certificate.crt",
"keyFile": "/path/to/key.key"
}
]
}
}
} }
], ],
"routing": { "outbounds": [
"strategy": "rules", {
"settings": { "protocol": "freedom",
"rules": [ "tag": "direct"
{ },
"ip": [ {
"0.0.0.0/8", "protocol": "blackhole",
"10.0.0.0/8", "tag": "block"
"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"
],
"domain": null,
"type": "field",
"port": null,
"outboundTag": "blocked"
}
],
"domainStrategy": null
} }
}, ]
"dns": null }
}

View File

@ -1,111 +1,69 @@
{ {
"outbound": { "log": {
"streamSettings": { "loglevel": "warning"
"network": "ws",
"kcpSettings": null,
"wsSettings": {
"headers": {
"host": "example.domain"
},
"path": ""
},
"tcpSettings": null,
"tlsSettings": {},
"security": ""
}, },
"tag": "agentout", "routing": {
"protocol": "vmess", "domainStratedy": "AsIs",
"mux": { "rules": [
"enabled": true
},
"settings": {
"vnext": [
{
"users": [
{ {
"alterId": 100, "type": "field",
"security": "aes-128-gcm", "ip": [
"id": "e2b39869-7e9e-411b-a561-00904419bed9" "geoip:private"
],
"tag": "direct"
} }
], ]
"port": 1234,
"address": "Your_IP_Address"
}
]
}
},
"log": {
"access": "",
"loglevel": "info",
"error": ""
},
"outboundDetour": [
{
"tag": "direct",
"protocol": "freedom",
"settings": {
"response": null
}
}, },
{ "inbounds": [
"tag": "blockout",
"protocol": "blackhole",
"settings": {
"response": {
"type": "http"
}
}
}
],
"inbound": {
"streamSettings": null,
"settings": {
"ip": "127.0.0.1",
"udp": true,
"clients": null,
"auth": "noauth"
},
"protocol": "socks",
"port": 1080,
"listen": "0.0.0.0"
},
"inboundDetour": null,
"routing": {
"settings": {
"rules": [
{ {
"ip": [ "listen": "127.0.0.1",
"0.0.0.0/8", "port": "1080",
"10.0.0.0/8", "protocol": "socks",
"100.64.0.0/10", "settings": {
"127.0.0.0/8", "auth": "noauth",
"169.254.0.0/16", "udp": true,
"172.16.0.0/12", "ip": "127.0.0.1"
"192.0.0.0/24", }
"192.0.2.0/24", },
"192.168.0.0/16", {
"198.18.0.0/15", "listen": "127.0.0.1",
"198.51.100.0/24", "port": "1081",
"203.0.113.0/24", "protocol": "http"
"::1/128", }
"fc00::/7", ],
"fe80::/10" "outbounds": [
], {
"domain": null, "protocol": "vmess",
"type": "field", "settings": {
"port": null, "vnext": [
"outboundTag": "direct" {
"address": "",
"port": 1234,
"user": [
{
"id": "",
"alterId": 4,
"security": "auto",
"testsEnabled": "VMessAEAD"
}
]
}
]
},
"streamSettings": {
"network": "ws",
"wsSettings": {
"path": "",
"headers": {
"Host": ""
}
}
},
"tag": "proxy"
},
{
"protocol": "freedom",
"tag": "direct"
} }
],
"domainStrategy": "IPIfNonMatch"
},
"strategy": "rules"
},
"dns": {
"servers": [
"8.8.8.8",
"8.8.4.4",
"localhost"
] ]
} }
}

View File

@ -1,84 +1,53 @@
{ {
"outbound": { "log": {
"streamSettings": null, "loglevel": "warning"
"tag": null,
"protocol": "freedom",
"mux": null,
"settings": null
},
"log": {
"access": "/var/log/v2ray/access.log",
"loglevel": "info",
"error": "/var/log/v2ray/error.log"
},
"inboundDetour": null,
"inbound": {
"streamSettings": {
"network": "ws",
"kcpSettings": null,
"wsSettings": {
"headers": {
"host": "example.domain"
},
"path": ""
},
"tcpSettings": null,
"tlsSettings": {},
"security": ""
}, },
"listen": null, "routing": {
"protocol": "vmess", "domainStrategy": "AsIs",
"port": 1234, "rules": [
"settings": { {
"ip": null, "type": "field",
"udp": true, "ip": [
"clients": [ "geoip:private"
],
"outboundTag": "block"
}
]
},
"inbounds": [
{ {
"alterId": 100, "listen": "0.0.0.0",
"security": "aes-128-gcm", "port": 1234,
"id": "e2b39869-7e9e-411b-a561-00904419bed9" "protocol": "vmess",
"settings": {
"clients": [
{
"id": "",
"alterId": 4
}
],
"disableInsecureEncryption": true
},
"streamSettings": {
"network": "ws",
"wsSettings": {
"path": "",
"headers": {
"Host": ""
}
},
"security": "none"
}
} }
], ],
"auth": null "outbounds": [
}
},
"outboundDetour": [
{
"tag": "blocked",
"protocol": "blackhole",
"settings": null
}
],
"routing": {
"strategy": "rules",
"settings": {
"rules": [
{ {
"ip": [ "protocol": "freedom",
"0.0.0.0/8", "tag": "direct"
"10.0.0.0/8", },
"100.64.0.0/10", {
"127.0.0.0/8", "protocol": "blackhole",
"169.254.0.0/16", "tag": "block"
"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"
],
"domain": null,
"type": "field",
"port": null,
"outboundTag": "blocked"
} }
], ]
"domainStrategy": null }
}
},
"dns": null
}