科学上网-v2ray使用
Last updated
Was this helpful?
Last updated
Was this helpful?
Windows
:
v2ray-core :
https://github.com/v2ray/v2ray-core/releases/latest
v2rayN :
https://github.com/2dust/v2rayN/releases/latest
Linux
:
v2ray :
wget https://install.direct/go.sh
bash ./go.sh
qv2ray:
https://github.com/Qv2ray/Qv2ray/releases
nekoray:
https://github.com/MatsuriDayo/nekoray/releases
Mac
:
v2ray-core: 地址同 windows
一致,选择 mac
版本
v2rayN: 地址同 windows
一致,选择 mac
版本
Android
:
v2rayNG:
https://github.com/2dust/v2rayNG/releases/latest
Actinium:
https://github.com/V2Ray-Android/Actinium/releases/latest
BifrostV:
https://play.google.com/store/apps/details?id=com.github.dawndiy.bifrostv
IOS
: 以下三个软件需要到美国市场才能下载,国内暂无
Kitsunebi:
https://apps.apple.com/us/app/kitsunebi/id1275446921
ShadowRocket:
https://apps.apple.com/us/app/shadowrocket/id932747118
Pepi:
https://apps.apple.com/us/app/pepi/id1283082051
windows
Linux
# 修改 /etc/v2ray/config.json
sudo vi /etc/v2ray/config.json
::: warning 粘贴我的配置文件即可
注意去掉注释 :::
{
"policy": null,
"log": {
"access": "",
"error": "",
"loglevel": "warning"
},
"inbounds": [ // 客户端配置
{ // inbounds为客户端入口
"tag": "proxy",
"port": 10808, // 本地流量端口:为了防止和以前的1080冲突,改成使用10808端口
"listen": "127.0.0.1", // listen的ip改成0.0.0.0表示开启局域网共享
"protocol": "socks", // 协议
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
},
"settings": {
"auth": "noauth",
"udp": true,
"ip": null,
"address": null,
"clients": null
},
"streamSettings": null
},
{
"tag": "proxy",
"port": 10809, // http使用10809端口
"listen": "127.0.0.1",
"protocol": "http", // 协议
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
},
"settings": {
"auth": "noauth",
"udp": true,
"ip": null,
"address": null,
"clients": null
},
"streamSettings": null
}
],
"outbounds": [ // 服务端配置
{
"tag": "proxy",
"protocol": "vmess", // v2ray自带协议
"settings": {
"vnext": [
{
"address": "MuYi086.cn", // 服务器地址
"port": 443, // 远程端口
"users": [
{
"id": "xxx", // 用户id
"alterId": 100, // 额外Id
"email": "t@t.tt",
"security": "auto"
}
]
}
],
"servers": null,
"response": null
},
"streamSettings": {
"network": "ws", // websocket
"security": "tls", // 安全传输协议
"tlsSettings": {
"allowInsecure": true,
"serverName": "MuYi086.cn"
},
"tcpSettings": null,
"kcpSettings": null,
"wsSettings": {
"connectionReuse": true,
"path": "/ws/", // 路径
"headers": {
"Host": "MuYi086.cn" // 伪装域名
}
},
"httpSettings": null,
"quicSettings": null
},
"mux": {
"enabled": true
}
},
{
"tag": "direct",
"protocol": "freedom",
"settings": {
"vnext": null,
"servers": null,
"response": null
},
"streamSettings": null,
"mux": null
},
{
"tag": "block",
"protocol": "blackhole",
"settings": {
"vnext": null,
"servers": null,
"response": {
"type": "http"
}
},
"streamSettings": null,
"mux": null
}
],
"stats": null,
"api": null,
"dns": null,
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"port": null,
"inboundTag": [
"api"
],
"outboundTag": "api",
"ip": null,
"domain": null
}
]
}
}
重启 v2ray
服务
service v2ray restart
复制对应的 Sub1.txt
中的 vmess
, vless
等 链接导入到对应客户端
该项目,每10分钟更新一次