Skip to content

Instantly share code, notes, and snippets.

@ComeBey
Last active May 16, 2020 12:31
Show Gist options
  • Save ComeBey/619e5bf582710a1cca8880cc4c1c9925 to your computer and use it in GitHub Desktop.
Save ComeBey/619e5bf582710a1cca8880cc4c1c9925 to your computer and use it in GitHub Desktop.
v2ray官方搭建 mkcp
1.安装v2ray官方脚本 centos7系统搭建
1.更新服务器 yum -y update
#设置硬件时钟调整为与本地时钟一致
timedatectl set-local-rtc 1
#设置时区为上海
timedatectl set-timezone Asia/Shanghai
2.安装v2ray官方代码 bash <(curl -L -s https://install.direct/go.sh)
vim /etc/v2ray/config.json: 配置文件
service v2ray start|stop|status|reload|restart|force-reload 控制 V2Ray 的运行
3.搭建bbr
yum -y install wget
wget "https://github.com/chiakge/Linux-NetSpeed/raw/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
2.v2ray config.json 配置代码 {伪装协议utp、srtp、wechat-video、dtls、wireguard 或者 none}这几个分别将 mKCP 数据伪装成 BT 下载、视频通话、微信视频通话、dtls、wireguard以及不进行伪装。
{
"inbounds": [
{
"port": 端口,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "b831381d-6324-4d53-ad4f-8cda48b30811",
"alterId": 65
}
]
},
"streamSettings": {
"network": "mkcp", //此处的 mkcp 也可写成 kcp,两种写法是起同样的效果
"kcpSettings": {
"uplinkCapacity": 5,
"downlinkCapacity": 100,
"congestion": true,
"header": {
"type": "这里替换伪装"
}
}
}
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment