{ "log": { "disabled": false, "level": "warn", "timestamp": false }, "experimental": { "clash_api": { "external_controller": "127.0.0.1:9090", // "external_ui": "yacd", //"external_ui_download_url": "https:\/\/github.com\/MetaCubeX\/Yacd-meta\/archive\/gh-pages.zip", // "external_ui_download_detour": "direct", // "secret": "", // "default_mode": "rule", "store_selected": true, "cache_file": "clash.db" } }, "dns": { "servers": [ { "address": "tcp://1.1.1.1", "address_resolver": "dns-local", "strategy": "prefer_ipv4", "tag": "dns-remote", "detour": "ssh-out" }, { "address": "local", "detour": "direct", "tag": "dns-local" }, { "address": "rcode:\/\/success", "tag": "dns-block" } ], "rules": [ { "domain": [ "95.182.89.173", "github.com", "githubusercontent.com", "95.182.89.173" ], "server": "dns-local" }, { "domain_suffix": [ "ir" ], "server": "dns-local" }, { "outbound": "direct", "server": "dns-local" } ], "final": "dns-remote", "reverse_mapping": true, "strategy": "prefer_ipv4", "independent_cache": true }, "inbounds": [ { "listen": "127.0.0.1", "listen_port": 6450, "override_address": "8.8.8.8", "override_port": 53, "tag": "dns-in", "type": "direct" }, { "type": "tun", "tag": "tun-in", "domain_strategy": "prefer_ipv4", "interface_name": "tun0", "inet4_address": "172.19.0.1\/30", "mtu": 9000, "auto_route": true, "strict_route": true, "stack": "system", "endpoint_independent_nat": true, "sniff": true, "sniff_override_destination": false }, { "domain_strategy": "prefer_ipv4", "listen": "127.0.0.1", "listen_port": 2080, "sniff": true, "sniff_override_destination": false, "tag": "mixed-in", "type": "mixed" } ], "outbounds": [ { "type": "socks", "tag": "SSH+UDP", "server": "127.0.0.1", "server_port": 2000, "version": "5", "udp_over_tcp": true, "network": "tcp", "detour": "ssh-out" }, { "type": "ssh", "tag": "ssh-out", //"client_version": "SSH-2.0-OpenSSH_7.4p1", "server": "95.182.89.173", "server_port": 48209, "user": "bd0930f4-a827-41df-9809-cc9f0e3fda68", "private_key": "-----BEGIN OPENSSH PRIVATE KEY-----\nb3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZWQyNTUx\nOQAAACAPtVakzmvG3pGtwFbrKYOUVA2D6IaR25dEl2nb713legAAAIgy753MMu+dzAAAAAtzc2gt\nZWQyNTUxOQAAACAPtVakzmvG3pGtwFbrKYOUVA2D6IaR25dEl2nb713legAAAEBQb2ez68IgrInX\nrRzBejw34VCXctj0c/l0P/+y4sz1Qw+1VqTOa8beka3AVuspg5RUDYPohpHbl0SXadvvXeV6AAAA\nAAECAwQF\n-----END OPENSSH PRIVATE KEY-----\n", //ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA+1VqTOa8beka3AVuspg5RUDYPohpHbl0SXadvvXeV6 "host_key": ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAevNrTtq2kx1VSxQbSux5RuCXPkEPRwKmbw43MzHbyc hiddify-panel@nex1612619220-7330104\n", "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBDx1BuA3umJ8O2i+vQMxeLPP5hTruwElk80LI0oXvNGBbYmlvRttXtvtum1LuzSNzYtJXx498/e9/OeOhsPzKcc= hiddify-panel@nex1612619220-7330104\n", "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC/Cu0vWOSNSEMz/g8JSQeUzNv0X02mHuYyrN+cFXz8X2iZYwgh+44XbCHCv+et5lg/O+/B+y648sUDXrb8fJTFTBSdSwsJ1ecgKO9g/pbq/uH0W/1j+ryVvKrnjeSrlq/CBFaQVZoezluGlv2e4I/6HAR51lLnT0IDecYYVNL50SaSZAA1VY30JMR/5T1KNE0r9Rg3K37tJnHFmmcPevJKk/JWcwFe92Nw8ZA/Bej8Wz50EW6xOmBsCqNAnmuSrNMfR8snYlfUF9YfsGF7GlPPsPk0JfL9odhTbITR7VkvlEy0WeP+wVEvbI9mQQnqDxMX7QdgRLI6zaC92TPjbLn0jfBEtNFsPUklgD3BQDICpEA3iJiyI2lNm1291CN47oIj8M3MTLWRUmigRAeZBD9HaGeW13aNDNq6WiYcp+JX4OHkGE3A4l86mhRxbn2Q0hopWjsAModWgF0opPyKWH50j8xXc2mJ0wxRoQnf9IFLemxoa/Yh+nfz1LKeSZoxY8M= hiddify-panel@nex1612619220-7330104\n"] }, { "tag": "direct", "type": "direct" }, { "tag": "bypass", "type": "direct" }, { "tag": "block", "type": "block" }, { "tag": "dns-out", "type": "dns" } ], "route": { "auto_detect_interface": true, "override_android_vpn": true, "final": "SSH+UDP", // "geoip": { // "download_url": "https://95.182.89.173/7wlsd8yQ0bAal341N/gh/malikshi/sing-box-geo/releases/latest/download/geoip.db", // // "download_url": "https:\/\/github.com\/malikshi\/sing-box-geo\/releases\/latest\/download\/geoip.db", // "download_detour": "direct" // }, // "geoip": { // "download_url": "https:\/\/github.com\/malikshi\/sing-box-geo\/releases\/latest\/download\/geoip.db", // "download_detour": "direct" // }, // "geosite": { // "download_url": "https:\/\/github.com\/malikshi\/v2ray-rules-dat\/releases\/latest\/download\/geosite.db", // "download_detour": "direct" // }, "rules": [ { "outbound": "dns-out", "port": [ 53 ] }, { "inbound": [ "dns-in" ], "outbound": "dns-out" }, { "domain_suffix": [ "ir" ], "outbound": "bypass" }, { "geoip": [ "ir" ], "outbound": "bypass" }, { "protocol": "quic", "port": [443], "outbound": "block" }, { "ip_cidr": [ "224.0.0.0\/3", "ff00::\/8" ], "outbound": "block", "source_ip_cidr": [ "224.0.0.0\/3", "ff00::\/8" ] } ] } }