Server proxy adalah perantara antara klien dan server. Untuk menghindari pembatasan, server proxy harus dipasang di mana tidak ada pembatasan akses ke informasi yang diperlukan, sementara seharusnya tidak ada pembatasan seperti itu antara klien dan server proxy.

Dukungan proxy yang diperbarui untuk klien Telegram
- Proxy MTProto baru. Bekerja dengan protokol asli Telegram MTProto
- GitHub server sumber terbuka
- Gambar Docker di DockerHub
- Klien seluler memiliki kesempatan untuk menambahkan beberapa proksi dari setiap jenis. Pengguna dapat memilih yang paling cocok

Proxy MTProto
- MTProto-proxy hanya berfungsi dengan Telegram
- Klien dan server tidak memiliki fase pertukaran informasi terbuka
- Dalam implementasi server proxy MTProto dari Telegram, server proxy dan pemiliknya tidak memiliki akses langsung ke meta-informasi protokol MTProxy (login, misalnya).
- Untuk semua jenis filter dan analisis, pertukaran data dengan server proxy-MTProto terlihat seperti aliran data dua arah biner yang tidak terstruktur antara klien dan server. Ini membuat pengakuan protokol sulit untuk dibatasi.
Mulai cepat
Untuk memulai server proxy MTProto Anda sendiri, hanya mesin dengan
Docker yang diinstal dan akses jaringan diperlukan. Seharusnya tidak ada apa pun di port 443 (nginx, apache). Pada awal pertama dari server proxy, kunci rahasia akan dibuat, yang akan diingat. Berjalan dengan satu perintah:
$ 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 #