dae/example.dae

72 lines
1.9 KiB
Plaintext
Raw Normal View History

2023-01-28 00:50:21 +07:00
global {
# tproxy port to listen.
tproxy_port: 12345
# Node connectivity check.
check_url: 'https://connectivitycheck.gstatic.com/generate_204'
2023-01-28 14:47:43 +07:00
check_interval: 30s
2023-01-28 00:50:21 +07:00
# Now only support UDP and IP:Port.
# Please make sure DNS traffic will go through and be forwarded by dae.
dns_upstream: '1.1.1.1:53'
# The ingress (LAN) interface to bind.
2023-01-28 00:50:21 +07:00
# Now only support one interface.
lan_interface: docker0
2023-01-28 00:50:21 +07:00
}
# subscription will be resolved as nodes and merged into node pool below.
subscription {
# Add your subscription links here.
}
node {
# Add your node links here.
# Support socks5, http, https, ss, ssr, vmess, vless, trojan, trojan-go
'socks5://127.0.0.1:1080#HK'
'ss://LINK'
}
group {
my_group {
# Pass node links as input of lua script filter.
filter: name(keyword: HK)
# Randomly select a node from the group for every connection.
# policy: random
# Select the first node from the group for every connection.
2023-01-28 00:50:21 +07:00
policy: fixed(0)
}
disney {
# Pass node names as input of keyword/regex filter.
filter: name(regex:'HK|SG|TW', keyword:'JP') && !name(keyword:'GCP')
2023-01-28 00:50:21 +07:00
# Select the node with min average of the last 10 latencies from the group for every connection.
policy: min_avg10
}
netflix {
# Pass node names as input of keyword filter.
2023-01-28 14:47:43 +07:00
filter: name(keyword:AWS)
2023-01-28 00:50:21 +07:00
# Select the node with min last latency from the group for every connection.
2023-01-28 00:50:21 +07:00
policy: min
}
}
routing {
#ip(geoip:private)->direct
2023-01-29 10:19:58 +07:00
!port(80) -> my_group
sport(123) -> direct
2023-01-29 10:19:58 +07:00
sip(192.168.0.0/24) && !sip(192.168.0.252/30) -> direct
domain(geosite:category-ads) -> block
2023-01-28 14:59:53 +07:00
l4proto(udp) && mac('02:42:ac:11:00:03') -> my_group
2023-01-28 00:50:21 +07:00
domain(geosite:disney) -> disney
domain(geosite:netflix) -> netflix
ip(geoip:cn) -> direct
domain(geosite:cn) -> direct
final: my_group
}