安装v2ray, 配置nginx。
https://www.muzilong.cn/storage/html/185/blog.itswcg.com/2019-02/update-vpn.html

==== 1. Server ====
服务器,安装v2ray, debian9,用虚拟目录嵌入正常网站里。

bash <(curl -L -s https://install.direct/go.sh) # 直接使用脚本
nano /etc/v2ray/config.json # 修改配置文件
service v2ray start # 启动

server config json 配置文件

{
    "inbound": {
        "port": 80,
        "protocol": "vmess",
        "settings": {
            "clients": [
              {
                "id": "99b9aead-0000-428f-bdff-xxxxxxxxxx",
                "alterId": 64
              }
            ]
        },
    "streamSettings": {
        "network": "ws",
        "wsSettings": {
            "path": "/v/"
            }
        }
    },
    "outbound": {
        "protocol": "freedom",
        "settings": {}
    }
}

==== 2. Client ====
客户端安卓手机,用BifrostV, 没能搞懂V2rayNG
客户端windows,用V2rayN,居然不支持gfwlist.
客户端路由器,开启路由控制,用代理服务器透明接管手机wifi

配置实例,暂时没有接入nginx tls
vmess://JTdCJTBBJTIwJTIwJTIydiUyMiUzQSUyMCUyMjIlMjIlMkMlMEElMjAlMjAlMjJwcyUyMiUzQSUyMCUyMnh4Lnh4LmNvbSUyMiUyQyUwQSUyMCUyMCUyMmFkZCUyMiUzQSUyMCUyMnh4Lnh4LmNvbSUyMiUyQyUwQSUyMCUyMCUyMnBvcnQlMjIlM0ElMjAlMjI4MCUyMiUyQyUwQSUyMCUyMCUyMmlkJTIyJTNBJTIwJTIyOTliOWFlYWQtMDAwMC00MjhmLWJkZmYtMWI1ZjEyODgzZmQ1JTIyJTJDJTBBJTIwJTIwJTIyYWlkJTIyJTNBJTIwJTIyNjQlMjIlMkMlMEElMjAlMjAlMjJuZXQlMjIlM0ElMjAlMjJ3cyUyMiUyQyUwQSUyMCUyMCUyMnR5cGUlMjIlM0ElMjAlMjJub25lJTIyJTJDJTBBJTIwJTIwJTIyaG9zdCUyMiUzQSUyMCUyMiUyMiUyQyUwQSUyMCUyMCUyMnBhdGglMjIlM0ElMjAlMjIvdi8lMjIlMkMlMEElMjAlMjAlMjJ0bHMlMjIlM0ElMjAlMjIlMjIlMEElN0QlMDA=

==== 3. Reference ====
https://medium.com/@TachyonDevel/%E6%BC%AB%E8%B0%88%E5%90%84%E7%A7%8D%E9%BB%91%E7%A7%91%E6%8A%80%E5%BC%8F-dns-%E6%8A%80%E6%9C%AF%E5%9C%A8%E4%BB%A3%E7%90%86%E7%8E%AF%E5%A2%83%E4%B8%AD%E7%9A%84%E5%BA%94%E7%94%A8-62c50e58cbd0
https://www.right.com.cn/forum/thread-818886-1-1.html

标签: none

添加新评论