上网配置
id使用cat /proc/sys/kernel/random/uuid 获取
{
"inbounds": [{
"port": 2088,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "9ec43ee9-651d-435d-ac8f-c06dtfc79b01",
"level": 1,
"alterId": 64
}
]
}
}],
"outbounds": [{
"protocol": "freedom",
"settings": {}
},{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}],
"routing": {
"rules": [
{
"type": "field",
"ip": ["geoip:private"],
"outboundTag": "blocked"
}
]
}
}
使用mkcp传输(有加速作用)
{ "inbounds": [{ "streamSettings": { "network": "mkcp" }, "port": 2089, "protocol": "vmess", "settings": { "clients": [ { "id": "469e3295-f8af-4f69-8bd2-a1988cf3499f", "level": 1, "alterId": 64 } ] } }], "outbounds": [{ "protocol": "freedom", "settings": {} },{ "protocol": "blackhole", "settings": {}, "tag": "blocked" }], "routing": { "rules": [ { "type": "field", "ip": ["geoip:private"], "outboundTag": "blocked" } ] }, "transport": { "kcpSettings": { "mtu": 1350, "tti": 20, "uplinkCapacity": 5, "downlinkCapacity": 20, "congestion": false, "readBufferSize": 1, "writeBufferSize": 1, "header": { "type": "none" } } } }
动态端口mkcp
{ "inbounds": [ { "port": 37192, "protocol": "vmess", "settings": { "clients": [ { "id": "d17a1af7-efa5-42ca-b7e9-6a35282d737f", "level": 1, "alterId": 64 } ], "detour": { "to": "dynamicPort" } }, "streamSettings": { "network": "kcp" } }, { "protocol": "vmess", "port": "10000-20000", // 端口范围 "tag": "dynamicPort", "settings": { "default": { "level": 1, "alterId": 32 } }, "allocate": { // 分配模式 "strategy": "random", // 随机开启 "concurrency": 2, // 同时开放两个端口 "refresh": 3 // 每三分钟刷新一次 }, "streamSettings": { "network": "kcp" } } ] }