本帖最後由 harold 於 2019-11-14 09:37 編輯
我依家懷疑緊係唔係我個dokodem-door 有錯, 能否指導一下!! 謝謝你們的付出!!
我己經建咗DNS-over-HTTPS, port 係5353, 但我又唔懂係v2ray轉!!
{
"log": {
"access": "/var/log/v2rayaccess.log",
"error": "/var/log/v2rayerror.log",
//"loglevel": "warning"
"loglevel": "debug"
},
"inbounds":
[
{
"tag":"transparent",
"port": 12345,
"protocol": "dokodemo-door",
"settings": {"network": "tcp,udp","followRedirect": true},
"sniffing": {"enabled": true,"destOverride": ["http","tls"]},
"sockopt": {"mark": 255},
"streamSettings": {"sockopt": { "tproxy": "tproxy" }}
},
{
"port": 1081,
"protocol": "http",
"settings": {"network": "tcp,udp"},
"sockopt": {"mark": 255},
"sniffing": {"enabled": true,"destOverride": ["http", "tls"]}
}
//發現http,socks唔可以一齊行{
// "port": 1080,
// "protocol": "socks",
// "sniffing": {"enabled": true,"destOverride": ["http", "tls"]}
// }
],
"outbounds":[
{
"tag": "proxy",
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "server_address",
"port": 8080,
"users": [{"id": "uuid","level": 1,"alterId": 64,"security": "aes-128-gcm"}]
}
]
},
"streamSettings": {
"sockopt": {"mark": 255},
"network": "ws",
//"security": "true",
"security": "tls",
//"allowInsecure": true,
"tlsSettings": {"allowInsecure": true,"serverName": "server_address"},
"wsSettings": { "path": "/v2/" }
//"mux": {"enabled": true,"concurrency": 8}
},
"mux": {"enabled": true}
},
{
"tag": "direct",
"protocol": "freedom",
"settings": {"domainStrategy": "UseIP"},
"streamSettings": {"sockopt": {"mark": 255}}
},
{
"tag": "block",
"protocol": "blackhole",
"settings": {"response": {"type": "http"}}
},
{
"tag": "dns-out",
"protocol": "dns",
"streamSettings": {"sockopt": {"mark": 255}}
}
],
"dns": {
"servers": [
"8.8.8.8","1.1.1.1","114.114.114.114",
{
"address": "223.5.5.5",
"port": 53,
"domains": ["geosite:cn"]
}
]
},
// "outboundDetour": [
// {
// "protocol": "freedom",
// "settings": {},
// "tag": "direct"
// }
// ],
"routing": {
"domainStrategy": "IPOnDemand",
"rules": [
{"type": "field","inboundTag": ["transparent"],"port": 53,"network": "udp","outboundTag": "dns-out"},
{"type": "field","inboundTag": ["transparent"],"port": 123,"network": "udp","outboundTag": "direct"},
{"type": "field","ip": ["223.5.5.5","114.114.114.114"],"outboundTag": "direct"},
{"type": "field","ip": ["8.8.8.8","1.1.1.1"],"outboundTag": "proxy"},
{"type": "field","protocol":["bittorrent"],"outboundTag": "direct"},
{"type": "field","ip": ["geoip:private","geoip:cn"],"outboundTag": "direct" },
{"type": "field","domain": ["geosite:cn"],"outboundTag": "direct"},
{"type": "field","ip": ["192.168.1.0/24"],"outboundTag": "direct"}
]
}
} |