Skip to content

Instantly share code, notes, and snippets.

@xiaokangwang
Created November 11, 2020 11:43
Show Gist options
  • Save xiaokangwang/17fd100bca6bbb22b9ca110919bfed0d to your computer and use it in GitHub Desktop.
Save xiaokangwang/17fd100bca6bbb22b9ca110919bfed0d to your computer and use it in GitHub Desktop.
{
"log": {
"loglevel": "debug"
},
"inbounds": [
{
"port": 12345,
"listen": "127.0.0.1",
"protocol": "socks",
"settings": {
"udp": true,
"ip": "127.0.0.1"
},
"sniffing": {
"enabled": true,
"destOverride": [
"fakedns"
],
"metadataOnly": true
}
}
],
"outbounds": [
{
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "[YOUR DOMAIN]",
"port": 12345,
"users": [
{
"id": "[YOUR UUID]"
}
]
}
]
},
"streamSettings": {
"network": "tcp",
"security": "none",
"wsSettings": {
"path": ""
}
},
"mux": {
"enabled": false,
"concurrency": 8
}
},
{
"protocol": "dns",
"settings": {
},
"tag": "fakedns"
},
{
"protocol": "blackhole",
"settings": {
},
"tag": "discard"
}
],
"dns": {
"fake": true
},
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"port": "53",
"outboundTag": "fakedns"
},
{
"type": "field",
"ip": [
"240.0.0.0/8"
],
"outboundTag": "discard"
}
],
"balancers": []
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment