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.
|
2023-01-30 17:13:43 +07:00
|
|
|
# The request to dns upstream follows routing defined below.
|
2023-01-28 00:50:21 +07:00
|
|
|
dns_upstream: '1.1.1.1:53'
|
|
|
|
|
2023-01-30 17:13:43 +07:00
|
|
|
# The LAN interface to bind.
|
|
|
|
# Use it if you only want to proxy LAN instead of localhost.
|
2023-01-28 00:50:21 +07:00
|
|
|
# Now only support one interface.
|
2023-01-30 17:13:43 +07:00
|
|
|
# lan_interface: docker0
|
|
|
|
|
|
|
|
# The WAN interface to bind.
|
|
|
|
# Use it if you only want to proxy localhost.
|
2023-01-30 14:50:55 +07:00
|
|
|
wan_interface: wlp5s0
|
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
|
2023-01-30 17:13:43 +07:00
|
|
|
'socks5://localhost:1080'
|
2023-01-28 00:50:21 +07:00
|
|
|
'ss://LINK'
|
|
|
|
}
|
|
|
|
|
|
|
|
group {
|
|
|
|
my_group {
|
|
|
|
# Pass node links as input of lua script filter.
|
2023-01-30 17:13:43 +07:00
|
|
|
filter: name(keyword: HK, keyword: SH)
|
2023-01-28 00:50:21 +07:00
|
|
|
|
|
|
|
# Randomly select a node from the group for every connection.
|
2023-01-29 06:31:52 +07:00
|
|
|
# policy: random
|
|
|
|
|
|
|
|
# Select the first node from the group for every connection.
|
2023-01-28 00:50:21 +07:00
|
|
|
policy: fixed(0)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
routing {
|
2023-01-30 17:13:43 +07:00
|
|
|
# See routing.md for full examples.
|
|
|
|
|
2023-01-30 19:34:07 +07:00
|
|
|
ip(geoip:private) -> direct
|
2023-01-28 00:50:21 +07:00
|
|
|
ip(geoip:cn) -> direct
|
|
|
|
domain(geosite:cn) -> direct
|
|
|
|
final: my_group
|
|
|
|
}
|