kali安装机场v2ray

Posted pythonal

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了kali安装机场v2ray相关的知识,希望对你有一定的参考价值。

为了方便查找资料,之前安装的ssr在kali上面,感觉速度不怎么快,相比windows和android上慢很多,所以打算在kali上面装个机场试试,看官方介绍说机场比ssr速度更快,下面是安装步骤: 结合官方文档找到了一键安装的脚本: 在kali上执行如下命令:

bash <(curl -L -s https://install.direct/go.sh) # v2ray一键安装脚本
[email protected]:~# bash <(curl -L -s https://install.direct/go.sh)
Installing V2Ray v3.41 on x86_64
Downloading V2Ray.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   608    0   608    0     0    608      0 --:--:--  0:00:01 --:--:--   469
100 10.4M  100 10.4M    0     0   115k      0  0:01:33  0:01:33 --:--:--  182k
Extracting V2Ray package to /tmp/v2ray.
Archive:  /tmp/v2ray/v2ray.zip
   creating: /tmp/v2ray/v2ray-v3.41-linux-64/
  inflating: /tmp/v2ray/v2ray-v3.41-linux-64/geoip.dat  
  inflating: /tmp/v2ray/v2ray-v3.41-linux-64/geosite.dat  
  inflating: /tmp/v2ray/v2ray-v3.41-linux-64/readme.md  
   creating: /tmp/v2ray/v2ray-v3.41-linux-64/systemd/
  inflating: /tmp/v2ray/v2ray-v3.41-linux-64/systemd/v2ray.service  
   creating: /tmp/v2ray/v2ray-v3.41-linux-64/systemv/
  inflating: /tmp/v2ray/v2ray-v3.41-linux-64/systemv/v2ray  
  inflating: /tmp/v2ray/v2ray-v3.41-linux-64/v2ctl  
 extracting: /tmp/v2ray/v2ray-v3.41-linux-64/v2ctl.sig  
  inflating: /tmp/v2ray/v2ray-v3.41-linux-64/v2ray  
 extracting: /tmp/v2ray/v2ray-v3.41-linux-64/v2ray.sig  
  inflating: /tmp/v2ray/v2ray-v3.41-linux-64/vpoint_socks_vmess.json  
  inflating: /tmp/v2ray/v2ray-v3.41-linux-64/vpoint_vmess_freedom.json  
PORT:26772
UUID:c71d4bb9-65fa-4b32-badf-d0d912728a15
Created symlink /etc/systemd/system/multi-user.target.wants/v2ray.service → /etc/systemd/system/v2ray.service.
V2Ray v3.41 is installed.

提示安装成功,在/etc/v2ray/找到配置文件,编辑配置文件:

{
  "inbound": {
    "port": 1080,
    "listen": "127.0.0.1",
    "protocol": "socks",
    "settings": {
      "udp": true
    }
  },
  "outbound": {
    "protocol": "vmess",
    "settings": {
      "vnext": [{
        "address": "x.x.x.x",
        "port": 38633,
        "users": [{ "id": "50dd4c-a0fe-4d85-9b07-bcd7cb5c0c3b" }]
      }]
    }
  },
  "outboundDetour": [{
    "protocol": "freedom",
    "tag": "direct",
    "settings": {}
  }],
  "routing": {
    "strategy": "rules",
    "settings": {
      "domainStrategy": "IPOnDemand",
      "rules": [{
        "type": "field",
        "ip": [
          "0.0.0.0/8",
          "10.0.0.0/8",
          "100.64.0.0/10",
          "127.0.0.0/8",
          "169.254.0.0/16",
          "172.16.0.0/12",
          "192.0.0.0/24",
          "192.0.2.0/24",
          "192.168.0.0/16",
          "198.18.0.0/15",
          "198.51.100.0/24",
          "203.0.113.0/24",
          "::1/128",
          "fc00::/7",
          "fe80::/10"
        ],
        "outboundTag": "direct"
      }]
    }
  }
}

然后保存,启动v2ray就可以了

以上是关于kali安装机场v2ray的主要内容,如果未能解决你的问题,请参考以下文章

openwrt搭建v2ray免流

苹果手机怎么安装v2ray

v2ray官网怎么下载

sh 安装v2ray脚本

sh 安装v2ray脚本

sh Kali Linux - 资源和片段