Skip to content

Instantly share code, notes, and snippets.

@hiddify-com
Last active August 25, 2023 11:04
Show Gist options
  • Save hiddify-com/7603682a08aa7e652bc2c71d50b89236 to your computer and use it in GitHub Desktop.
Save hiddify-com/7603682a08aa7e652bc2c71d50b89236 to your computer and use it in GitHub Desktop.
test
{
"outbounds": [
{
"type": "socks",
"tag": "Select",
"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": "141.145.193.138.sslip.io",
"server_port": 10627,
"user": "eb4ee914-cf32-4b2c-98a0-06bfdd760fae",
"private_key": "-----BEGIN OPENSSH PRIVATE KEY-----\nb3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZWQyNTUx\nOQAAACB8zXN+450oNuQDzVkUjXXL3TeVQh1bKoFPEyKmw5EITQAAAIglT0QZJU9EGQAAAAtzc2gt\nZWQyNTUxOQAAACB8zXN+450oNuQDzVkUjXXL3TeVQh1bKoFPEyKmw5EITQAAAEC0sGR0gu0RDf+8\nxfdmeyeRqBx2ComahztTMcK0XIiNDXzNc37jnSg25APNWRSNdcvdN5VCHVsqgU8TIqbDkQhNAAAA\nAAECAwQF\n-----END OPENSSH PRIVATE KEY-----\n", //ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHzNc37jnSg25APNWRSNdcvdN5VCHVsqgU8TIqbDkQhN
"host_key": []
},
{
"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": "Select",
"rules": [
{
"outbound": "dns-out",
"port": [
53
]
},
{
"inbound": [
"dns-in"
],
"outbound": "dns-out"
},
{
"domain_suffix": [
"ir"
],
"outbound": "bypass"
},
{
"geoip": [
"ir"
],
"outbound": "bypass"
},
{
"ip_cidr": [
"224.0.0.0/3",
"ff00::/8"
],
"outbound": "block",
"source_ip_cidr": [
"224.0.0.0/3",
"ff00::/8"
]
}
]
},
"experimental": {
"clash_api": {
"external_controller": "127.0.0.1:9090",
"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": "Select"
},
{
"address": "1.1.1.1",
"detour": "direct",
"tag": "dns-local"
},
{
"address": "rcode://success",
"tag": "dns-block"
}
],
"rules": [
{
"domain": [
"github.com",
"githubusercontent.com",
"1.1.1.1",
"141.145.193.138.sslip.io",
"secure.avangate.com"
],
"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": "mixed",
"endpoint_independent_nat": true,
"sniff": true,
"sniff_override_destination": false
},
{
"domain_strategy": "prefer_ipv4",
"listen": "127.0.0.1",
"listen_port": 2334,
"sniff": true,
"sniff_override_destination": false,
"tag": "mixed-in",
"type": "mixed"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment