В ВМ, в файл /usr/local/etc/v2ray.json.template, в раздел inbounds добавьте:
{
"port": 6999,
"listen": "0.0.0.0",
"protocol": "socks"
},
Должно получиться примерно так:
{
//"log": {"loglevel": "debug"},
"dns": {"servers": ["127.0.0.1"]},
"inbounds": [{
"port": 6100, // Port of the server. Must be the same as above.
"listen": "0.0.0.0",
"protocol": "dokodemo-door",
"settings": {
"network": "tcp,udp",
"timeout": 300,
"followRedirect": true
},
"streamSettings": {
"network": "tcp",
"security": "none",
"sockopt": {"tproxy": "redirect"}
}
},
{
"port": 6999,
"listen": "0.0.0.0",
"protocol": "socks"
},
…
Обратите внимание на добавленную запятую после закрывающей “}”.
После модификации файла перезагрузите ВМ.