bingoogolapple.github.io icon indicating copy to clipboard operation
bingoogolapple.github.io copied to clipboard

V2Ray

Open bingoogolapple opened this issue 4 years ago • 1 comments

  • 生成 UUID
cat /proc/sys/kernel/random/uuid
  • 创建配置文件
mkdir -p /etc/v2ray
vim /etc/v2ray/config.json
  • 配置文件内容
{
    "inbounds": [
        {
            "port": 端口1,
            "protocol": "vmess",
            "settings": {
                "clients": [
                    {
                        "id": "用户1UUID",
                        "level": 1,
                        "alterId": 64
                    },
                    {
                        "id": "用户2UUID",
                        "level": 1,
                        "alterId": 64
                    },
                    {
                        "id": "用户3UUID",
                        "level": 1,
                        "alterId": 64
                    },
                ]
            }
        },
        {
            "port": 端口2,
            "protocol": "vmess",
            "settings": {
                "clients": [
                    {
                        "id": "用户4UUID",
                        "level": 1,
                        "alterId": 64
                    },
                    {
                        "id": "用户5UUID",
                        "level": 1,
                        "alterId": 64
                    },
                    {
                        "id": "用户6UUID",
                        "level": 1,
                        "alterId": 64
                    }
                ]
            }
        }
    ],
    "outbounds": [
        {
            "protocol": "freedom",
            "settings": {}
        }
    ]
}
  • 创建容器
docker run -d --name v2ray -v /etc/v2ray:/etc/v2ray -p 端口1:端口1  -p 端口2:端口2 v2ray/official  v2ray -config=/etc/v2ray/config.json

bingoogolapple avatar Jun 26 '20 03:06 bingoogolapple

参考:

  • https://toutyrater.github.io/app/docker-deploy-v2ray.html
  • https://www.v2ray.com/chapter_00/workflow.html

bingoogolapple avatar Jun 26 '20 03:06 bingoogolapple