mirror of
https://github.com/v2fly/v2ray-examples.git
synced 2025-01-19 06:19:29 +08:00
88 lines
2.0 KiB
JSON
88 lines
2.0 KiB
JSON
{
|
|
"log": {
|
|
"loglevel": "warning"
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"port": 1080,
|
|
"listen": "127.0.0.1",
|
|
"protocol": "socks",
|
|
"settings": {}
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"tag": "proxy",
|
|
"protocol": "shadowsocks",
|
|
"settings": {
|
|
"servers": [
|
|
{
|
|
"address": "",
|
|
"port": 0,
|
|
"method": "",
|
|
"password": ""
|
|
}
|
|
]
|
|
},
|
|
"streamSettings": {},
|
|
"mux": {
|
|
"enabled": false
|
|
},
|
|
"proxySettings": {
|
|
"tag": "out"
|
|
}
|
|
},
|
|
{
|
|
"tag": "out",
|
|
"protocol": "shadowsocks",
|
|
"settings": {
|
|
"servers": [
|
|
{
|
|
"address": "",
|
|
"port": 0,
|
|
"method": "",
|
|
"password": ""
|
|
}
|
|
]
|
|
},
|
|
"mux": {
|
|
"enabled": false
|
|
}
|
|
},
|
|
{
|
|
"tag": "direct",
|
|
"protocol": "freedom",
|
|
"settings": {
|
|
"domainStrategy": "UseIP"
|
|
}
|
|
},
|
|
{
|
|
"tag": "block",
|
|
"protocol": "blackhole",
|
|
"settings": {
|
|
"response": {
|
|
"type": "http"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"routing": {
|
|
"domainStrategy": "AsIs",
|
|
"rules": [
|
|
{
|
|
"type": "field",
|
|
"domain": [
|
|
"geosite:category-ads-all"
|
|
],
|
|
"outboundTag": "block"
|
|
},
|
|
{
|
|
"type": "field",
|
|
"ip": [
|
|
"geoip:private"
|
|
],
|
|
"outboundTag": "direct"
|
|
}
|
|
]
|
|
}
|
|
} |