Untitled

mail@pastecode.io avatar
unknown
plain_text
6 months ago
4.9 kB
3
Indexable
Never
{
    "log":{
        "disabled":false,
        "level":"debug",
        "output":"/etc/sing-box/logs/box.log",
        "timestamp":true
    },
    "inbounds":[
        {
            "type":"shadowtls",
            "listen":"::",
            "listen_port":8881,
            "detour":"shadowtls-in",
            "version":3,
            "users":[
                {
                    "password":"vyddNoKOe9JysfDxOfyjNQ=="
                }
            ],
            "handshake":{
                "server":"addons.mozilla.org",
                "server_port":443
            },
            "strict_mode":true
        },
        {
            "type":"shadowsocks",
            "tag":"shadowtls-in",
            "listen":"127.0.0.1",
            "network":"tcp",
            "method":"2022-blake3-aes-128-gcm",
            "password":"vyddNoKOe9JysfDxOfyjNQ=="
        },
        {
            "type":"vless",
            "sniff":true,
            "sniff_override_destination":true,
            "tag":"reality-in",
            "listen":"::",
            "listen_port":8882,
            "users":[
                {
                    "uuid":"68fe8d27-cbc8-4e72-90b7-70d3bb69dfd3",
                    "flow":"xtls-rprx-vision"
                }
            ],
            "tls":{
                "enabled":true,
                "server_name":"",
                "reality":{
                    "enabled":true,
                    "handshake":{
                        "server":"www.nokia.com",
                        "server_port":443
                    },
                    "private_key":"GLzN2foCb8zGUufUpkbYxvMGc8KevfAAml-tbekmEHk",
                    "short_id":[
                        ""
                    ]
                }
            }
        },
        {
            "type":"hysteria2",
            "sniff":true,
            "sniff_override_destination":true,
            "tag":"hysteria2-in",
            "listen":"::",
            "listen_port":8883,
            "users":[
                {
                    "password":"hysteria"
                }
            ],
            "ignore_client_bandwidth":true,
            "tls":{
                "enabled":true,
                "server_name":"",
                "alpn":[
                    "h3"
                ],
                "min_version":"1.3",
                "max_version":"1.3",
                "certificate_path":"/etc/hysteria/server.crt",
                "key_path":"/etc/hysteria/server.key"
            }
        },
        {
            "sniff":true,
            "sniff_override_destination":true,
            "type":"shadowsocks",
            "tag":"shadowsocks-in",
            "listen":"::",
            "listen_port":8884,
            "method":"aes-256-gcm",
            "password":"Shadowsocks"
        },
        {
            "type":"tuic",
            "listen":"::",
            "listen_port":8885,
            "users":[
                {
                    "uuid":"68fe8d27-cbc8-4e72-90b7-70d3bb69dfd3",
                    "password":"tuic"
                }
            ],
            "congestion_control":"bbr",
            "tls":{
                "enabled":true,
                "alpn":[
                    "h3"
                ],
                "certificate_path":"/etc/hysteria/server.crt",
                "key_path":"/etc/hysteria/server.key"
            }
        }
    ],
    "outbounds":[
        {
            "type":"direct",
            "tag":"direct"
        },
        {
            "type":"direct",
            "tag":"warp-IPv4-out",
            "detour":"wireguard-out",
            "domain_strategy":"ipv4_only"
        },
        {
            "type":"direct",
            "tag":"warp-IPv6-out",
            "detour":"wireguard-out",
            "domain_strategy":"ipv6_only"
        },
        {
            "type":"wireguard",
            "tag":"wireguard-out",
            "server":"162.159.192.1",
            "server_port":2408,
            "local_address":[
                "172.16.0.2/32",
                "2606:4700:110:8a36:df92:102a:9602:fa18/128"
            ],
            "private_key":"YFYOAdbw1bKTHlNNi+aEjBM3BO7unuFC5rOkMRAz9XY=",
            "peer_public_key":"bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=",
            "reserved":[
                78,
                135,
                76
            ],
            "mtu":1280
        }
    ],
    "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":[
            {
                "geosite":[
                    "openai"
                ],
                "outbound":"warp-IPv6-out"
            }
        ]
    }
}