Replies: 1 comment
-
从想象和测试结果看,本人猜测是使用ipv6去访问目标网站失败导致的连接不稳定。修改方案为将服务器上的配置文件中的 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
v2ray-core 版本 v4.44.0
服务器环境:
ubuntu 18.04.6 LTS
服务器配置:
{
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "debug"
},
"inbounds": [
{
"port": 3,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "",
"level": 1,
"alterId":0
}
]
},
"streamSettings": {
"network": "ws"
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
}
}
//include_ss
//include_socks
//include_mtproto
//include_in_config
//
],
"outbounds": [
{
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIP"
},
"tag": "direct"
},
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
},
{
"protocol": "mtproto",
"settings": {},
"tag": "tg-out"
}
//include_out_config
//
],
"dns": {
"servers": [
"https+local://1.1.1.1/dns-query",
"8.8.8.8",
"108.61.10.10",
"8.8.4.4",
"1.1.1.1",
"1.0.0.1",
"localhost"
]
},
"routing": {
"domainStrategy": "IPOnDemand",
"rules": [
{
"type": "field",
"ip": [
"0.0.0.0/8",
"10.0.0.0/8",
"100.64.0.0/10",
"127.0.0.0/8",
"169.254.0.0/16",
"172.16.0.0/12",
"192.0.0.0/24",
"192.0.2.0/24",
"192.168.0.0/16",
"198.18.0.0/15",
"198.51.100.0/24",
"203.0.113.0/24",
"::1/128",
"fc00::/7",
"fe80::/10"
],
"outboundTag": "blocked"
},
{
"type": "field",
"inboundTag": ["tg-in"],
"outboundTag": "tg-out"
}
,
{
"type": "field",
"domain": [
"domain:epochtimes.com",
"domain:epochtimes.com.tw",
"domain:epochtimes.fr",
"domain:epochtimes.de",
"domain:epochtimes.jp",
"domain:epochtimes.ru",
"domain:epochtimes.co.il",
"domain:epochtimes.co.kr",
"domain:epochtimes-romania.com",
"domain:erabaru.net",
"domain:lagranepoca.com",
"domain:theepochtimes.com",
"domain:ntdtv.com",
"domain:ntd.tv",
"domain:ntdtv-dc.com",
"domain:ntdtv.com.tw",
"domain:minghui.org",
"domain:renminbao.com",
"domain:dafahao.com",
"domain:dongtaiwang.com",
"domain:falundafa.org",
"domain:wujieliulan.com",
"domain:ninecommentaries.com",
"domain:shenyun.com"
],
"outboundTag": "blocked"
} ,
{
"type": "field",
"protocol": [
"bittorrent"
],
"outboundTag": "blocked"
}
//include_ban_ad
//include_rules
//
]
},
"transport": {
"kcpSettings": {
"uplinkCapacity": 100,
"downlinkCapacity": 100,
"congestion": true
}
}
}
现象:
一天当中随机时间会出现无法访问 www.google.com 或者其它需要翻墙的网站。有时候的现象是google无法访问,但是此时打开youtube又有可能是正常的,持续一段随机的时间后又能恢复访问。
已经做出的尝试:
1、当任意访问失败时,重启v2ray 服务,此时绝大多数情况是恢复正常访问外网的功能。
2、访问失败时,登录服务器查看v2ray 日志,发现: 正常情况下,DOHL 返回的地址格式为: [常见的ip地址 + 一串冒号连接的字符]
当发生无法访问外网时,服务器的日志显示DOHL 解析出来的地址格式跟上述格式不同,只返回了 一串冒号连接的字符
如: 正常时:DOHL//1.1.1.1 cache HIT www.google.com -> [142.251.42.196 2404:6800:4004:827::2004]
异常时:DOHL//1.1.1.1 cache HIT www.google.com -> [2404:6800:4004:824::2004]
后面的提示为 dialing [2404:6800:4004:824::2004] 然后就失败了。
服务器的时间跟本地时间一致。
不知道大家有没有遇到过这种问题,又是怎么解决的。
Beta Was this translation helpful? Give feedback.
All reactions