Hướng dẫn Cài Docker & Chạy MTProxy bằng Docker 2025

DonAnh

Newbie
Joined
Feb 5, 2018
Messages
10
Reactions
9
MR
1.118

🔧 Bước 1: Cài Docker (nếu chưa có)​


Code:
sudo apt update
sudo apt install -y docker.io
sudo systemctl enable docker
sudo systemctl start docker

Xác nhận đã cài:

docker --version

🧪 Bước 2: Tạo secret (bạn có thể dùng sẵn hoặc random như sau)​


Code:
SECRET=$(openssl rand -hex 16)
echo "Secret: $SECRET"

Ví dụ nó in ra: 9f1a2b3c4d5e6f7890abcdef12345678

🧱 Bước 3: Chạy container MTProto Proxy​


Code:
docker run -d --name mtproxy \
  --restart=always \
  -p 443:443 \
  -e SECRET=9f1a2b3c4d5e6f7890abcdef12345678\
  -e TAG=00000000000000000000000000000000 \
  -e WORKERS=1 \
  telegrammessenger/proxy

Nhớ thay SECRET

✅ TAG là optional nếu bạn không cần tracking từ Telegram, bạn có thể dùng 000...0 như trên. Nếu bạn cần mình hướng dẫn lấy TAG đúng thì báo nhé.

🔗 Bước 4: Tạo link truy cập Telegram​


Giả sử IP VPS là 103.150.12.34, thì link truy cập proxy là:

https://t.me/proxy?server=103.150.12.34&port=443&secret=ee9f1a2b3c4d5e6f7890abcdef12345678
hoặc
tg://proxy?server=103.150.12.34&port=443&secret=9f1a2b3c4d5e6f7890abcdef12345678

image.png
 

Announcements

Forum statistics

Threads
435,200
Messages
7,334,646
Members
186,648
Latest member
LinhD
Back
Top Bottom