fix: NetworkManager should be must_direct

This commit is contained in:
mzz2017 2023-02-16 09:45:31 +08:00
parent b767036966
commit 91dd65312e
2 changed files with 2 additions and 5 deletions

View File

@ -27,7 +27,7 @@ func (c *ControlPlaneCore) OutboundAliveChangeCallback(outbound uint8) func(aliv
return func(alive bool, networkType *dialer.NetworkType) {
c.log.WithFields(logrus.Fields{
"alive": alive,
"network": networkType.String(),
"network": networkType.StringWithoutDns(),
"outbound_id": outbound,
}).Warnf("Outbound alive state changed, notify the kernel program.")

View File

@ -103,16 +103,13 @@ group {
# See routing.md for full examples.
routing {
pname(dnsmasq, systemd-resolved) -> must_direct # Traffic of DNS in local must be direct to avoid loop when binding to WAN.
pname(NetworkManager, dnsmasq, systemd-resolved) -> must_direct # Traffic of DNS in local must be direct to avoid loop and bad network connectivity check when binding to WAN.
ip(geoip:private, 224.0.0.0/3, 'ff00::/8') -> direct # Put it in front unless you know what you're doing.
# Write your rules below.
# dae arms DNS rush-answer filter so we can use dns.google regardless of DNS pollution.
domain(full:dns.google) && port(53) -> direct
pname(firefox) && domain(ip.sb) -> direct
pname(curl) && domain(ip.sb) -> my_group
ip(geoip:cn) -> direct
domain(geosite:cn) -> direct