diff --git a/core/scripts/singbox/singbox.json b/core/scripts/singbox/singbox.json index 4d3a062..30337c7 100644 --- a/core/scripts/singbox/singbox.json +++ b/core/scripts/singbox/singbox.json @@ -27,21 +27,31 @@ "address": "rcode://success" } ], - "rules": [ - { - "domain": "cp.cloudflare.com", - "server": "dns-remote", - "rewrite_ttl": 3000 - } - ], "independent_cache": true }, "inbounds": [ { - "type": "mixed", - "tag": "mixed-in", - "listen": "127.0.0.1", - "listen_port": 2334, + "type": "tun", + "tag": "tun-in", + "address": [ + "172.18.0.1/30", + "fdfe:dcba:9876::1/126" + ], + "mtu": 9000, + "auto_route": true, + "auto_redirect": false, + "strict_route": true, + "route_address": [ + "0.0.0.0/1", + "128.0.0.0/1", + "::/1", + "8000::/1" + ], + + "route_exclude_address": [ + "192.168.0.0/16", + "fc00::/7" + ], "sniff": true, "sniff_override_destination": true }, @@ -99,6 +109,10 @@ ], "route": { "rules": [ + { + "inbound": "tun-in", + "action": "sniff" + }, { "action": "reject", "rule_set": "geosite-category-ads-all" @@ -136,24 +150,9 @@ "action": "route", "rule_set": "geoip-ir", "outbound": "direct" - }, - { - "inbound": "dns-in", - "outbound": "dns-out" - }, - { - "port": 53, - "outbound": "dns-out" - }, - { - "clash_mode": "Direct", - "outbound": "direct" - }, - { - "clash_mode": "Global", - "outbound": "select" } ], + "rule_set": [ { "type": "remote", @@ -220,7 +219,6 @@ "update_interval": "72h0m0s" } ], - "final": "select", "auto_detect_interface": true, "override_android_vpn": true }