全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 617|回复: 4

有没有什么好用的 v to ray一键安装脚本?

[复制链接]
发表于 2021-4-26 22:16:05 | 显示全部楼层 |阅读模式
本帖最后由 dforel 于 2021-4-26 22:18 编辑

RT

顺便再求推荐几个tg群。刚刚注册了tg。想看看有没有什么羊毛群。
发表于 2021-4-26 22:20:40 | 显示全部楼层
  1. mkdir -p /root/scripts/shell && \
  2. wget -O /root/scripts/shell/v2ray-install-release.sh https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh && \
  3. chmod +x /root/scripts/shell/v2ray-install-release.sh && \
  4. wget -O /root/scripts/shell/v2ray-install-dat-release.sh https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-dat-release.sh && \
  5. chmod +x /root/scripts/shell/v2ray-install-dat-release.sh && \
  6. /root/scripts/shell/v2ray-install-release.sh && \
  7. /root/scripts/shell/v2ray-install-dat-release.sh
复制代码

  1. cat << "EOF" > /usr/local/etc/v2ray/config.json
  2. {
  3.   "inbounds": [
  4.   {
  5.     "listen": "0.0.0.0",
  6.     "port": 1080,
  7.     "protocol": "vmess",
  8.     "settings":
  9.     {
  10.       "clients": [
  11.       {
  12.         "alterId": 64,
  13.         "id": "d4f7ac9c-95bb-1111-1111-111111111111"
  14.       }]
  15.     },
  16.     "streamSettings":
  17.     {
  18.       "network": "tcp",
  19.       "security": "none",
  20.       "tcpSettings":
  21.       {
  22.         "type": "none"
  23.       }
  24.     },
  25.     "tag": "",
  26.     "sniffing":
  27.     {
  28.       "enabled": true,
  29.       "destOverride": ["http", "tls"]
  30.     }
  31.   },
  32.   {
  33.     "listen": "127.0.0.1",
  34.     "port": 12345,
  35.     "protocol": "vmess",
  36.     "settings":
  37.     {
  38.       "clients": [
  39.       {
  40.         "alterId": 64,
  41.         "id": "d4f7ac9c-95bb-1111-1111-111111111111"
  42.       }]
  43.     },
  44.     "streamSettings":
  45.     {
  46.       "network": "ws",
  47.       "wsSettings":
  48.       {
  49.         "path": "/websocket"
  50.       }
  51.     }
  52.   }],
  53.   "outbounds": [
  54.   {
  55.     "protocol": "freedom",
  56.     "settings":
  57.     {}
  58.   }]
  59. }
  60. EOF

  61. systemctl enable v2ray; systemctl start v2ray; systemctl status v2ray
复制代码

  1.   server {
  2.     listen 443 ssl http2;
  3.     listen [::]:443 ssl http2;
  4.     server_name .........;
  5.     root ....;
  6.     index index.htm index.html index.php;
  7.    
  8.     ......       

  9.     location /websocket {
  10.       proxy_redirect off;
  11.       proxy_pass http://127.0.0.1:12345;
  12.       proxy_http_version 1.1;
  13.       proxy_intercept_errors on;
  14.       proxy_set_header Upgrade $http_upgrade;
  15.       proxy_set_header Connection "upgrade";
  16.       proxy_set_header Host $http_host;
  17.     }   

  18.     ......       
  19. }
复制代码

发表于 2021-4-26 22:17:14 | 显示全部楼层
本帖最后由 asdii 于 2021-4-26 22:18 编辑

我喜欢用的官方v2——fly安全
发表于 2021-4-26 22:19:22 来自手机 | 显示全部楼层
他的意思是一键到家,官方的设置空白到不麻烦,麻烦的是证书,风流
发表于 2021-4-26 22:21:45 | 显示全部楼层
全网鉴黄中心。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-4-24 22:32 , Processed in 0.060982 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表