v2ray

v2ray #

服务端 #

wget -N --no-check-certificate -q -O install.sh "https://raw.githubusercontent.com/wulabing/Xray_onekey/nginx_forward/install.sh" && chmod +x install.sh && bash install.sh


# 启动方式
# 启动 Xray:systemctl start xray
# 停止 Xray:systemctl stop xray
# 启动 Nginx:systemctl start nginx
# 停止 Nginx:systemctl stop nginx
# 相关目录
# Web 目录:/www/xray_web
# Xray 服务端配置:/usr/local/etc/xray/config.json
# Nginx 目录: /etc/nginx

openai #


docker run -d --name warp -p 127.0.0.1:7081:1080 -p 127.0.0.1:7082:8080 --restart unless-stopped amirdaaee/cloudflare-warp:latest


curl -x "socks5://127.0.0.1:7081" ipinfo.io


vim /usr/local/etc/xray/config.json

# outbounds 加上
    {
      "protocol": "socks",
      "settings": {
        "servers": [
          {
            "address": "127.0.0.1",
            "port": 7081,
            "users": []
          }
        ]
      },
      "tag": "warp_proxy"
    },

# routing - rules 加上
      {
        "type": "field",
        "outboundTag": "warp_proxy",
        "domain": ["openai.com"]
      },


# 然后重启
systemctl restart xray

Linux 客户端 #

v2rayA #

# 添加公钥
wget -qO - https://apt.v2raya.org/key/public-key.asc | sudo tee /etc/apt/keyrings/v2raya.asc

# 添加 V2RayA 软件源
echo "deb [signed-by=/etc/apt/keyrings/v2raya.asc] https://apt.v2raya.org/ v2raya main" | sudo tee /etc/apt/sources.list.d/v2raya.list
sudo apt update

# 安装 V2RayA
sudo apt install v2raya v2ray ## 也可以使用 xray 包

sudo systemctl start v2raya.service
sudo systemctl enable v2raya.service

参考: v2raya 快速上手


本文访问量

本站总访问量

本站总访客数