Config Examples #81
Replies: 7 comments 1 reply
-
global {
# 绑定到 LAN 和/或 WAN 接口。将下述接口替换成你自己的接口名。
lan_interface: eth0
wan_interface: auto # 使用 "auto" 自动侦测 WAN 接口。
dial_mode: domain++
log_level: info
allow_insecure: false
auto_config_kernel_parameter: true
tcp_check_http_method: GET
check_tolerance: 50ms
disable_waiting_network: true
}
subscription {}
node {
chatgpt:'ss://'
SHENGANGT48:'ss://'
ZHANXUXIN:'ss://'
chatgpt:'ss://'
}
dns {
upstream {
googledns: 'tcp+udp://8.8.8.8:53'
alidns: 'udp://223.5.5.5:53'
}
routing {
request {
#去广告 https://github.com/techprober/v2ray-rules-dat
qname(geosite:category-ads) -> reject
qname(geosite:category-ads-all) -> reject
qname(geosite:cn) -> alidns
fallback: googledns
}
}
}
group {
proxy {
#filter: subtag(sub)
filter: name('SHENGANGT48')
filter: name('ShuiMo')[add_latency: 150ms]
filter: name('ZHANXUXIN')[add_latency: 300ms]
policy: min_moving_avg
}
chatgpt {
filter: name('chatgpt')
policy: min
}
}
routing {
pname(NetworkManager, systemd-resolved, dnsmasq) -> must_direct
dip(224.0.0.0/3) -> direct
#去广告 https://github.com/techprober/v2ray-rules-dat
domain(geosite:category-ads) -> block
domain(geosite:category-ads-all) -> block
domain(gstatic.com) -> proxy
l4proto(udp) && dport(443) && domain(geosite:youtube) -> block
#chatGPT
domain(openai.com,
pay.openai.com,
chat.openai.com,
challenges.cloudflare.com,
auth0.openai.com,
platform.openai.com,
# Add ai.com
ai.com,
# Add stripe.com
invoice.stripe.com,
stripe.com,
# Add justmysocks.ne
justmysocks.ne) -> chatgpt
dip(geoip:private, geoip:cn) -> direct
domain(geosite:cn) -> direct
dport(23-65535) -> proxy
fallback: proxy
}
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Is there a way to customize node parameters? I need to specify a server address for vless, and ignore SSL certificate. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
An example for separated configuration, may be useful for switch config via tools like sed: Directory Structure: # tree /etc/dae
/etc/dae
├── config.d
│ ├── dns.dae
│ ├── node.dae
│ └── route.dae
└── config.dae Config files: # config.dae
include {
config.d/*.dae
}
global {
tproxy_port: 12345
log_level: warn
tcp_check_url: 'http://cp.cloudflare.com'
udp_check_dns: 'dns.google.com:53'
check_interval: 600s
check_tolerance: 50ms
#lan_interface: eth0
wan_interface: eth0
allow_insecure: false
dial_mode: domain
disable_waiting_network: false
auto_config_kernel_parameter: true
sniffing_timeout: 100ms
} # dns.dae
dns {
upstream {
alidns: 'udp://dns.alidns.com:53'
googledns: 'tcp+udp://dns.google.com:53'
}
routing {
request {
qname(geosite:category-ads) -> reject
qname(geosite:category-ads-all) -> reject
fallback: alidns
}
response {
upstream(googledns) -> accept
!qname(geosite:cn) && ip(geoip:private) -> googledns
fallback: accept
}
}
} # node.dae
node {
node1: 'xxx'
node2: 'xxx'
}
subscription {
my_sub: 'https://www.example.com/subscription/link'
}
group {
my_group {
filter: subtag(my_sub) && !name(keyword: 'ExpireAt:')
policy: min_moving_avg
}
local_group {
filter: name(node1, node2)
policy: fixed(0)
}
} # route.dae
routing {
pname(NetworkManager) -> direct
dip(224.0.0.0/3, 'ff00::/8') -> direct
dip(geoip:private) -> direct
dip(1.14.5.14) -> direct
domain(geosite:openai) -> local_group
dip(geoip:cn) -> direct
domain(geosite:cn) -> direct
domain(geosite:category-scholar-cn) -> direct
domain(geosite:geolocation-cn) -> direct
fallback: my_group
} |
Beta Was this translation helpful? Give feedback.
-
校园网下 DNS 和 Routing 的配置。 认证服务器如 可能
Routing
|
Beta Was this translation helpful? Give feedback.
-
打开国内网站老是超时和丢包是怎么回事? |
Beta Was this translation helpful? Give feedback.
-
Welcome to share your
config.dae
in this discussion panel. Doing so can definitely benefit the dae community. Thanks in advance.Geosite based on https://github.com/v2fly/domain-list-community
Regex Standard: https://github.com/google/re2/wiki/Syntax
Beta Was this translation helpful? Give feedback.
All reactions