Skip to content

Instantly share code, notes, and snippets.

@haruue
Last active February 24, 2024 03:36
Show Gist options
  • Save haruue/072a547707475139ed69b801126c863d to your computer and use it in GitHub Desktop.
Save haruue/072a547707475139ed69b801126c863d to your computer and use it in GitHub Desktop.
using v2ray as sniproxy
{
"log": {},
"inbounds": [
{
"protocol": "dokodemo-door",
"listen": "10.11.5.2",
"port": 80,
"settings": {
"address": "255.255.255.254",
"port": 80,
"network": "tcp",
"timeout": 300
},
"sniffing": {
"enabled": true,
"destOverride": [
"http"
],
"metadataOnly": false
}
},
{
"protocol": "dokodemo-door",
"listen": "10.11.5.2",
"port": 443,
"settings": {
"address": "255.255.255.254",
"port": 443,
"network": "tcp,udp",
"timeout": 300
},
"sniffing": {
"enabled": true,
"destOverride": [
"tls", "quic"
],
"metadataOnly": false
}
}
],
"outbounds": [
{
"protocol": "freedom",
"tag": "direct"
},
{
"protocol": "blackhole",
"tag": "block"
}
],
"routing": {
"domainStrategy": "AsIs",
"domainMatcher": "mph",
"rules": [
{
"type": "field",
"ip": [ "255.255.255.254" ],
"network": "tcp,udp",
"outboundTag": "block"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment