Skip to content

Instantly share code, notes, and snippets.

@KevinMX
Created December 1, 2022 11:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KevinMX/aa3153532c0233902eef03be323fdf9e to your computer and use it in GitHub Desktop.
Save KevinMX/aa3153532c0233902eef03be323fdf9e to your computer and use it in GitHub Desktop.
[experimental] sing-box Shadowsocks 2022 Edition with Cloudflare Warp outbound for geo{ip,site}:cn
{
"log": {
"level": "warning"
},
"dns": {
"servers": [
{
"address": "tls://1.1.1.1"
}
]
},
"inbounds": [
{
"type": "shadowsocks",
"listen": "::",
"listen_port": $port,
"sniff": true,
"method": "2022-blake3-aes-128-gcm",
"password": "$(openssl rand -base64 16)"
}
],
"outbounds": [
{
"type": "direct",
"tag": "direct"
},
{
"type": "block",
"tag": "block"
},
{
"type": "dns",
"tag": "dns-out"
},
{
"type": "wireguard",
"tag": "wgcf",
"server": "engage.cloudflareclient.com", //change to your server address
"server_port": $wg_port, //change to your server port
"system_interface": false,
"local_address": [
"10.0.0.2/32"
],
"private_key": "$private_key",
"mtu": 1280,
"peer_public_key": "$peer_public_key"
}
],
"route": {
"rules": [
{
"protocol": "dns",
"outbound": "dns-out"
},
{
"geosite": "cn",
"geoip": "cn",
"outbound": "wgcf"
},
{
"geoip": "google",
"geosite": "google",
"outbound": "direct"
}
],
"geoip": {
"path": "",
"download_url": "https://github.com/1715173329/sing-geoip/releases/latest/download/geoip.db",
"download_detour": "direct"
},
"geosite": {
"path": "",
"download_url": "https://github.com/1715173329/sing-geosite/releases/latest/download/geosite.db",
"download_detour": "direct"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment