mirror of
https://github.com/daeuniverse/dae.git
synced 2025-01-05 21:11:55 +07:00
fix: NetworkManager should be must_direct
This commit is contained in:
parent
b767036966
commit
91dd65312e
@ -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.")
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user