Skip to content

Commit 63eef4b

Browse files
committed
feat: add ekko prefer mihomo config
1 parent 6f5ae19 commit 63eef4b

File tree

3 files changed

+64
-12
lines changed

3 files changed

+64
-12
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
dns:
2+
default-nameserver:
3+
- 119.29.29.29
4+
- 223.5.5.5
5+
nameserver:
6+
- 119.29.29.29
7+
- 223.5.5.5
8+
fallback:
9+
- tcp://8.8.8.8
10+
- tcp://1.1.1.1
11+
proxy-server-nameserver:
12+
- 119.29.29.29
13+
- 223.5.5.5
14+
fallback-filter:
15+
geoip: true
16+
geoip-code: CN
17+
ipcidr:
18+
- ::/128
19+
- ::1/128
20+
- 2001::/32
21+
- 0.0.0.0/8
22+
- 10.0.0.0/8
23+
- 100.64.0.0/10
24+
- 127.0.0.0/8
25+
- 169.254.0.0/16
26+
- 172.16.0.0/12
27+
- 192.0.0.0/24
28+
- 192.0.2.0/24
29+
- 192.88.99.0/24
30+
- 192.168.0.0/16
31+
- 198.18.0.0/15
32+
- 198.51.100.0/24
33+
- 203.0.113.0/24
34+
- 224.0.0.0/4
35+
- 240.0.0.0/4
36+
- 255.255.255.255/32
37+
domain:
38+
- "+.google.com"
39+
- "+.facebook.com"
40+
- "+.youtube.com"
41+
- "+.githubusercontent.com"
42+
- "+.googlevideo.com"
43+
- "+.msftconnecttest.com"
44+
- "+.msftncsi.com"
45+
- "+.github.com"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
uci batch << EOF
2+
set mihomo.config.scheduled_restart='1'
3+
set mihomo.config.cron_expression='0 4 * * *'
4+
set mihomo.config.fast_reload='0'
5+
set mihomo.proxy.tcp_transparent_proxy_mode='tproxy'
6+
set mihomo.proxy.udp_transparent_proxy_mode='tproxy'
7+
set mihomo.proxy.ipv6_proxy='1'
8+
set mihomo.proxy.bypass_china_mainland_ip='1'
9+
set mihomo.proxy.acl_tcp_dport='0-3477 3479-65535'
10+
set mihomo.proxy.acl_udp_dport='0-3477 3479-65535'
11+
set mihomo.mixin.ipv6='1'
12+
set mihomo.mixin.dns_mode='normal'
13+
set mihomo.mixin.dns_ipv6='1'
14+
set mihomo.mixin.dns_system_hosts='1'
15+
set mihomo.mixin.dns_respect_rules='1'
16+
set mihomo.mixin.geox_auto_update='1'
17+
mihomo.mixin.mixin_file_content='1'
18+
commit
19+
EOF
Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
11
uci batch << EOF
2-
set mihomo.config.fast_reload='0'
3-
set mihomo.proxy.tcp_transparent_proxy_mode='tproxy'
4-
set mihomo.proxy.udp_transparent_proxy_mode='tproxy'
5-
set mihomo.proxy.ipv6_proxy='1'
6-
set mihomo.proxy.bypass_china_mainland_ip='1'
72
set mihomo.subscription.url='$CLASH_CONFIG_URL'
8-
set mihomo.mixin.ipv6='1'
9-
set mihomo.mixin.dns_mode='normal'
10-
set mihomo.mixin.dns_ipv6='1'
11-
set mihomo.mixin.dns_system_hosts='1'
12-
set mihomo.mixin.dns_respect_rules='1'
13-
set mihomo.mixin.geox_auto_update='1'
14-
set mihomo.config.scheduled_restart='1'
153
commit
164
EOF

0 commit comments

Comments
 (0)