全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

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

[疑问] euserv v2记录

[复制链接]
发表于 2020-5-10 13:56:42 | 显示全部楼层 |阅读模式
本帖最后由 host_sky 于 2020-5-12 09:40 编辑

https://console.heyterm.com/ 终端连接IPV6机
https://dash.cloudflare.com/   解析IPV6加速
https://whatismyipaddress.com/查IP
https://intmainreturn0.com/v2ray-config-gen/  V2ray配置在线生成
https://www.1rmb.net/t/31.html 参考这个教程!~


先CF添加AAAA解析IPV6
连接IPV6机 然后如下命令  (debian9)

apt-get update
rm -rf /etc/localtime            #时间校准
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

修改dns
echo -e "nameserver 2001:67c:2b0::4
\nnameserver 2001:67c:2b0::6" > /etc/resolv.conf

安装好 curl、wget
yum -y install wget    ##ContOS Yum安装wget
apt-get install wget   ##Debian Ubuntu安装 wget
apt-get update -y && apt-get install curl -y    ##Ubuntu/Debian 系统安装 Curl 方法
yum update -y && yum install curl -y            ##Centos 系统安装 Curl 方法

安装宝塔,修改宝塔面板端口(设置成CF开放的端口)
curl -sSO http://download.bt.cn/install/new_install.sh && bash new_install.sh

面板监听IPv6
echo "True" > /www/server/panel/data/ipv6.pl

登陆宝塔(比如baidu.com:8080/宝塔生成的目录名)
CF绑定IPV6的域名+端口+目录名

安装Nginx+PHP7.0(太慢了,一共4个小时)
宝塔新建一个网站 域名就写CF的那个域名
在网站目录新建个文件夹 名称要和配置文件的红色部分对应
配置文件--63行回车2行从65行开始粘贴下面的代码
--------------------------------------------------------------------------------------------------------------------------   
    location /v2 {   #网站目录下新建一个V2文件夹 也可以改成自己的
        proxy_redirect off;
        proxy_pass http://127.0.0.1:61668;#WebSocket监听的端口
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $http_host;
        }
--------------------------------------------------------------------------------------------------------------------------   
安装V2RAY
bash <(curl -L -s https://install.direct/go.sh)

宝塔文件编辑打开etc\v2ray目录下的config.json              #vi /etc/v2ray/config.json
--------------------------------------------------------------------------------------------------------------------------   
{
  "inbounds": [
    {
      "port": 61668,   //你可以自己定义,也可以用自动生成的。特别注意:这个端口一定要在宝塔面板-安全中放行
      "listen":"127.0.0.1",
      "protocol": "vmess",
      "settings": {
        "clients": [
          {
          "id": "生成个uuid",  //命令行cat /proc/sys/kernel/random/uuid   #生成uuid
          "level": 1,
          "alterId": 64   //这里也要用安装生成的alterId
          }
        ]
      },
      "streamSettings": {
        "network": "ws",
        "wsSettings": {
        "path": "/v2"   //这里是你自己定义的,要在你的网站根目录下建立这个文件夹
        }
      }
    }
  ],
  "outbounds": [
    {
      "protocol": "freedom",
      "settings": {}
    }
  ]
}
--------------------------------------------------------------------------------------------------------------------------   

宝塔后台安全页面一定要添加V2放行的端口
systemctl start v2ray   # 启动
systemctl enable v2ray  # 设置开机自启
systemctl restart v2ray # 重启
systemctl status v2ray  # 状态

网站根目录可以放个探针 所有设置完或者更改完一定要重启VPS

太卡了 大佬们为什么都是2W-5W


大佬们,为什么我安装V2-UI的时候总是出各种连不上的问题?




发表于 2020-5-10 15:49:27 来自手机 | 显示全部楼层
我v2-ui也这个问题。。同样设置之下,客户端判断连接有效,但就是不能用
发表于 2020-5-10 14:01:06 | 显示全部楼层
之前捣鼓了很久,后来发现有些问题出现,查了一些资料解决了的
更新版教程

点评

感谢  发表于 2020-5-10 14:04
发表于 2020-5-10 14:18:40 | 显示全部楼层
我套了cf在晚高峰接近5w,山东移动

点评

nnt
cf 对移动友好,其他线路就算了  发表于 2020-5-10 20:29
牛皮 网速上天  发表于 2020-5-10 18:04
发表于 2020-5-10 14:08:57 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2020-5-10 14:02:33 来自手机 | 显示全部楼层
谁有2,5w?   上海联通也就勉强看个1080p
发表于 2020-5-10 14:02:33 | 显示全部楼层
為什麼速度很慢

点评

不知道啊 卡的要死 查个资料还是够用 致命的问题是手机为什么连接不上  发表于 2020-5-10 14:06
发表于 2020-5-10 14:45:29 | 显示全部楼层
做个舔狗还是不错的
发表于 2020-5-10 15:02:09 | 显示全部楼层
速度感人,放弃了
发表于 2020-5-10 15:27:11 | 显示全部楼层
玩出花来了
搞定之后索然无味
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-4-26 10:37 , Processed in 0.073187 second(s), 15 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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