Created
November 11, 2020 11:43
-
-
Save xiaokangwang/17fd100bca6bbb22b9ca110919bfed0d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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