0%

为你的服务器增加ipv6

说白了就是免费的ipv6隧道

注册

https://tunnelbroker.net/

填完信息,邮箱会受到验证邮件,验证完毕即可登录,框框里填入vps的ipv4地址

image-20230922112834991

  • centos系列选择这个

image-20230922112924675

将命令复制执行

[!IMPORTANT]

ubuntu重启网络可能会报错RTNETLINK answers: Permission denied

需要系统开启ipv6支持

输入sysctl -a |grep disable_ipv6

看到全部都是1 大概意思就是”不允许ipv6”的意思

解决方案是把全部变成0

vi /etc/sysctl.conf

修改disable_ipv6的所有变成0

然后sysctl -p

重启网络systemctl restart networking

ping6 google.com 测试

image-20230922113011294

完毕

配置v2ray固定域名使用ipv6,突破openai的ip封锁

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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"inbounds":
[
{
"port": 333,
"listen": "127.0.0.1",
"protocol": "vmess",
"settings":
{
"clients":
[
{
"id": "xxxxxx",
"alterId": 0
}
]
},
"streamSettings":
{
"network": "ws",
"wsSettings":
{
"path": "/xx"
}
}
}
],
"outbounds":
[
{
"tag": "IP4_out",
"protocol": "freedom",
"settings":
{
"domainStrategy": "UseIPv4"
}
},
{
"tag": "IP6_out",
"protocol": "freedom",
"settings":
{
"domainStrategy": "UseIPv6"
}
}
],
"routing":
{
"rules":
[
{
"type": "field",
"outboundTag": "IP6_out",
"domain":
[
"geosite:openai"
]
},
{
"type": "field",
"ip":
[
"geoip:private"
],
"outboundTag": "blocked"
},
{
"type": "field",
"outboundTag": "IP4_out",
"network": "udp,tcp"
}
]
},
"log":
{
"loglevel": "debug"
}
}

赏口饭吃吧!