Skip to content

ndugram/MTProto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MTProto Proxy Installer

A production-ready one-command installer for MTProto Telegram proxy.

Description

This tool automates the complete setup of an MTProto proxy server. It handles all dependencies, generates secure configuration, and deploys a systemd service for automatic startup.

Requirements

  • Ubuntu 18.04+ or Debian 9+
  • Root access
  • Internet connection

Installation

git clone https://github.com/ndugram/MTProto
cd MTProto
sudo bash setup.sh

Example Output

========================================
   MTProto Proxy Installer
========================================

[+] Starting installation process...
[+] Checking system...
[+] OS detected: Ubuntu 22.04 LTS
[+] Checking dependencies...
[+] Dependencies check completed
[+] Detecting network...
[+] Public IP detected: 203.0.113.42
[+] Installing proxy binary...
[+] MTProto proxy installed successfully
[+] Generating configuration...
[+] Configuration generated
[+] Creating system service...
[+] Systemd service created and enabled
[+] Configuring firewall...
[+] Firewall configuration completed
[+] Starting service...
[+] Service started successfully
[+] Installation completed!

========================================
   Proxy Connection Link
========================================

tg://proxy?server=203.0.113.42&port=23456&secret=a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6

Service status: active

Connection

Click the generated link to connect via Telegram:

tg://proxy?server=YOUR_IP&port=YOUR_PORT&secret=YOUR_SECRET

Or manually configure in Telegram:

  • Server IP: The public IP shown after installation
  • Port: The port shown after installation
  • Secret: The secret shown after installation

Management Commands

# Check service status
sudo systemctl status mtproto-proxy

# Restart service
sudo systemctl restart mtproto-proxy

# Stop service
sudo systemctl stop mtproto-proxy

# View logs
sudo journalctl -u mtproto-proxy -f

Security Notes

  • The secret is cryptographically random
  • Port is automatically selected to avoid conflicts
  • Service auto-restarts on failure
  • Firewall rules are configured automatically

Support

For issues or questions, please open a GitHub issue.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages