服务端:port,id 要和客户端的一样
{
"inbounds": [
{
"port": 29999,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "0efcd208-ad40-4f95-91b8-f28f0b389f87",
"alterId": 6
}
]
},
"streamSettings": {
"network":"ws"
}
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {}
}
]
}
客户端:address为服务器ip
{
"inbounds": [
{
"port": 1080,
"protocol": "socks",
"sniffing": {
"enabled": true,
"destOverride": ["http", "tls"]
},
"settings": {
"auth": "noauth"
}
}
],
"outbounds": [
{
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "X.X.X.X",
"port": 29999,
"users": [
{
"id": "0efcd208-ad40-4f95-91b8-f28f0b389f87",
"alterId": 64
}
]
}
]
},
"streamSettings":{
"network":"ws"
}
}
]
}
客户端配置保存为config.json 之后,在v2rayN中添加vmess,导入配置文件