diff --git a/config/client/luci-app-momo/ipv4+6.json b/config/client/luci-app-momo/ipv4+6.json new file mode 100644 index 0000000..19220ad --- /dev/null +++ b/config/client/luci-app-momo/ipv4+6.json @@ -0,0 +1,205 @@ +{ + "dns": { + "servers": [ + { + "tag": "local", + "type": "udp", + "server": "223.5.5.5" + }, + { + "tag": "public", + "type": "https", + "server": "dns.alidns.com", + "domain_resolver": "local" + }, + { + "tag": "foreign", + "type": "https", + "server": "8.8.8.8", + "detour": "Server1" + }, + { + "tag": "fakeip", + "type": "fakeip", + "inet4_range": "198.18.0.0/15", + "inet6_range": "fc00::/18" + } + ], + "rules": [ + { + "rule_set": "geosite-cn", + "server": "public" + }, + { + "query_type": [ + "A", + "AAAA" + ], + "server": "fakeip", + "rewrite_ttl": 1 + } + ], + "final": "foreign", + "strategy": "prefer_ipv4", + "independent_cache": true, + "reverse_mapping": true + }, + "outbounds": [ + { + "tag": "Server1", + "type": "vless", + "server": "xxx.xxx.xxx.xxx", + "server_port": 8443, + "uuid": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "tls": { + "enabled": true, + "server_name": "xxxxxxxxxxxx", + "insecure": false, + "reality": { + "enabled": true, + "public_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "short_id": "xxxxxxxxxxxx" + }, + "utls": { + "enabled": true, + "fingerprint": "firefox" + } + }, + "flow": "xtls-rprx-vision" + }, + { + "tag": "Server2", + "type": "vless", + "server": "xxx.xxx.xxx.xxx", + "server_port": 8443, + "uuid": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "tls": { + "enabled": true, + "server_name": "xxxxxxxxxxxx", + "insecure": false, + "reality": { + "enabled": true, + "public_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "short_id": "xxxxxxxxxxxx" + }, + "utls": { + "enabled": true + } + }, + "flow": "xtls-rprx-vision" + }, + { + "tag": "GLOBAL", + "type": "selector", + "outbounds": [ + "Server1", + "Server2", + "direct" + ] + }, + { + "tag": "direct", + "type": "direct" + } + ], + "route": { + "rules": [ + { + "action": "sniff", + "sniffer": [ + "http", + "tls", + "quic", + "dns" + ] + }, + { + "inbound": "dns-in", + "action": "hijack-dns" + }, + { + "ip_is_private": true, + "outbound": "direct" + }, + { + "rule_set": "geosite-cn", + "outbound": "direct" + }, + { + "rule_set": "geoip-cn", + "outbound": "direct" + } + ], + "rule_set": [ + { + "tag": "geosite-cn", + "type": "remote", + "format": "binary", + "url": "https://gh-proxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/cn.srs", + "download_detour": "direct" + }, + { + "tag": "geoip-cn", + "type": "remote", + "format": "binary", + "url": "https://cdn.jsdelivr.net/gh/Loyalsoldier/geoip@release/srs/cn.srs", + "download_detour": "direct" + } + ], + "final": "GLOBAL", + "default_domain_resolver": { + "server": "public" + } + }, + "inbounds": [ + { + "tag": "dns-in", + "type": "direct", + "listen": "::", + "listen_port": 1053 + }, + { + "tag": "redirect-in", + "type": "redirect", + "listen": "::", + "listen_port": 7890 + }, + { + "tag": "tproxy-in", + "type": "tproxy", + "listen": "::", + "listen_port": 7891 + }, + { + "tag": "tun-in", + "type": "tun", + "interface_name": "momo", + "address": [ + "172.31.0.1/30", + "fdfe:dcba:9876::1/126" + ], + "auto_route": false, + "auto_redirect": false + } + ], + "experimental": { + "cache_file": { + "enabled": true, + "path": "/etc/momo/run/cache.db", + "store_fakeip": true + }, + "clash_api": { + "external_controller": "0.0.0.0:9095", + "external_ui": "/etc/momo/run/ui", + "external_ui_download_url": "https://gh-proxy.com/https://github.com/Zephyruso/zashboard/archive/refs/heads/gh-pages.zip", + "external_ui_download_detour": "direct", + "secret": "", + "default_mode": "rule" + } + }, + "log": { + "disabled": false, + "level": "info", + "timestamp": true + } +} diff --git a/config/client/luci-app-momo/ipv4only.json b/config/client/luci-app-momo/ipv4only.json new file mode 100644 index 0000000..70c9904 --- /dev/null +++ b/config/client/luci-app-momo/ipv4only.json @@ -0,0 +1,204 @@ +{ + "dns": { + "servers": [ + { + "tag": "local", + "type": "udp", + "server": "223.5.5.5" + }, + { + "tag": "public", + "type": "https", + "server": "dns.alidns.com", + "domain_resolver": "local" + }, + { + "tag": "foreign", + "type": "https", + "server": "8.8.8.8", + "detour": "Server1" + }, + { + "tag": "fakeip", + "type": "fakeip", + "inet4_range": "198.18.0.0/15", + "inet6_range": "fc00::/18" + } + ], + "rules": [ + { + "rule_set": "geosite-cn", + "server": "public" + }, + { + "query_type": [ + "A", + "AAAA" + ], + "server": "fakeip", + "rewrite_ttl": 1 + } + ], + "final": "foreign", + "strategy": "ipv4_only", + "independent_cache": true, + "reverse_mapping": true + }, + "outbounds": [ + { + "tag": "Server1", + "type": "vless", + "server": "xxx.xxx.xxx.xxx", + "server_port": 8443, + "uuid": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "tls": { + "enabled": true, + "server_name": "xxxxxxxxxxxx", + "insecure": false, + "reality": { + "enabled": true, + "public_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "short_id": "xxxxxxxxxxxx" + }, + "utls": { + "enabled": true, + "fingerprint": "firefox" + } + }, + "flow": "xtls-rprx-vision" + }, + { + "tag": "Server2", + "type": "vless", + "server": "xxx.xxx.xxx.xxx", + "server_port": 8443, + "uuid": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "tls": { + "enabled": true, + "server_name": "xxxxxxxxxxxx", + "insecure": false, + "reality": { + "enabled": true, + "public_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "short_id": "xxxxxxxxxxxx" + }, + "utls": { + "enabled": true + } + }, + "flow": "xtls-rprx-vision" + }, + { + "tag": "GLOBAL", + "type": "selector", + "outbounds": [ + "Server1", + "Server2", + "direct" + ] + }, + { + "tag": "direct", + "type": "direct" + } + ], + "route": { + "rules": [ + { + "action": "sniff", + "sniffer": [ + "http", + "tls", + "quic", + "dns" + ] + }, + { + "inbound": "dns-in", + "action": "hijack-dns" + }, + { + "ip_is_private": true, + "outbound": "direct" + }, + { + "rule_set": "geosite-cn", + "outbound": "direct" + }, + { + "rule_set": "geoip-cn", + "outbound": "direct" + } + ], + "rule_set": [ + { + "tag": "geosite-cn", + "type": "remote", + "format": "binary", + "url": "https://gh-proxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/cn.srs", + "download_detour": "direct" + }, + { + "tag": "geoip-cn", + "type": "remote", + "format": "binary", + "url": "https://cdn.jsdelivr.net/gh/Loyalsoldier/geoip@release/srs/cn.srs", + "download_detour": "direct" + } + ], + "final": "GLOBAL", + "default_domain_resolver": { + "server": "public" + } + }, + "inbounds": [ + { + "tag": "dns-in", + "type": "direct", + "listen": "0.0.0.0", + "listen_port": 1053 + }, + { + "tag": "redirect-in", + "type": "redirect", + "listen": "0.0.0.0", + "listen_port": 7890 + }, + { + "tag": "tproxy-in", + "type": "tproxy", + "listen": "0.0.0.0", + "listen_port": 7891 + }, + { + "tag": "tun-in", + "type": "tun", + "interface_name": "momo", + "address": [ + "172.31.0.1/30" + ], + "auto_route": false, + "auto_redirect": false + } + ], + "experimental": { + "cache_file": { + "enabled": true, + "path": "/etc/momo/run/cache.db", + "store_fakeip": true + }, + "clash_api": { + "external_controller": "0.0.0.0:9095", + "external_ui": "/etc/momo/run/ui", + "external_ui_download_url": "https://gh-proxy.com/https://github.com/Zephyruso/zashboard/archive/refs/heads/gh-pages.zip", + "external_ui_download_detour": "direct", + "secret": "", + "default_mode": "rule" + } + }, + "log": { + "disabled": false, + "level": "info", + "timestamp": true + } +} diff --git a/config/client/1_log.json b/config/client/shellcrash/1_log.json similarity index 100% rename from config/client/1_log.json rename to config/client/shellcrash/1_log.json diff --git a/config/client/2_dns.json b/config/client/shellcrash/2_dns.json similarity index 100% rename from config/client/2_dns.json rename to config/client/shellcrash/2_dns.json diff --git a/config/client/3_ntp.json b/config/client/shellcrash/3_ntp.json similarity index 100% rename from config/client/3_ntp.json rename to config/client/shellcrash/3_ntp.json diff --git a/config/client/4_inbounds.json b/config/client/shellcrash/4_inbounds.json similarity index 100% rename from config/client/4_inbounds.json rename to config/client/shellcrash/4_inbounds.json diff --git a/config/client/5_outbounds.json b/config/client/shellcrash/5_outbounds.json similarity index 100% rename from config/client/5_outbounds.json rename to config/client/shellcrash/5_outbounds.json diff --git a/config/client/6_route.json b/config/client/shellcrash/6_route.json similarity index 100% rename from config/client/6_route.json rename to config/client/shellcrash/6_route.json diff --git a/config/client/7_experimental.json b/config/client/shellcrash/7_experimental.json similarity index 100% rename from config/client/7_experimental.json rename to config/client/shellcrash/7_experimental.json diff --git a/config/client/add_hosts.json b/config/client/shellcrash/add_hosts.json similarity index 100% rename from config/client/add_hosts.json rename to config/client/shellcrash/add_hosts.json diff --git a/config/client/add_route.json b/config/client/shellcrash/add_route.json similarity index 100% rename from config/client/add_route.json rename to config/client/shellcrash/add_route.json diff --git a/kernel/geoip.db b/config/kernel/geoip.db similarity index 100% rename from kernel/geoip.db rename to config/kernel/geoip.db diff --git a/kernel/geosite.db b/config/kernel/geosite.db similarity index 100% rename from kernel/geosite.db rename to config/kernel/geosite.db diff --git a/kernel/sing-box b/config/kernel/sing-box similarity index 100% rename from kernel/sing-box rename to config/kernel/sing-box diff --git a/kernel/test.json b/config/kernel/test.json similarity index 100% rename from kernel/test.json rename to config/kernel/test.json diff --git a/config/server/reality_domain.md b/config/server/reality_domain.txt similarity index 100% rename from config/server/reality_domain.md rename to config/server/reality_domain.txt