Skip to content

Instantly share code, notes, and snippets.

@0polar
Last active January 6, 2023 15:24
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 0polar/cf0420c87cb83f203f93a781e2467fd8 to your computer and use it in GitHub Desktop.
Save 0polar/cf0420c87cb83f203f93a781e2467fd8 to your computer and use it in GitHub Desktop.
v2ray config simplified
{
"log": {
"loglevel": "warning"
},
"inbounds": [{
"port": 1080,
"protocol": "socks",
"settings": {
"auth": "noauth"
}
}],
"outbounds": [{
"protocol": "vmess",
"settings": {
"vnext": [{
"address": "***.***.***.***",
"port": 666,
"users": [{
"id": "********-****-****-****-************",
"alterId": 16
}]
}]
},
"streamSettings": {
"network": "mkcp",
"kcpSettings": {
"uplinkCapacity": 5,
"downlinkCapacity": 10,
"congestion": true,
"header": {
"type": "none"
}
}
}
}]
}
{
"log": {
"loglevel": "warning"
},
"inbounds": [{
"port": 1080,
"protocol": "socks",
"settings": {
"auth": "noauth"
}
}],
"outbounds": [{
"protocol": "vmess",
"settings": {
"vnext": [{
"address": "domain.name",
"port": 443,
"users": [{
"id": "********-****-****-****-************",
"alterId": 0,
"security": "none"
}]
}]
},
"streamSettings": {
"network": "ws",
"wsSettings": {
"path": "/pulse"
},
"security": "tls"
},
"mux": {
"enabled": true,
"concurrency": 8
}
}]
}
{
"inbounds": [{
"port": 80,
"protocol": "vmess",
"settings": {
"clients": [{
"id": "********-****-****-****-************",
"alterId": 0
}]
},
"streamSettings": {
"network": "ws",
"wsSettings": {
"path": "/pulse"
}
}
}, {
"port": 666,
"protocol": "vmess",
"settings": {
"clients": [{
"id": "********-****-****-****-************",
"alterId": 16
}]
},
"streamSettings": {
"network": "mkcp",
"kcpSettings": {
"uplinkCapacity": 20,
"downlinkCapacity": 20,
"congestion": true,
"header": {
"type": "none"
}
}
}
}],
"outbounds": [{
"protocol": "freedom",
"sendThrough": "0.0.0.0"
}, {
"protocol": "blackhole",
"tag": "blocked"
}],
"routing": {
"rules": [{
"type": "field",
"ip": ["geoip:private"],
"outboundTag": "blocked"
}]
},
"dns": {
"servers": ["8.8.8.8", "8.8.4.4"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment