Replies: 3 comments
-
{
"log": {
"loglevel": "info",
"dnsLog": true
},
"inbounds": [
{
"tag": "all-in",
"port": 12345,
"listen": "127.0.0.1",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
],
"metadataOnly": false
},
"protocol": "dokodemo-door",
"settings": {
"network": "tcp,udp",
"followRedirect": true
},
"streamSettings": {
"sockopt": {
"tproxy": "tproxy"
}
}
}
],
"outbounds": [
{
"protocol": "vless",
"domainStrategy": "AsIs",
"settings": {
"vnext": [
{
"address": "my.domain",
"port": 443,
"users": [
{
"id": "id",
"encryption": "none"
}
]
}
]
},
"tag": "proxy",
"streamSettings": {
"network": "xhttp",
"security": "reality",
"realitySettings": {
"serverName": "yahoo.com",
"alpn": [
"h2"
],
"fingerprint": "chrome",
"publicKey": "publickey",
"shortId": "shortid"
},
"xhttpSettings": {
"path": "path",
"mode": "auto"
},
"sockopt": {
"mark": 2
}
}
},
{
"tag": "direct",
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIPv4"
},
"streamSettings": {
"sockopt": {
"mark": 2
}
}
},
{
"tag": "block",
"protocol": "blackhole",
"settings": {
"response": {
"type": "http"
}
}
},
{
"tag": "dns-out",
"protocol": "dns",
"settings": {}
}
],
"dns": {
"servers": [
{
"address": "223.6.6.6",
"domains": [
"domain:my.domain"
],
"skipFallback": true
},
"8.8.8.8",
"https+local://8.8.8.8/dns-query"
]
},
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"domain": [
"geosite:category-ads-all"
],
"outboundTag": "block"
},
{
"type": "field",
"inboundTag": [
"all-in"
],
"network": "udp",
"port": 53,
"outboundTag": "dns-out"
},
{
"type": "field",
"domain": [
"domain:my.domain"
],
"port": 443,
"outboundTag": "direct"
},
{
"type": "field",
"outboundTag": "proxy",
"domain": [
"geosite:private",
"regexp:\\.\\d+$"
],
"invert": true
}
]
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks, this solves the issue of alidns showing up as a fallback, but my ISP DNS is still showing up as leaking these are my nft rules
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I went back and changed my setup more closely to yours, it works now |
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
-
my router advertises itself as a DNS server so my default DNS server is 192.168.2.1
when I go here I see my ISP along with the DNS of the VPS
https://browserleaks.com/dns
How can I only look up my domain with alidns and the rest all go directly to the proxy?
Beta Was this translation helpful? Give feedback.
All reactions