daeuniverse/dae

如何正确配置全局模式?

Closed this issue · 6 comments

dns设置为
upstream {
googledns: 'tcp+udp://8.8.8.8:53'
}
路由为
pname(NetworkManager, systemd-resolved, dnsmasq) -> must_direct
dip(geoip:private) -> direct
fallback: proxy

这样设置后,少部分连接仍然走国内。在dae日志中看不到任何直连流量,非常蹊跷

Thanks for opening this issue!

@dae-prow[bot] dns 不配 request fallback 默认 asis,show me the log

dns默认的asis,还会走谷歌dns吗

@qazwsdc 不会

upstream {
googledns: 'tcp+udp://8.8.8.8:53'
}
routing {
request {
fallback: googledns
}
}

这样配置全局吗?

@qazwsdc

dns {
  routing {
    request { fallback: googledns }
  }
  upstream {
    googledns: 'tcp+udp://8.8.8.8:53'
  }
}

routing {
  pname(NetworkManager, systemd-resolved, dnsmasq) -> must_direct
  dip(geoip:private) -> direct
  fallback: proxy
}

dns 和 routing 分开配置