sing-box
1 min read
The universal proxy platform.
configuration
reality
{
"log": {
"level": "info",
"timestamp": true
},
"dns": {
"servers": [
{
"type": "tls",
"tag": "dns-out",
"server": "8.8.8.8"
}
],
"strategy": "ipv4_only"
},
"inbounds": [
{
"type": "vless",
"tag": "vless-in",
"listen": "::",
"listen_port": 443,
"sniff": true,
"users": [
{
"name": "wjy",
"uuid": "", // sing-box generate uuid
"flow": "xtls-rprx-vision"
}
],
"tls": {
"enabled": true,
"server_name": "gateway.icloud.com",
"reality": {
"enabled": true,
"handshake": {
"server": "gateway.icloud.com",
"server_port": 443
},
"private_key": "", // sing-box generate reality-keypair
"short_id": [""] // sing-box generate rand --hex 8
}
}
}
],
"outbounds": [
{
"type": "direct",
"tag": "direct-out"
}
],
"route": {
"rules": [
{
"action": "sniff"
},
{
"protocol": "dns",
"action": "hijack-dns"
}
],
"default_domain_resolver": "dns-out"
}
}