kali安装机场v2ray客户端
阅读原文时间:2020年09月22日阅读:1

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

官网地址:https://www.v2ray.com/en/welcome/install.html

bash <(curl -L -s https://install.direct/go.sh) # v2ray一键安装脚本

root@bigzero:~# bash <(curl -L -s https://install.direct/go.sh)
Installing V2Ray v3. on x86_64
Downloading V2Ray.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
--:--:-- :: --:--:--
115k :: :: --:--:-- 182k
Extracting V2Ray package to /tmp/v2ray.
Archive: /tmp/v2ray/v2ray.zip
creating: /tmp/v2ray/v2ray-v3.-linux-/
inflating: /tmp/v2ray/v2ray-v3.-linux-/geoip.dat
inflating: /tmp/v2ray/v2ray-v3.-linux-/geosite.dat
inflating: /tmp/v2ray/v2ray-v3.-linux-/readme.md
creating: /tmp/v2ray/v2ray-v3.-linux-/systemd/
inflating: /tmp/v2ray/v2ray-v3.-linux-/systemd/v2ray.service
creating: /tmp/v2ray/v2ray-v3.-linux-/systemv/
inflating: /tmp/v2ray/v2ray-v3.-linux-/systemv/v2ray
inflating: /tmp/v2ray/v2ray-v3.-linux-/v2ctl
extracting: /tmp/v2ray/v2ray-v3.-linux-/v2ctl.sig
inflating: /tmp/v2ray/v2ray-v3.-linux-/v2ray
extracting: /tmp/v2ray/v2ray-v3.-linux-/v2ray.sig
inflating: /tmp/v2ray/v2ray-v3.-linux-/vpoint_socks_vmess.json
inflating: /tmp/v2ray/v2ray-v3.-linux-/vpoint_vmess_freedom.json
PORT:
UUID:c71d4bb9-65fa-4b32-badf-d0d912728a15
Created symlink /etc/systemd/system/multi-user.target.wants/v2ray.service → /etc/systemd/system/v2ray.service.
V2Ray v3. is installed.

提示安装成功,在/etc/v2ray/找到配置文件(该配置文件是我在windows下使用v2rayN导出来的配置文件,然后上传到kali上面的),编辑配置文件:

{
"log": {
"access": "",
"error": "",
"loglevel": "warning"
},
"inbound": {
,
"listen": "127.0.0.1",
"protocol": "socks",
"domainOverride": [
"tls",
"http"
],
"settings": {
"auth": "noauth",
"udp": true,
"ip": "127.0.0.1",
"clients": null
},
"streamSettings": null
},
"outbound": {
"tag": "agentout",
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "y.y.y.y",
,
"users": [
{
"id": "50dd4d0c-a0fe-4d85-9b07-bcd7cb5c3b",
,
"email": "t@t.tt",
"security": "aes-128-gcm"
}
]
}
],
"servers": null
},
"streamSettings": {
"network": "tcp",
"security": "",
"tlsSettings": null,
"tcpSettings": null,
"kcpSettings": null,
"wsSettings": null,
"httpSettings": null
},
"mux": {
"enabled": true
}
},
"inboundDetour": null,
"outboundDetour": [
{
"protocol": "freedom",
"settings": {
"response": null
},
"tag": "direct"
},
{
"protocol": "blackhole",
"settings": {
"response": {
"type": "http"
}
},
"tag": "blockout"
}
],
"dns": {
"servers": [
"8.8.8.8",
"8.8.4.4",
"localhost"
]
},
"routing": {
"strategy": "rules",
"settings": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"port": null,
"outboundTag": "direct",
"ip": null,
"domain": [
"geosite:cn"
]
},
{
"type": "field",
"port": null,
"outboundTag": "direct",
"ip": [
"geoip:cn"
],
"domain": null
},
{
"type": "field",
"port": null,
"outboundTag": "direct",
"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"
],
"domain": null
}
]
}
}
}

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

修改firefox的代理设置,如下图所示,google-chrome不需要修改

假如习惯使用google-chrome浏览器的话,需要设置下系统网络代理,如下图所示:

terminal测试一下:

curl -v --socks5-hostname 127.0.01:1080 https://www.google.com/,没问题

浏览器测试一下没问题:

手机扫一扫

移动阅读更方便

阿里云服务器
腾讯云服务器
七牛云服务器

你可能感兴趣的文章