Amaze UI Logo

码动指尖



v2ray server服务端设置

用v2ray好几年了, 但是一直都是配置复用, 也没有上博客进行记录, 今天来记录一下. 到时候直接粘贴复制.


安装: 

bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)


移除:

bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh) --remove


最简单直接暴力的配置(TCP):

{
"inbounds": [
{
"port": 6666,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "937a376b-1723-40de-9815-3bcee70cc8b8",
"alterId": 64
}
]
}
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {}
}
]
}


如果对速度有更高的要求,比如想看4k. 请先找好运营商, 然后配置kcp协议, 反正目前我用的亚马逊是不支持kcp的, 毕竟损人利己的, 所以运营商会封你的ip或者端口.


KCP协议: 

{
"inbounds": [
{
"port": 6666,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "937a376b-1723-40de-9815-3bcee70cc8b8",
"alterId": 64
}
]
},

"streamSettings": {
"network": "kcp",
"security": "none",
"kcpSettings": {
"mtu": 1350,
"tti": 20,
"uplinkCapacity": 5,
"downlinkCapacity": 20,
"congestion": false,
"readBufferSize": 1,
"writeBufferSize": 1,
"header": {
"type": "wechat-video"
}
}
}

}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {}
}
]
}


可以看到, 就是多了 streamSettings里面多加了 一些配置, 粘贴复制就可以了,然后客户端对应配置, 就可以速度起飞了.


 Linux

作者  :  奕弈

喵喵喵,你在心上



评论


About ME

about me

奕弈

为了最初的心,努力奋斗,从不懈怠的学习。

我不想成为一个庸俗的人。十年百年后,当我们死去,质疑我们的人同样死去,后人看到的是裹足不前、原地打转的你,还是一直奔跑、走到远方的我?

Contact ME