Skip to content

Commit

Permalink
feat: add ekko prefer mihomo config
Browse files Browse the repository at this point in the history
  • Loading branch information
EkkoG committed Nov 8, 2024
1 parent 6f5ae19 commit 63eef4b
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 12 deletions.
45 changes: 45 additions & 0 deletions modules/mihomo-ekko-prefer/files/etc/mihomo/mixin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
dns:
default-nameserver:
- 119.29.29.29
- 223.5.5.5
nameserver:
- 119.29.29.29
- 223.5.5.5
fallback:
- tcp://8.8.8.8
- tcp://1.1.1.1
proxy-server-nameserver:
- 119.29.29.29
- 223.5.5.5
fallback-filter:
geoip: true
geoip-code: CN
ipcidr:
- ::/128
- ::1/128
- 2001::/32
- 0.0.0.0/8
- 10.0.0.0/8
- 100.64.0.0/10
- 127.0.0.0/8
- 169.254.0.0/16
- 172.16.0.0/12
- 192.0.0.0/24
- 192.0.2.0/24
- 192.88.99.0/24
- 192.168.0.0/16
- 198.18.0.0/15
- 198.51.100.0/24
- 203.0.113.0/24
- 224.0.0.0/4
- 240.0.0.0/4
- 255.255.255.255/32
domain:
- "+.google.com"
- "+.facebook.com"
- "+.youtube.com"
- "+.githubusercontent.com"
- "+.googlevideo.com"
- "+.msftconnecttest.com"
- "+.msftncsi.com"
- "+.github.com"
19 changes: 19 additions & 0 deletions modules/mihomo-ekko-prefer/files/etc/uci-defaults/90-mihomo
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uci batch << EOF
set mihomo.config.scheduled_restart='1'
set mihomo.config.cron_expression='0 4 * * *'
set mihomo.config.fast_reload='0'
set mihomo.proxy.tcp_transparent_proxy_mode='tproxy'
set mihomo.proxy.udp_transparent_proxy_mode='tproxy'
set mihomo.proxy.ipv6_proxy='1'
set mihomo.proxy.bypass_china_mainland_ip='1'
set mihomo.proxy.acl_tcp_dport='0-3477 3479-65535'
set mihomo.proxy.acl_udp_dport='0-3477 3479-65535'
set mihomo.mixin.ipv6='1'
set mihomo.mixin.dns_mode='normal'
set mihomo.mixin.dns_ipv6='1'
set mihomo.mixin.dns_system_hosts='1'
set mihomo.mixin.dns_respect_rules='1'
set mihomo.mixin.geox_auto_update='1'
mihomo.mixin.mixin_file_content='1'
commit
EOF
12 changes: 0 additions & 12 deletions modules/openwrt-mihomo/files/etc/uci-defaults/90-mihomo
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
uci batch << EOF
set mihomo.config.fast_reload='0'
set mihomo.proxy.tcp_transparent_proxy_mode='tproxy'
set mihomo.proxy.udp_transparent_proxy_mode='tproxy'
set mihomo.proxy.ipv6_proxy='1'
set mihomo.proxy.bypass_china_mainland_ip='1'
set mihomo.subscription.url='$CLASH_CONFIG_URL'
set mihomo.mixin.ipv6='1'
set mihomo.mixin.dns_mode='normal'
set mihomo.mixin.dns_ipv6='1'
set mihomo.mixin.dns_system_hosts='1'
set mihomo.mixin.dns_respect_rules='1'
set mihomo.mixin.geox_auto_update='1'
set mihomo.config.scheduled_restart='1'
commit
EOF

0 comments on commit 63eef4b

Please sign in to comment.