ุงูุฎุงุฏู
ุงููููู ูู ูุณูุท ุจูู ุงูุนู
ูู ูุงูุฎุงุฏู
. ููุชุญุงูู ุนูู ุงููููุฏ ุ ูุฌุจ ุชุซุจูุช ุฎุงุฏู
ูููู ุญูุซ ูุง ุชูุฌุฏ ูููุฏ ุนูู ุงููุตูู ุฅูู ุงูู
ุนููู
ุงุช ุงูู
ุทููุจุฉ ุ ูู ุญูู ูุง ููุจุบู ุฃู ุชููู ููุงู ู
ุซู ูุฐู ุงููููุฏ ุจูู ุงูุนู
ูู ูุงูุฎุงุฏู
ุงููููู.

ุฏุนู
ูููู ู
ุญุฏุซ ูุนู
ูุงุก Telegram
- ูููู MTProto ุงูุฌุฏูุฏ. ูุนู
ู ู
ุน MTProto ุจุฑูุชูููู Telegram ุงูุฃุตูู
- GitHub ุฎุงุฏู
ู
ูุชูุญ ุงูู
ุตุฏุฑ
- ุตูุฑุฉ ุนุงู
ู ุงูู
ููุงุก ุนูู DockerHub
- ูู ุงูุฃุฌูุฒุฉ ุงูู
ุญู
ููุฉ ุ ุฃุตุจุญ ู
ู ุงูู
ู
ูู ุฅุถุงูุฉ ุงูุนุฏูุฏ ู
ู ุงููููุงุก ู
ู ูู ููุน. ูู
ูู ููู
ุณุชุฎุฏู
ุงุฎุชูุงุฑ ุงูุฃูุณุจ

ูููู MTProto
- ูุนู
ู MTProto-proxy ููุท ู
ุน Telegram
- ูุง ููุฌุฏ ูุฏู ุงูุนู
ูู ูุงูุฎุงุฏู
ู
ุฑุญูุฉ ุชุจุงุฏู ู
ุนููู
ุงุช ู
ูุชูุญุฉ
- ูู ุชูููุฐ ุฎุงุฏู
MTProto-proxy ู
ู Telegram ุ ูุง ูู
ุชูู ุงูุฎุงุฏู
ุงููููู ูู
ุงููู ูุตููุงู ู
ุจุงุดุฑูุง ุฅูู ุงูู
ุนููู
ุงุช ุงููุตููุฉ ูุจุฑูุชูููู MTProxy (ุชุณุฌููุงุช ุงูุฏุฎูู ุนูู ุณุจูู ุงูู
ุซุงู).
- ุจุงููุณุจุฉ ุฅูู ุฌู
ูุน ุฃููุงุน ุงูููุงุชุฑ ูุงูู
ุญููุงุช ุ ูุจุฏู ุชุจุงุฏู ุงูุจูุงูุงุช ู
ุน ุฎุงุฏู
MTProto-proxy ุจู
ุซุงุจุฉ ุฏูู ุจูุงูุงุช ุซูุงุฆู ุงูุงุชุฌุงู ุบูุฑ ู
ูุธู
ุจูู ุงูุนู
ูู ูุงูุฎุงุฏู
. ููุฐุง ูุฌุนู ู
ู ุงูุตุนุจ ุชุญุฏูุฏ ุงูุชุนุฑู ุนูู ุงูุจุฑูุชูููู.
ุจุฏุงูุฉ ุณุฑูุนุฉ
ูุจุฏุก ุชุดุบูู ุฎุงุฏู
ูููู MTProto ุงูุฎุงุต ุจู ุ ูุง ููุฒู
ุณูู ุฌูุงุฒ ู
ุซุจุช ุนููู
Docker ูุงููุตูู ุฅูู ุงูุดุจูุฉ. ูุฌุจ ุฃูุง ูููู ููุงู ุฃู ุดูุก ุนูู ุงูู
ููุฐ 443 (nginx ุ apache). ูู ุงูุจุฏุงูุฉ ุงูุฃููู ููุฎุงุฏู
ุงููููู ุ ุณูุชู
ุฅูุดุงุก ู
ูุชุงุญ ุณุฑู ุ ุณูุชู
ุชุฐูุฑู. ูุนู
ู ุจุฃู
ุฑ ูุงุญุฏ:
$ docker run -d --net=host --name=mtproto-proxy --restart=always \
-v proxy-config:/data telegrammessenger/proxy
:
$ docker logs mtproto-proxy
[+] Using the explicitly passed secret: 'b7e70329dcf3721c4239b86ad32a90b8'.
[+] Saving it to /data/secret.
[*] Final configuration:
[*] Secret 1: b7e70329dcf3721c4239b86ad32a90b8
[*] tg:// link for secret 1 auto configuration: : tg://proxy?server=81.177.103.94&port=443&secret=b7e70329dcf3721c4239b86ad32a90b8
[*] t.me link for secret 1: tg://proxy?server=81.177.103.94&port=443&secret=b7e70329dcf3721c4239b86ad32a90b8
[*] Tag: no tag
[*] External IP: 81.177.103.94
[*] Make sure to fix the links in case you run the proxy on a different port.
, - ยซยป , IP .
SECRET:
$ docker run -d --net=host --name=mtproto-proxy --restart=always \
-v proxy-config:/data -e SECRET=b7e70329dcf3721c4239b86ad32a90b8 \
telegrammessenger/proxy
- ( ) ( 16). , : boss, managers, users. . ( ) , . ? . . .
:
$ docker run -d --net=host --name=mtproto-proxy --restart=always \
-v proxy-config:/data -e SECRET=b7e70329dcf3721c4239b86ad32a90b8,afccd434fb32248f29f033b189bd8541,878397a50627deb349d4c296bd9dc3c2 \
telegrammessenger/proxy
SECRET_COUNT ( 16):
$ docker run -d --net=host --name=mtproto-proxy --restart=always \
-v proxy-config:/data -e SECRET_COUNT=5 telegrammessenger/proxy
, , Linux:
# busybox:
$ tr -dc 'a-f0-9' < /dev/urandom | dd bs=1 count=32 2>/dev/null
$ hexdump -n 16 -e '4/4 "%08x" 1 "\n"' /dev/random # hexdump
$ openssl rand -hex 16 # openssl
- . 60000 . - ( , ). WORKERS. , :
$ docker run -d --net=host --name=mtproto-proxy --restart=always \
-v proxy-config:/data -e WORKERS=16 telegrammessenger/proxy
--net=host
. IPv6 , , proxy-server.
, , :
$ docker run -d -p443:443 --name=mtproto-proxy --restart=always \
-v proxy-config:/data telegrammessenger/proxy
- , :
$ docker run -d -p8443:443 --name=mtproto-proxy --restart=always \
-v proxy-config:/data telegrammessenger/proxy:latest
, - ยซยป , .
MTProto- . localhost:
http://localhost:2398/stats
.
- docker
--net=host
:
curl http://localhost:2398/stats
, , , nginx - . - docker :
$ docker exec mtproto-proxy curl http://localhost:2398/stats
:
- ready_targets โ Telegram, c -
- active_targets โ Telegram ( ready_targets)
- total_special_connections โ
- total_max_special_connections โ
Telegram - Promoted-. Promoted- โ , -. -.
Promoted-
@MTProxybot TAG :
$ docker run -d --net=host --name=mtproto-proxy --restart=always \
-v proxy-config:/data -e TAG=85174e9e0ffa43c0d3a7167e52175268 \
telegrammessenger/proxy:latest
, .
Promoted- , -. , .

-
MTProto- , - :
$ docker pull telegrammessenger/proxy #
$ docker stop mtproto-proxy #
$ docker rm mtproto-proxy #
$ docker run .... #
$ docker logs -f --tail=30 mtproto-proxy #
Docker Compose
docker-compose.yml:
version: '3.0'
services:
mtproxy:
image: telegrammessenger/proxy:latest
hostname: mtproxy
container_name: mtproxy.local
volumes:
- proxy-config:/data
network_mode: "host"
logging:
driver: syslog
options:
tag: mtproxy
restart: always
volumes:
proxy-config:
external: true
Promoted- TAG.
- c Docker Compose
$ docker-compose pull mtproxy #
$ docker-compose up -d #
$ docker-compose logs -f --tail=30 mtproxy #