diff --git a/modules/mihomo-ekko-prefer/files/etc/mihomo/mixin.yaml b/modules/mihomo-ekko-prefer/files/etc/mihomo/mixin.yaml new file mode 100644 index 0000000..d39ab8f --- /dev/null +++ b/modules/mihomo-ekko-prefer/files/etc/mihomo/mixin.yaml @@ -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" \ No newline at end of file diff --git a/modules/mihomo-ekko-prefer/files/etc/uci-defaults/90-mihomo b/modules/mihomo-ekko-prefer/files/etc/uci-defaults/90-mihomo new file mode 100644 index 0000000..71e6984 --- /dev/null +++ b/modules/mihomo-ekko-prefer/files/etc/uci-defaults/90-mihomo @@ -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 \ No newline at end of file diff --git a/modules/openwrt-mihomo/files/etc/uci-defaults/90-mihomo b/modules/openwrt-mihomo/files/etc/uci-defaults/90-mihomo index b74a950..a752a73 100644 --- a/modules/openwrt-mihomo/files/etc/uci-defaults/90-mihomo +++ b/modules/openwrt-mihomo/files/etc/uci-defaults/90-mihomo @@ -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 \ No newline at end of file