v2ray--websocket+tls+Nginx分流+BBR(锐速)+cdn+网站
v2ray 安装
方法一
[v_error]支持:Debian 7、Debian 8(推荐)、Ubuntu 14、Ubuntu 16、CentOS 7 不支持:Centos 6[/v_error]
安装 bash -c “$(curl -fsSL https://raw.githubusercontent.com/tracyone/v2ray.fun/master/install.sh)”
升级 bash -c “$(curl -fsSL https://raw.githubusercontent.com/tracyone/v2ray.fun/master/upgrade.sh)”
卸载 bash -c “$(curl -fsSL https://raw.githubusercontent.com/tracyone/v2ray.fun/master/uninstall.sh)”
方法二
[v_error]建议使用 Debian 8.x 以上或者 Ubuntu 16.04 以上的 Linux 系统。[/v_error]
//wget https://toutyrater.github.io/install-release.sh //bash install-release.sh wget https://install.direct/go.sh && sudo bash go.sh
使用以下命令启动 V2Ray: $ sudo systemctl start v2ray 停止运行 V2Ray: $ sudo systemctl stop v2ray 重启 V2Ray: $ sudo systemctl restart v2ray
参考自:https://toutyrater.github.io/
v2ray服务器配置
v2ray配置路径 /etc/v2ray/config.json
{ “log”: { “access”: “/var/log/v2ray/access.log”, “error”: “/var/log/v2ray/error.log”, “loglevel”: “warning” }, “inbound”: { “port”: 10000, “listen”: “127.0.0.1”, “protocol”: “vmess”, “settings”: { “clients”: [{ “id”: “cfd5179a-d84c-495a-bf77-013c01c2b04a”, “level”: 1, “alterId”: 64, “security”: “auto” }] }, “streamSettings”:{ “network”:”ws”, “security”: “auto”, “wsSettings”:{ “connectionReuse”: true, “path”: “/v2ray/“ } } }, “outbound”: { “protocol”: “freedom”, “settings”: {} }, “outboundDetour”: [ { “protocol”: “blackhole”, “settings”: {}, “tag”: “blocked” } ], “routing”: { “strategy”: “rules”, “settings”: { “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”: “blocked” } ] } } }
v2ray客户端配置
{ “log”: { “access”: “”, “error”: “”, “loglevel”: “” }, “inbound”: { “port”: 1080, “listen”: “0.0.0.0”, “protocol”: “socks”, “settings”: { “auth”: “noauth”, “udp”: true, “ip”: “127.0.0.1”, “clients”: null }, “streamSettings”: null }, “outbound”: { “tag”: “agentout”, “protocol”: “vmess”, “settings”: { “vnext”: [ { “address”: “v.ngcar.ml”, “port”: 443, “users”: [ { “id”: “cfd5179a-d84c-495a-bf77-013c01c2b04a”, “alterId”: 64, “security”: “aes-128-gcm” } ] } ], “servers”: null }, “streamSettings”: { “network”: “ws”, “security”: “tls”, “tcpSettings”: null, “kcpSettings”: null, “wsSettings”: { “connectionReuse”: true, “path”: “/v2ray/“, “headers”: 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”: [ “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 } ] } } }
nginx配置
location /v2ray/ { #/v2ray/为v2ray路径 proxy_redirect off; proxy_pass http://127.0.0.1:10000; #修改自己v2ray服务端口 proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection “upgrade”; proxy_set_header Host $http_host; }
客户端 v2rayN
[v_blue]客户端Github地址:https://github.com/2dust/v2rayN[/v_blue] [v_act]以下两个都下载 解压到同一目录下运行v2rayN.exe即可 Win图形界面下载:Github下载 v2ray客户端:Github下载[/v_act] [v_act]安卓客户端:Google Play[/v_act]
