Config Examples #81
Replies: 10 comments 6 replies
-
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.daeConfig files: |
Beta Was this translation helpful? Give feedback.
-
|
校园网下 DNS 和 Routing 的配置。 认证服务器如 可能 Routing |
Beta Was this translation helpful? Give feedback.
-
|
打开国内网站老是超时和丢包是怎么回事? |
Beta Was this translation helpful? Give feedback.
-
|
为nixos提供一下配置样例(需结合flake食用)和引入自定义geodb的思路: # flake.nix
{
description = "A simple NixOS flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
geodb = {
url = "github:Loyalsoldier/v2ray-rules-dat/release";
flake = false;
};
};
outputs = { self, nixpkgs, geodb, ... }@inputs: {
nixosConfigurations.my-nixos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./configuration.nix
];
};
};
}# configuration.nix
{ config, pkgs, ... }:
{
# ......
services.dae = {
enable = true;
# configFile = "/etc/dae/config.dae";
assetsPath = toString (pkgs.symlinkJoin {
name = "dae-assets";
paths = [ "${inputs.geodb}" ];
});
config = ''
global {
dial_mode: domain
lan_interface: auto
wan_interface: auto
log_level: info
auto_config_kernel_parameter: true
tcp_check_url: 'http://cp.cloudflare.com,1.1.1.1,2606:4700:4700::1111'
tcp_check_http_method: HEAD
check_interval: 30s
check_tolerance: 50ms
auto_config_kernel_parameter: true
}
node {
'socks5://localhost:1080'
}
dns {
ipversion_prefer: 4
upstream {
alih3: 'h3://dns.alidns.com:443/dns-query'
localdns: 'udp://127.0.0.1:53'
}
routing {
request {
qname(geosite:tld-cn, geosite:geolocation-cn, geosite:cn) -> alih3
fallback: localdns
}
}
}
group {
proxy {
policy: min_moving_avg
}
}
routing {
pname(NetworkManager, chronyd, dnscrypt-proxy, AdGuardHome, nekoray, nekobox_core, sing-box, verge-mihomo, clash-verge, clash-verge-service) -> must_direct
dip(224.0.0.0/3, 'ff00::/8', geoip:private) -> must_direct
domain(geosite:private) -> must_direct
domain(geosite:category-ads-all) -> block
domain(geosite:google-cn, geosite:google, tradingview.com) -> proxy
domain(geosite:apple@cn, geosite:category-games-cn, geosite:category-game-accelerator-cn, geosite:category-game-platforms-download, geosite:category-pt, geosite:category-public-tracker, geosite:category-bank-cn, geosite:category-finance, geosite:category-securities-cn) -> direct
domain(geosite:gfw, geosite:geolocation-!cn) -> proxy
!domain(geosite:tld-cn, geosite:geolocation-cn, geosite:cn) -> proxy
domain(geosite:tld-cn, geosite:geolocation-cn, geosite:cn, geosite:china-list) -> direct
fallback: proxy
}
'';
};
# ......
} |
Beta Was this translation helpful? Give feedback.
-
|
国内网站v4/v6双栈,国外网站仅保留v4。且有国内CDN的国外网站(amd.com/apple.com等)保留直连。不用修改routing{}。没有使用geosite:cn,不知道效率会不会高一点😀 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Welcome to share your
config.daein 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