146 lines
2.9 KiB
JSON
Raw Normal View History

2017-12-09 13:51:47 +08:00
{
"outbound": {
2018-04-16 17:07:21 +08:00
"protocol": "freedom",
"settings": {},
2017-12-09 13:51:47 +08:00
"tag": "direct"
2018-04-16 17:07:21 +08:00
},
2017-12-09 13:51:47 +08:00
"inboundDetour": [
{
2018-04-16 17:07:21 +08:00
"port": 1086,
"listen": "127.0.0.1",
"protocol": "socks",
2017-12-09 13:51:47 +08:00
"settings": {
2018-04-16 17:07:21 +08:00
"auth": "noauth",
"timeout": 300,
2017-12-09 13:51:47 +08:00
"udp": true
}
}
2018-04-16 17:07:21 +08:00
],
2017-12-09 13:51:47 +08:00
"outboundDetour": [
{
"mux": {
2018-04-16 17:07:21 +08:00
"concurrency": 6,
2017-12-09 13:51:47 +08:00
"enabled": true
2018-04-16 17:07:21 +08:00
},
"protocol": "vmess",
2017-12-09 13:51:47 +08:00
"settings": {
"vnext": [
{
"users": [
{
2018-04-16 17:07:21 +08:00
"id": "97c0ec9c-dc4e-11e7-9296-cec278b6b50a",
2018-04-18 15:51:01 +08:00
//"level"字段与"policy"字段中的"levels"字段中的对应,默认值:0,注需要core≥3.1
"level": 0,
2018-04-16 17:07:21 +08:00
"alterId": 0,
2017-12-09 13:51:47 +08:00
"security": "aes-128-cfb"
}
2018-04-16 17:07:21 +08:00
],
"address": "domain.Name",
2017-12-09 13:51:47 +08:00
"port": 443
}
]
2018-04-16 17:07:21 +08:00
},
2017-12-09 13:51:47 +08:00
"streamSettings": {
"tlsSettings": {
"allowInsecure": false
2018-04-16 17:07:21 +08:00
},
2017-12-09 13:51:47 +08:00
"wsSettings": {
"headers": {
"Host": "domain.Name"
2018-04-16 17:07:21 +08:00
},
2017-12-09 13:51:47 +08:00
"path": "/PATH/"
2018-04-16 17:07:21 +08:00
},
"network": "ws",
2017-12-09 13:51:47 +08:00
"security": "tls"
2018-04-16 17:07:21 +08:00
},
2017-12-09 13:51:47 +08:00
"tag": "proxy"
2018-04-16 17:07:21 +08:00
},
2017-12-09 13:51:47 +08:00
{
2018-04-16 17:07:21 +08:00
"protocol": "blackhole",
"settings": {},
2017-12-09 13:51:47 +08:00
"tag": "block"
}
2018-04-16 17:07:21 +08:00
],
2017-12-09 13:51:47 +08:00
"dns": {
"servers": [
2018-04-16 17:07:21 +08:00
"8.8.8.8",
2017-12-09 13:51:47 +08:00
"8.8.4.4"
]
2018-04-16 17:07:21 +08:00
},
2017-12-09 13:51:47 +08:00
"inbound": {
2018-04-16 17:07:21 +08:00
"port": 1087,
"listen": "127.0.0.1",
"protocol": "http",
2017-12-09 13:51:47 +08:00
"settings": {
"timeout": 300
}
2018-04-16 17:07:21 +08:00
},
2018-04-18 15:51:01 +08:00
// 注"policy"字段需要core≥3.1
"policy": {
"levels": {
"0": {
"uplinkOnly": 0,
"downlinkOnly": 0,
"connIdle": 150,
"handshake": 4
}
}
},
2017-12-09 13:51:47 +08:00
"routing": {
"settings": {
"rules": [
{
2018-04-16 17:07:21 +08:00
"type": "field",
2017-12-09 13:51:47 +08:00
"domain": [
"geosite:cn"
2018-04-16 17:07:21 +08:00
],
2017-12-09 13:51:47 +08:00
"outboundTag": "direct"
2018-04-16 17:07:21 +08:00
},
2017-12-09 13:51:47 +08:00
{
2018-04-16 17:07:21 +08:00
"type": "field",
2017-12-09 13:51:47 +08:00
"domain": [
2018-04-16 17:07:21 +08:00
"google",
"facebook",
"youtube",
"twitter",
"instagram",
"gmail",
"domain:twimg.com",
2017-12-09 13:51:47 +08:00
"domain:t.co"
2018-04-16 17:07:21 +08:00
],
2017-12-09 13:51:47 +08:00
"outboundTag": "proxy"
2018-04-16 17:07:21 +08:00
},
2017-12-09 13:51:47 +08:00
{
2018-04-16 17:07:21 +08:00
"type": "field",
2017-12-09 13:51:47 +08:00
"ip": [
2018-04-16 17:07:21 +08:00
"8.8.8.8/32",
"8.8.4.4/32",
"91.108.56.0/22",
"91.108.4.0/22",
"109.239.140.0/24",
"149.154.164.0/22",
"91.108.56.0/23",
"67.198.55.0/24",
"149.154.168.0/22",
2017-12-09 13:51:47 +08:00
"149.154.172.0/22"
2018-04-16 17:07:21 +08:00
],
2017-12-09 13:51:47 +08:00
"outboundTag": "proxy"
2018-04-16 17:07:21 +08:00
},
2017-12-09 13:51:47 +08:00
{
2018-04-16 17:07:21 +08:00
"type": "field",
2017-12-09 13:51:47 +08:00
"ip": [
2018-04-16 17:07:21 +08:00
"192.168.0.0/16",
"10.0.0.0/8",
"172.16.0.0/12",
"127.0.0.0/8",
2017-12-09 13:51:47 +08:00
"geoip:cn"
2018-04-16 17:07:21 +08:00
],
2017-12-09 13:51:47 +08:00
"outboundTag": "direct"
}
2018-04-16 17:07:21 +08:00
],
2017-12-09 13:51:47 +08:00
"domainStrategy": "IPIfNonMatch"
2018-04-16 17:07:21 +08:00
},
2017-12-09 13:51:47 +08:00
"strategy": "rules"
}
2018-04-18 15:51:01 +08:00
}