在v2ray+ws+tls+web的情况下,不管cloudflare dns有没有开启云朵(proxy),都可以透过address填cf节点ip,ws头部host填域名的方式连接上v2Ray服务器。写这篇的目的是想测试在没有web的情况下使用同一招,让同一个域名既能直连也能通过cdn中转。
地址: cloudflare.com (或1.1.1.1或任何cloudflare节点IP)
端口: web服务器的端口 (通常为443)
tls: 开
不安全连接: 不允许
混淆: websocket
| const musicNotify = () => { | |
| const m = '/storage/emulated/0/Download/WeiXin/平凡之路.mp3' | |
| media.playMusic(m); | |
| sleep(media.getMusicDuration()); | |
| } | |
| const to_mall_cart = () => { | |
| shopping_cart_btn=id('img_shopping_cart').findOne() | |
| 一>校准时间同步本地时间 | |
| 1.date -s "2019-09-21 19:00:38" | |
| 2.cp空格 /usr/share/zoneinfo/Asia/Shanghai 空格/etc/localtime | |
| 3.(一) yum -y install ntp ntpdate 安装ntpdate工具 | |
| (二) ntpdate cn.pool.ntp.org 设置系统时间与网络时间同步 | |
| (三) hwclock --systohc 将系统时间写入硬件时间 |
| #!/bin/sh | |
| echo "Getting the latest version of trojan-go" | |
| latest_version="$(curl -s "https://api.github.com/repos/p4gefau1t/trojan-go/releases" | jq '.[0].tag_name' --raw-output)" | |
| echo "${latest_version}" | |
| trojango_link="https://github.com/p4gefau1t/trojan-go/releases/download/${latest_version}/trojan-go-linux-amd64.zip" | |
| mkdir -p "/usr/bin/trojan-go" | |
| mkdir -p "/etc/trojan-go" |
| debian9 复制这条代码安装bbr加速如下: | |
| 方法一wget -N --no-check-certificate https://bit.ly/2VWUksq && chmod + hasan.sh && bash hasan.sh | |
| 备用代码:wget -N --no-check-certificate https://raw.githubusercontent.com/ComeBey/bbr/master/hasan.sh && chmod + hasan.sh && bash hasan.sh |
| 第一步sudo -i | |
| 第二步.ubuntu/debian 系统安装 Curl 方法: apt-get update -y && apt-get install curl -y | |
| 第二步.(1).centos 系统安装 Curl 方法: yum update -y && yum install curl -y (2).yum install wget 下载wget工具 | |
| 第三步.wget -N --no-check-certificate https://raw.githubusercontent.com/ComeBey/more-user-ssr/master/hasan.sh && chmod +x hasan.sh && bash hasan.sh | |
| 第四步:bash hasan.sh |
| 以下同步时间选择其中一种,如果无法同步本地时间请google下(关键字centos7或者centos6或者debian时间同步本地时间等关键字) | |
| 方法一.校准时间同步本地时间 date -R 查看vps时间 | |
| sudo -i root权限进入 | |
| (一) yum -y install ntp ntpdate 安装ntpdate工具 | |
| (二) ntpdate cn.pool.ntp.org 设置系统时间与本地网络时间同步 | |
| (三) hwclock --systohc 将系统时间写入硬件时间 | |
| 方法二.校准时间同步本地时间 date -R 查看vps时间 | |
| (1)yum install ntp //安装ntp服务 | |
| (2)systemctl enable ntpd //开机启动服务 |
| 1. sudo -i | |
| 2. yum update 升级系统 | |
| 4. curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" 下载pip | |
| 5. python get-pip.py 安装pip | |
| 6. pip install shadowsocks 安装ss |
| 1、yum系统更新 yum update | |
| --------------------- | |
| 2、查看系统版本 | |
| cat /etc/redhat-release | |
| 输出如下则表示已升级到7.5或者更高版本 | |
| CentOS Linux release 7.5.1804 (Core) | |
| --------------------- | |
| 3、安装elrepo并升级内核 |