怎样在ipv6 only 的vps上安装v2ray+ws+TLS+CDN?

本地网络没有ipv6但是有台免费的ipv6 only vps怎么使用啊,这里介绍使用cloudflare的cdn让你的本地可以使用这种ipv6 only vps的网络。

Success! 🎉
~~不过我发现这种方法仍然不能正常访问只用ipv4的网站。~~用下面的方法可以解决,但是ipv4可能是黑名单吧!?
1
2
3
4
5
6
7
8
9
echo "
nameserver 2001:67c:2b0::4
nameserver 2001:67c:2b0::6 " > /etc/resolv.conf

# 随便选一个

echo "
nameserver 2001:67c:27e4:15::6411
nameserver 2001:67c:27e4::64 " > /etc/resolv.conf

目录:

Info! 💬
事先将域名添加一个AAAA解析指向自己的ipv6地址,这里以scaleya.xyz为例

ssh连接到ipv6 only vps

ipv6 only 一键安装v2ray脚本

修改v2ray配置文件

ws+tls配置示例

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
"streamSettings": {
        "network":"ws",
        "wsSettings": {
          "path": "/"
        },
        "security": "tls",
        "tlsSettings":{
          "certificates": [{
            "certificateFile": "/etc/v2ray/v2ray.crt",
            "keyFile": "/etc/v2ray/v2ray.key"
            }]
        }
    }

证书

ws+tls 完整配置示例

Warning! 🚨
line 3 端口必须 443 line 13 尾巴要加上一个 ,
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
  "inbounds": [{
    "port": 443,
    "protocol": "vmess",
    "settings": {
      "clients": [
        {
          "id": "972ddc4e-522c-4d66-8616-358c1aa5d132",
          "level": 1,
          "alterId": 64
        }
      ]
    },
    "streamSettings": {
        "network":"ws",
        "wsSettings": {
          "path": "/"
        },
        "security": "tls",
        "tlsSettings":{
          "certificates": [{
            "certificateFile": "/etc/v2ray/v2ray.crt",
            "keyFile": "/etc/v2ray/v2ray.key"
            }]
        }
    }
  }],
  "outbounds": [{
    "protocol": "freedom",
    "settings": {}
  },{
    "protocol": "blackhole",
    "settings": {},
    "tag": "blocked"
  }],
  "routing": {
    "rules": [
      {
        "type": "field",
        "ip": ["geoip:private"],
        "outboundTag": "blocked"
      }
    ]
  }
}
Danger! 💀

没有伪装站,无法使用

1
2
3
"headers": {
    "Host": "v2ray.com"
    }
</div>
#ad

无广告显示!

开启自启 启动 状态

1
2
service v2ray start
service v2ray status
#ad

无广告显示!

电报群可以联系我!

发送需求至邮箱可远程协助!

#邮箱 ycycxz@gmail.com