Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ancientGlider/27fd1399ce693082214f441778968c23 to your computer and use it in GitHub Desktop.

Select an option

Save ancientGlider/27fd1399ce693082214f441778968c23 to your computer and use it in GitHub Desktop.
Planet HAPP test v2: like v1 but plain UDP-DNS (isolates TCP-vs-UDP under Vision)
[
{
"remarks": "Planet v2 UDP-DNS+routeOnly",
"log": {
"loglevel": "warning"
},
"policy": {
"levels": {
"8": {
"handshake": 4,
"connIdle": 300
}
},
"system": {
"statsOutboundUplink": true,
"statsOutboundDownlink": true
}
},
"dns": {
"servers": [
"8.8.8.8",
"1.1.1.1",
{
"address": "77.88.8.8",
"domains": [
"regexp:.*\\.ru$",
"regexp:.*\\.su$"
]
}
],
"queryStrategy": "UseIPv4"
},
"inbounds": [
{
"tag": "socks-in",
"port": 10808,
"listen": "127.0.0.1",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"userLevel": 8
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls",
"quic"
],
"routeOnly": true
}
}
],
"outbounds": [
{
"tag": "proxy",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "195.66.87.45",
"port": 443,
"users": [
{
"id": "7122d062-b661-4734-8f83-fe919171a4dd",
"encryption": "none",
"flow": "xtls-rprx-vision",
"level": 8
}
]
}
]
},
"streamSettings": {
"network": "tcp",
"security": "reality",
"realitySettings": {
"show": false,
"fingerprint": "chrome",
"serverName": "www.microsoft.com",
"publicKey": "aTISLtHmZNxo7DB4BJUcEfcKprmWT3hj61IMFfxOOFU",
"shortId": "deadbeef",
"spiderX": ""
}
}
},
{
"tag": "direct",
"protocol": "freedom",
"settings": {}
},
{
"tag": "dns-out",
"protocol": "dns",
"settings": {}
},
{
"tag": "block",
"protocol": "blackhole",
"settings": {}
}
],
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"ip": [
"8.8.8.8",
"1.1.1.1"
],
"port": 53,
"outboundTag": "proxy"
},
{
"type": "field",
"ip": [
"77.88.8.8"
],
"port": 53,
"outboundTag": "direct"
},
{
"type": "field",
"port": 53,
"outboundTag": "dns-out"
},
{
"type": "field",
"ip": [
"195.66.87.45/32"
],
"outboundTag": "direct"
},
{
"type": "field",
"ip": [
"geoip:private"
],
"outboundTag": "direct"
},
{
"type": "field",
"domain": [
"regexp:.*\\.ru$",
"regexp:.*\\.su$"
],
"outboundTag": "direct"
},
{
"type": "field",
"ip": [
"geoip:ru"
],
"outboundTag": "direct"
}
]
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment