Closed zw963 closed 3 years ago
2021/09/27 14:17:34 [::1]:7762 accepted //mirrors.bfsu.edu.cn:443 [direct]
Can't reproduce. And you didn't really give us much information (no config JSON, no logs).
@database64128 , sorry, following is my config, can you please point out why it is not working?
{
"dns": {
"hosts": {
"dns.google": "8.8.4.4"
},
"servers": [
{
"address": "202.99.192.66",
"port": 53,
"domains": [
"geosite:cn"
],
"expectIPs": [
"ext:geoip-only-cn-private.dat:cn"
]
},
"8.8.4.4"
]
},
"routing": {
"domainStrategy": "IPIfNonMatch",
"domainMatcher": "mph",
"rules": [
{
"type": "field",
"protocol":[
"bittorrent"
],
"outboundTag": "direct"
},
{
"type": "field",
"inboundTag": ["dns-inbound"],
"outboundTag": "dns-outbound"
},
{
"type": "field",
"ip": [
"8.8.4.4",
"8.8.8.8"
],
"outboundTag": "proxy"
},
{
"type": "field",
"ip": [
"202.99.192.66",
"ext:geoip-only-cn-private.dat:cn",
"ext:geoip-only-cn-private.dat:private"
],
"outboundTag": "direct"
},
{
"type": "field",
"domain": [
"geosite:cn",
"dl.google.com",
"sourceforge.net"
// "bfsu.edu.cn" i have to add bfsu here to make it works.
],
"outboundTag": "direct"
},
{
"type": "field",
"domain": [
"services.googleapis.cn",
"geosite:geolocation-!cn"
],
"outboundTag": "proxy"
},
{
"type": "field",
"domain": [
"geosite:category-ads"
],
"outboundTag": "block"
}
]
},
"inbounds": [
{
"protocol": "dokodemo-door",
"port": 1081,
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
},
"settings": {
"network": "tcp,udp",
"followRedirect": true
}
},
{
"tag": "dns-inbound",
"protocol": "dokodemo-door",
"port": 65053,
"settings": {
"address": "8.8.4.4",
"port": 53,
"network": "tcp,udp"
}
},
{
"protocol": "socks",
"port": 1080,
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
},
"settings": {
"auth": "noauth"
}
},
{
"protocol": "http",
"port": 3128,
"settings": {
"timeout": 0
}
}
],
"outbounds": [
{
"tag": "proxy",
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "my_ip",
"port": 22334,
"users": [
{
"id": "some_id"
}
]
}
]
},
"streamSettings": {
"network": "quic",
"quicSettings": {
"header": {
"type": "wechat-video"
}
},
"sockopt": {
"tproxy": "redirect",
"mark": 255
}
}
},
{
"protocol": "shadowsocks",
"settings": {
"servers": [
{
"address": "my_ip",
"method": "chacha20-ietf-poly1305",
"password": "password",
"port": 22335
}
]
}
},
{
"tag": "dns-outbound",
"protocol": "dns"
},
{
"tag": "direct",
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIP"
},
"streamSettings": {
"network": "tcp",
"sockopt": {
"mark": 255
}
}
},
{
"tag": "block",
"protocol": "blackhole",
"settings": {
"response": {
"type": "http"
}
}
}
],
"policy": {
"levels": {
"0": {
"bufferSize": 4
}
}
}
}
There are many other problems in your config. But I don't see why it wouldn't work for you. You mentioned in v2fly/domain-list-community#640 that you are using Arch Linux. Are you using the packages in the official repos? Can you change your log level to info and post the related logs here?
There are many other problems in your config.
Sorry for confusing ..., can you please point out the most important problems here if you have time?
i admit i miss many v2ray knowledge which may cause issues ... some guys use my config for deploy on ASUS router anyway ...
Are you using the packages in the official repos?
Yes, install from mirrors.
Can you change your log level to info and post the related logs here?
I don't know why, it's seem like works now ...
2021/09/27 07:12:58 [Info] [1755094323] proxy/dns: handling DNS traffic to udp:8.8.4.4:53
2021/09/27 07:12:58 [Info] transport/internet/udp: establishing new connection for udp:202.99.192.66:53
2021/09/27 07:12:58 [Info] app/dispatcher: taking detour [direct] for [udp:202.99.192.66:53]
2021/09/27 07:12:58 [Info] proxy/freedom: opening connection to udp:202.99.192.66:53
2021/09/27 07:12:58 [Info] app/dns: UDP:202.99.192.66:53 got answer: mirrors.bfsu.edu.cn. TypeA -> [39.155.141.16] 4.846633ms
2021/09/27 07:12:58 [Info] app/dns: UDP:202.99.192.66:53 got answer: mirrors.bfsu.edu.cn. TypeAAAA -> [[2001:da8:20f:4435:4adf:37ff:fe55:2840]] 4.705861ms
2021/09/27 07:12:58 [Info] [752950804] proxy/dokodemo: received request for 192.168.50.2:50398
2021/09/27 07:12:58 [Info] [752950804] app/dispatcher: sniffed domain: mirrors.bfsu.edu.cn
2021/09/27 07:12:58 [Info] [752950804] app/dispatcher: taking detour [direct] for [tcp:mirrors.bfsu.edu.cn:443]
2021/09/27 07:12:58 [Info] [752950804] proxy/freedom: opening connection to tcp:mirrors.bfsu.edu.cn:443
2021/09/27 07:12:58 [Info] [752950804] proxy/freedom: dialing to tcp:39.155.141.16:443
2021/09/27 07:12:58 [Info] [752950804] transport/internet/tcp: dialing TCP to tcp:39.155.141.16:443
can you please point out the most important problems here if you have time?
202.99.192.66
before 8.8.4.4
and without disableFallback
, effectively making it the default DNS for all domains.bittorrent
sniffing doesn't actually work in this day and age.8.8.4.4
and 8.8.8.8
go through proxy.geosite:geolocation-!cn
in your rules.Thank you very much, i thought i understand 2,3,4. following is my changes diff
But for 1, i want to use my telecom DNS, i add 202.99.192.66 is because i don't know how to told v2ray to try on default dns, and decide if domain/ip is from china. could you please help me on how to change fix it?
(what i want is: all domain/ip come from china use default telecom dns, others use 8.8.4.4)
thank you.
好像也不包括www.gov.cn
@database64128 , i following your guides do some changes, it seem like works, please help check if still exist issue if you have time, thank you very much.
https://github.com/v2fly/domain-list-community/issues/640
Thank you.