这东西就像个管道可以一层套一层一层套一层,还是很有意思的
服务端
{
"inbounds": [{
"port": 10086,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "xxxxx-xxxx-xxxx-x-xxx-xxxxxxxx", //生成的uuid
"level": 1,
"alterId": 64
}
]
}
}],
"outbounds": [{
"protocol": "freedom",
"settings": {}
},{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}],
"routing": {
"rules": [
{
"type": "field",
"ip": ["geoip:private"],
"outboundTag": "blocked"
}
]
}
}
客户端
{
"inbounds": [{
"port": 60000, //下一个客户端节点如果式http就配置http协议
"listen": "0.0.0.0",
"protocol": "http",
"users": [
{
"user": "root",
"pass": "root"
}
]
}],
"outbounds": [{ //出口指向你的服务端节点
"protocol": "vmess",
"settings": {
"vnext": [{
"address": "xxx.xxx.xxx.xxx",//服务端ip
"port": 10086, //服务端端口
"users": [{ "id": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxx" }]//服务端uuid
}]
}
},{
"protocol": "freedom",
"tag": "direct",
"settings": {}
}],
"routing": {
"domainStrategy": "IPOnDemand",
"rules": [{
"type": "field",
"ip": ["geoip:private"],
"outboundTag": "direct"
}]
}
}
本文档展示了服务端和客户端的Vmess与Freedom协议配置示例,用于网络隧道搭建。服务端配置包括一个Vmess inbound和两个outbounds,客户端配置了一个http inbound和一个指向服务端的Vmess outbound。路由规则确保了私有IP的流量被正确导向。
616

被折叠的 条评论
为什么被折叠?



