{
"log": {
"loglevel": "warning"
},
"inbound": {
"listen": "0.0.0.0",
"port": 1080,
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "127.0.0.1"
}
},
"outbound": {
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "xxx.xxx.xxx.xxx", //你的服务器地址或者域名
"port": xxxxx, //你想要的端口号
"users": [
{
"id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx", //你生成的UUID
"level": 1,
"alterId": 64
}
]
}
]
},
"mux": {
"enabled": true,
"concurrency": 8
}
},
"inboundDetour":[
{
"protocol":"dokodemo-door",
"port":1099,
"settings":{
"address":"",
"network":"tcp",
"timeout":0,
"followRedirect":true
}
}
],
"outboundDetour": [
{
"protocol": "freedom",
"settings": {},
"tag": "direct"
}
],
"routing": {
"strategy": "rules",
"settings": {
"rules": [
{
"type": "field",
"port": "54-79",
"outboundTag": "direct"
},
{
"type": "field",
"port": "81-442",
"outboundTag": "direct"
},
{
"type": "field",
"port": "444-65535",
"outboundTag": "direct"
},
{
"type": "field",
"domain": [
"gc.kis.scr.kaspersky-labs.com"
],
"outboundTag": "direct"
},
{
"type": "chinasites",
"outboundTag": "direct"
},
{
"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": "direct"
},
{
"type": "chinaip",
"outboundTag": "direct"
}
]
}
}
}

我在我的 Newifi Mini 上安装了老猫子 Pandora 固件,它带有 V2Ray 扩展。经过一番配置,终于可以正常使用了,开启ChinaDNS防止DNS污染
对于路由器透明代理,主要是添加代码。 port为透明代理的端口
1
2
3
4
5
6
7
8
9
10
11
12
"inboundDetour":[
{
"protocol":"dokodemo-door",
"port":1099,
"settings":{
"address":"",
"network":"tcp",
"timeout":0,
"followRedirect":true
}
}
],
其他路由器固件可参考以上配置修改,不保证可用
建议UUID必须自己生成,因为它相当于的密码。为了安全,不要直接复制别人的配置。
对于 macOS,我们可以使用 uuidgen 命令直接通过终端轻松生成 UUID。其他系统请使用谷歌生成UUID网站。
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxingongju/article-380304-2.html