dae icon indicating copy to clipboard operation
dae copied to clipboard

[Feature Request] Supports treating group as a kind of dialer and "fallback" policy

Open ppdragon16 opened this issue 8 months ago • 1 comments

Greetings

I'm trying to move to dae@openwrt from openclash@openwrt. And I really like the clash-like configuration, especially proxy-groups which supports recursive reference. For example:

proxy-groups:
  - {name: group1, type: select, include-all: true, filter: "HK"}
  - {name: group2, type: select, include-all: true, filter: "JP"}
  - {name: group3, type: select, include-all: true, filter: "SG"}
  - {name: default_proxy, type: fallback, tolerance: 200, interval: 300, proxies: [group1, group2, group3]}
  - {name: all_nodes, type: select, include-all: true}

It'd be great if dae could support that.

Suggested dae configuration:

subscription {
  my_sub: '...'
}

group {
  hk {
    filter: subtag(my_sub) && name(regex: 'HK')
    policy: min_avg10
  }
  jp {
    filter: subtag(my_sub) && name(regex: 'JP')
    policy: min_avg10
  }
  sg {
    filter: subtag(my_sub) && name(regex: 'SG')
    policy: min_avg10
  }
  my_proxy {
    group(hk), group(jp), group(sg)
    policy: first_alive # Avoids conflicting with the term "fallback" in routing.
  }
}

routing {
    ...
    domain(geosite:gfw) -> my_proxy 
    fallback: direct
}

Feature Request

dae configuration.

Use Cases

User configures dae to control the proxy traffic.

Potential Benefits

Improve the flexibility to control the proxy traffic.

ppdragon16 avatar May 10 '25 12:05 ppdragon16

Thanks for opening this issue!

dae-prow[bot] avatar May 10 '25 12:05 dae-prow[bot]