## VSP服务器
https://my.vultr.com/
据我给人测试,新加坡的比韩国和日本的节点都要快。
## 环境信息
服务器系统:Debin GNU/Linux 10
服务端:v2ray-core v5.1.0
客户端:v2rayN
## 搭建脚本
使用到的官网安装脚本:`https://github.com/v2fly/fhs-install-v2ray`,该脚本在执行时会提供info和error等信息,请仔细阅读。
```bash
wget https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh
bash ...sh
```
修改配置文件vim /usr/local/etc/v2ray/config.json
```json
{
"inbounds": [
{
"port": 11055,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "ee3b45d0-e780-4ebf-8d7b-3614d109b487",
"alterId": 0
}
]
}
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {}
}
]
}
```
```json
{
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "warning"
},
"inbounds": [{
"port": 11055,
"protocol": "vmess",
"settings": {
"clients": [{
"id": "ee3b45d0-e780-4ebf-8d7b-3614d109b487",
"level": 1,
"alterId": 0
}
]
},
"streamSettings": {
"network": "ws",
"wsSettings": {
"path": "/tech"
}
}
}
],
"outbounds": [{
"protocol": "freedom"
}
]
}
```
```bash
#启动并加入开机自启
systemctl start v2ray;systemctl enable v2ray
```
Google BBR加速
```bash
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
#查看内核是否已开启BBR
sysctl net.ipv4.tcp_available_congestion_control
#显示以下即已开启
# sysctl net.ipv4.tcp_available_congestion_control
net.ipv4.tcp_available_congestion_control = bbr cubic reno
#查看BBR是否启动
lsmod | grep bbr
#显示以下即启动成功
tcp_bbr 20480 17
reboot
```