Skip to content

Instantly share code, notes, and snippets.

@samuraee
Last active June 2, 2023 14:14
Show Gist options
  • Save samuraee/f4abb36b44870864ea5f96cc9f2f449c to your computer and use it in GitHub Desktop.
Save samuraee/f4abb36b44870864ea5f96cc9f2f449c to your computer and use it in GitHub Desktop.
My SingBox Conf
{
"log": {
"level": "trace"
},
"dns": {
"servers": [{
"tag": "local",
"address": "217.218.127.127",
"detour": "direct"
}, {
"tag": "google",
"address": "udp://8.8.8.8"
}, {
"tag": "block",
"address": "rcode://success"
}, {
"tag": "shecan",
"address": "tls://free.shecan.ir"
}
],
"rules": [{
"geosite": "category-ads-all",
"server": "block"
}, {
"domain_suffix": ".ir",
"server": "local"
}],
"final": "google",
"strategy": "prefer_ipv4",
"disable_cache": false,
"disable_expire": false
},
"inbounds": [{
"type": "mixed",
"tag": "mixed-in",
"listen": "127.0.0.1",
"listen_port": 1082,
"tcp_fast_open": true,
"sniff": true,
"sniff_override_destination": false,
"set_system_proxy": false
}, {
"type": "tun",
"tag": "tun-in",
"inet4_address": "172.19.0.1/30",
"inet6_address": "fdfe:dcba:9876::1/128",
"stack": "gvisor",
"mtu": 1500,
"auto_route": true,
"strict_route": false,
"endpoint_independent_nat": false,
"sniff": true,
"sniff_override_destination": true
}],
"outbounds": [{
"type": "shadowsocks",
"tag": "shadowsocks-out",
"method": "2022-blake3-aes-128-gcm",
"password": "dpGpyCBsNQ72fPoZUShRBA==",
"detour": "shadowtls-out",
"multiplex": {
"enabled": true,
"max_connections": 4,
"min_streams": 4
}
},
{
"type": "shadowtls",
"tag": "shadowtls-out",
"server": "78.47.195.69",
"server_port": 443,
"version": 2,
"password": "womanLifeLiberty",
"tls": {
"enabled": true,
"server_name": "google.com"
}
},
{
"type": "direct",
"tag": "direct"
}, {
"type": "block",
"tag": "block"
},
{
"type": "dns",
"tag": "dns-out"
}
],
"route": {
"geoip": {
"download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db",
"download_detour": "direct"
},
"geosite": {
"download_url": "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db",
"download_detour": "direct"
},
"rules": [{
"protocol": "dns",
"outbound": "dns-out"
},
{
"geoip": "private",
"outbound": "direct"
},
{
"geosite": "category-ads-all",
"outbound": "block"
},
{
"domain_keyword": [
"yektanet",
"adengine.telewebion.com"
],
"outbound": "block"
},
{
"domain_suffix": [
".ir",
"aparat.com",
"digikala.com",
"telewebion.com",
"varzesh3.com"
],
"outbound": "direct"
},
{
"port": [
22,
3389
],
"outbound": "direct"
}
],
"final": "shadowsocks-out",
"auto_detect_interface": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment