Download the PHP package p1ratrulezzz/mtproxy-server-linux without Composer
On this page you can find all versions of the php package p1ratrulezzz/mtproxy-server-linux. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download p1ratrulezzz/mtproxy-server-linux
More information about p1ratrulezzz/mtproxy-server-linux
Files in p1ratrulezzz/mtproxy-server-linux
Package mtproxy-server-linux
Short Description Proxy server for MTProto (Telegram)
License AGPL-3.0
Informations about the package mtproxy-server-linux
MTProxy Server for Telegram clients
This is just a useful scripts for setting up your own mtprotocol proxy for telegram. Note: this proxy once created can be used by other users who you shared this proxy with and it doesn't give them access to your account, so its completely safe to use it and share with friends! Plus: Sponsored channels are coming. That means that your proxy can force your users to subscribe to some channel. This can be as a motivation to setup such a proxy.
Testing MTProto proxy servers
Python - HIGHLY RECOMMENDED!!!
Supports channel advertising, fully supports ipv6 and the easiest to installl!
Note: Requires to install python3 and python3-crypto packages via apt-get Installation of docker version: https://p1ratrulezzz.me/2018/06/eshhe-odin-variant-mtproto-proxy-s-reklamoj.html
Installation on CentOS (automatic): Check the tutorial in repo https://github.com/HirbodBehnam/MTProtoProxyCentOSInstall and don't forget to star.
Easy install on CentOS command
Installation on Ubuntu/Debian:
Repo: https://github.com/alexbers/mtprotoproxy (Star this repo and share with friends)
C (Official Telegram MTProxy)
Opinions: Difficult to install. Great use of resources, supports channel advertising, works stable if was successfully installed. Doesn't work on some servers expecially on servers located at Russia (even using VPN). I do not recommend to install unless you want to advertise your channel (in this case it's better to use Python version anyway).
Note: It is a very first version so it can be quite tricky to make it work, though it is possible. Also check my fork with tutorials here https://github.com/p1ratrulezzz/MTProxy-1 and here https://p1ratrulezzz.me/2018/06/creating-your-own-official-mtproto-proxy-with-channel-promotion-very-easy-way.html
Repo: https://github.com/TelegramMessenger/MTProxy
And yes. This server does have an ability to set promoted channel (check my forked repo and blogpost for tutorial)
PHP (this repo)
Note: there is an issue with Android clients. It's impossible to send messages. Desktop clients work great.
Pleae, test the servers above to gather statistics on CPU load and etc. Version 0.1.6 has an issue with creating a lot of zombie forks and killing the server completely. Set memory_limit to 32MB on your server per PHP script to save some resources.
NodeJS
Repo: https://github.com/FreedomPrevails/JSMTProxy
Note: if a lot of people are connected and uploading files, server will suffer from high CPU load
Java
Note: requires JRE 8 or JDK 8. On version 9 and higher won't work.
Repo: https://github.com/makkarpov/mtoxy
Before you start installation
Some VPS providers are blocking Telegram connections from their servers. Here is the list of these services and it will be filled in during some time, but for now there are already these ones:
- OVH
- IPhoster
Don't use these providers for your MTProto proxy server.
Installation
The initial daemon file is in https://github.com/danog/MadelineProto (don't forget to Star this repo)
Tutorial for Ubuntu 16.04 Server
- Loggining in via SSH to your VDS as root
-
Install requirements
- Create mtproxy user
Note: password you set doesn't matter
- Download a package into /opt folder
bash cd /opt/mtproto-proxy chmod +x mtproxyd ./mtproxyd marcopolo 6666
cat secret.txt
38f75d6bb9f8138e53489cf1b7a132ec bash chown -R mtproxy:mtproxy /opt/mtproto-proxy bash wget -O /etc/init.d/mtproxy 'https://raw.githubusercontent.com/p1ratrulezzz/mtproxy-server-linux/master/etc/init.d/mtproxy' chmod +x /etc/init.d/mtproxy systemctl daemon-reload systemctl start mtproxy systemctl enable mtproxy bash systemctl start mtproxy
mtproxy.service - LSB: MTProxy service Loaded: loaded (/etc/init.d/mtproxy; bad; vendor preset: enabled) Active: active (running) since Thu 2018-05-17 21:55:08 UTC; 1 day 9h ago Docs: man:systemd-sysv-generator(8) Process: 16657 ExecStop=/etc/init.d/mtproxy stop (code=exited, status=0/SUCCESS) Process: 16752 ExecStart=/etc/init.d/mtproxy start (code=exited, status=0/SUCCESS) Tasks: 14 Memory: 55.3M CPU: 1min 14.837s CGroup: /system.slice/mtproxy.service
bash curl ipinfo.io/ip
ifconfig
## Other proxy server implementations
Check this account https://github.com/mtProtoProxy to see all the MTProto proxy implementations.
It is possible to use daemon script from this repo to integrate with any of these servers (except nodejs, for nodejs use pm2 upstart)
Java implementation: https://github.com/makkarpov/mtoxy
## Another version of installator for MTProxy (madeline driven)
Check the repo: https://github.com/aquigni/MTProxySystemd . It provides an easy-install shell script. It installs the same version of MTProto Proxy as provided in this [repo](https://github.com/danog/MadelineProto)