Skip to content

Instantly share code, notes, and snippets.

@hirakujira
Last active January 9, 2023 19:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hirakujira/f4d4acd1c0e4a0d2e478336035b50b15 to your computer and use it in GitHub Desktop.
Save hirakujira/f4d4acd1c0e4a0d2e478336035b50b15 to your computer and use it in GitHub Desktop.
v2ray + MTProto
{
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "warning"
},
"inbound": {
"port": 9487,
"protocol": "vmess",
"settings": {
"clients": [{
"id": "941b5e6c-cefc-4c1b-b533-7f72c06b7d3c",
"level": 1,
"alterId": 0
}]
},
"streamSettings": {
"network": "tcp"
}
},
"outbound": {
"protocol": "freedom",
"settings": {}
},
"inboundDetour": [
{
"tag": "tg-in",
"listen": "0.0.0.0",
"port": 9453,
"protocol": "mtproto",
"settings": {
"users": [{
"secret": "89660732d0dbbff9e652fe2bf8f50186"
}]
}
}
],
"outboundDetour": [{
"tag": "blocked",
"protocol": "blackhole",
"settings": {}
}, {
"tag": "tg-out",
"protocol": "mtproto",
"settings": {}
}],
"routing": {
"strategy": "rules",
"settings": {
"rules": [{
"outboundTag": "blocked",
"type": "field",
"ip": ["geoip:private"]
}, {
"outboundTag": "tg-out",
"type": "field",
"inboundTag": ["tg-in"]
}]
}
}
}
@sadeghhp
Copy link

sadeghhp commented Jan 9, 2023

is it possible to use tag proxy for mtproxy admin bot ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment