> For AI agents: the complete documentation index is available at https://www.tteam.icu/llms.txt, the full documentation bundle is available at https://www.tteam.icu/llms-full.txt.

# 微软云VPN搭建

支持的操作系统 (CentOS 7+、Ubuntu 16+、Debian 8+)，操作流程是一样的。在第3步申请SSL证书的时候，请输入对应系统的命令，其他的是一样的。

安装[finalshell](https://www.hostbuf.com/)

1: 开启root登入

```bash

sudo -i
```

2、开启防火墙

```bash

iptables -P INPUT ACCEPT

iptables -P FORWARD ACCEPT    

iptables -P OUTPUT ACCEPT

iptables -F

apt-get purge netfilter-persistent

reboot #重新开始
```

3、申请SSL证书

```bash

apt update -y    # Debian/Ubuntu 命令

apt install -y curl  # Debian/Ubuntu 命令

apt install -y socat # Debian/Ubuntu 命令

yum update -y    #CentOS 命令

yum install -y curl  #CentOS 命令

yum install -y socat  #CentOS 命令

curl https://get.acme.sh | sh

~/.acme.sh/acme.sh --register-account -m 269012469@qq.com

\#故障真实邮箱成功率上升

~/.acme.sh/acme.sh --issue -d v.bftt.live --standalone

改变你的解析域

~/.acme.sh/acme.sh --installcert -d v.bftt.live --key-file /root/private.key --fullchain-file /root/cert.crt

更换你的解析域名，此步完成后会在VPS root目录下

看到证书公钥/root/cert.crt及验证文件/root/private.key

公钥/root/cert.crt

验证文件/root/private.key
```

4、安装X-ui面板

```bash

bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)
```

安装BBR加速

```bash

wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
```
