当前页面是本站的「Baidu MIP」版。发表评论请点击:完整版 »

k3安装v2ray实现全自动透明代理

2018-09-22T11:34:00

k3系统OpenWrt v2.7 By stones
感谢lean提供的v2ray大家可以自行编译
文件下载

软件安装

下载文件上传到tmp目录
先安装opkg install v2ray_v3.39_arm_cortex-a9.ipk
在安装luci opkg install luci-app-v2ray_1.0-5_all.ipk
最后安装中文包luci-i18n-v2ray-zh-cn_1.0-5_all.ipk

安装完成后就可以在服务选项里看到v2ray por了

配置v2ray

创建配置文件
vi /etc/v2ray/config.json
放上我的配置给大家参考一下

{
  "inbound": {
    "port": 1080,
    "listen": "127.0.0.1",
    "protocol": "socks",
    "domainOverride": ["tls","http"],
    "settings": {
      "auth": "noauth",
      "udp": true
    }
  },
  "outbound": {
    "protocol": "vmess",
    "settings": {
      "vnext": [
        {
          "address": "klzl.cn",
          "port": 443,
          "users": [
            {
              "id": "7f43b638-dc47-11e7-9526-cec278b6b50a",
              "alterId": 64,
          "security": "aes-128-gcm"
            }
          ]
        }
      ]
    },
    "streamSettings": {
      "network": "ws",
      "security": "tls",
      "wsSettings": {
        "path": "/PATH/"
      }
    },
     "mux": {
      "enabled": true
    }
  },
"inboundDetour": [
     {
         "domainOverride": ["tls","http"],
         "port": 7070,
         "protocol": "dokodemo-door",
         "settings": {
             "network": "tcp,udp",
             "followRedirect": true
         }
     }
]
}


配置完成后启动v2ray后测试能否连接
curl -x socks5://127.0.0.1:1080 google.com
出现下图说明安装成功

当前页面是本站的「Baidu MIP」版。发表评论请点击:完整版 »