Skip to content

Commit

Permalink
nixos/modules/dae: transparent proxy for ict
Browse files Browse the repository at this point in the history
  • Loading branch information
inclyc committed Oct 18, 2023
1 parent c26de45 commit 3b6d038
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions nixos/modules/dae/config.dae
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ global {
}

node {
'socks5://127.0.0.1:8899'
clash: 'socks5://127.0.0.1:8899'
ict: 'socks5://127.0.0.1:1080'
}

dns {
Expand All @@ -30,13 +31,18 @@ dns {

group {
proxy {
#filter: name(keyword: HK, keyword: SG)
filter: name(clash)
policy: min_moving_avg
}
ict {
filter: name(ict)
policy: min_moving_avg
}
}

routing {
dip(224.0.0.0/3, 'ff00::/8') -> direct
dip(10.3.2.0/24) -> ict
dip(geoip:private) -> direct
dip(geoip:cn) -> direct

Expand All @@ -45,5 +51,5 @@ routing {
domain(geosite:category-ads) -> block
domain(geosite:cn) -> direct

fallback: proxy
fallback: clash
}

0 comments on commit 3b6d038

Please sign in to comment.