1.8 KiB
1.8 KiB
Telemt - MTProxy on Rust + Tokio
Telemt is a fast, secure, and feature-rich server written in Rust It fully implements the official Telegram proxy algo and adds many production-ready improvements such as connection pooling, replay protection, detailed statistics, masking from "prying" eyes
GOTO
Features
- Full support for all official MTProto proxy modes:
- Classic
- Secure - with
ddprefix - Fake TLS - with
eeprefix + SNI fronting
- Replay attack protection
- Optional traffic masking: forward unrecognized connections to a real web server, e.g. GitHub 🤪
- Configurable keepalives + timeouts + IPv6 and "Fast Mode"
- Graceful shutdown on Ctrl+C
- Extensive logging via
traceanddebugwithRUST_LOGmethod
Quick Start Guide
Build
# Cloning repo
git clone https://github.com/telemt/telemt
# Changing Directory to telemt
cd telemt
# Starting Release Build
cargo build --release
# Move to /bin
mv ./target/release/telemt /bin
# Make executable
chmod +x /bin/telemt
# Lets go!
telemt config.toml
How to use?
Telemt via Systemd
- Place your config to /etc/telemt.toml
- Create service on /etc/systemd/system/telemt.service
[Unit]
Description=Telemt
After=network.target
[Service]
Type=simple
WorkingDirectory=/bin
ExecStart=/bin/telemt /etc/telemt.toml
Restart=on-failure
[Install]
WantedBy=multi-user.target
- In Shell type
systemctl start telemt- it must start with zero exit-code - In Shell type
systemctl status telemt- there you can reach info about current MTProxy status - In Shell type
systemctl enable telemt- then telemt will start with system startup, after the network is up