118 lines
2.1 KiB
JSON
118 lines
2.1 KiB
JSON
{
|
|
"dns": {
|
|
"servers": [
|
|
"223.5.5.5",
|
|
"114.114.114.114",
|
|
{
|
|
"address": "8.8.8.8",
|
|
"port": 53,
|
|
"domains": [
|
|
"geosite:geolocation-!cn"
|
|
]
|
|
},
|
|
{
|
|
"address": "1.1.1.1",
|
|
"port": 53,
|
|
"domains": [
|
|
"geosite:geolocation-!cn"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
|
|
"routing": {
|
|
"domainStrategy": "IPIfNonMatch",
|
|
"rules": [
|
|
{
|
|
"type": "field",
|
|
"outboundTag": "direct",
|
|
"ip": [
|
|
"223.5.5.5",
|
|
"114.114.114.114"
|
|
]
|
|
},
|
|
{
|
|
"type": "field",
|
|
"outboundTag": "proxy",
|
|
"ip": [
|
|
"8.8.8.8",
|
|
"1.1.1.1"
|
|
]
|
|
},
|
|
{
|
|
"type": "field",
|
|
"outboundTag": "direct",
|
|
"ip": [
|
|
"geoip:cn",
|
|
"geoip:private"
|
|
]
|
|
},
|
|
{
|
|
"type": "field",
|
|
"outboundTag": "direct",
|
|
"domain": ["geosite:cn"]
|
|
},
|
|
{
|
|
"type": "field",
|
|
"outboundTag": "proxy",
|
|
"network": "udp,tcp"
|
|
}
|
|
]
|
|
},
|
|
|
|
"inbounds": [
|
|
{
|
|
"port": 1080,
|
|
"listen": "127.0.0.1",
|
|
"protocol": "socks",
|
|
"sniffing": {
|
|
"enabled": true,
|
|
"destOverride": ["http", "tls"]
|
|
},
|
|
"settings": {
|
|
"udp": true
|
|
}
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"tag": "proxy",
|
|
"protocol": "vless",
|
|
"settings": {
|
|
"vnext": [
|
|
{
|
|
"address": "{{ FQDN }}",
|
|
"port": {{ PORT }},
|
|
"users": [
|
|
{
|
|
"id": "{{ USER }}",
|
|
"encryption": "none",
|
|
"flow": "{{ FLOW }}",
|
|
"level": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"streamSettings": {
|
|
"network": "tcp",
|
|
"security": "tls",
|
|
"tlsSettings": {
|
|
"serverName": "{{ FQDN }}",
|
|
"allowInsecure": false,
|
|
"fingerprint": "firefox"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"protocol": "freedom",
|
|
"settings": {},
|
|
"tag": "direct"
|
|
},
|
|
{
|
|
"protocol": "blackhole",
|
|
"settings": {},
|
|
"tag": "block"
|
|
}
|
|
]
|
|
} |