Skip to content

Commit 89158a2

Browse files
authored
Update README.md
1 parent 1f3c97c commit 89158a2

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
[![Latest Stable Version](https://poser.pugx.org/p1ratrulezzz/mtproxy-server-linux/v/stable)](https://packagist.org/packages/p1ratrulezzz/mtproxy-server-linux)
44
[![Latest Unstable Version](https://poser.pugx.org/p1ratrulezzz/mtproxy-server-linux/v/unstable)](https://packagist.org/packages/p1ratrulezzz/mtproxy-server-linux)
55

6-
Easy install for experienced users
7-
8-
```bash
9-
composer require p1ratrulezzz/mtproxy-server-linux ^0.1.0
10-
```
11-
126
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!
137
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.
148

@@ -23,7 +17,8 @@ The initial daemon file is in https://github.com/danog/MadelineProto (don't forg
2317

2418
```bash
2519
apt-get update
26-
apt-get install php7.0-cli php7.0-xml php7.0-curl php7.0-opcache
20+
apt-get install php7.0-cli php7.0-xml php7.0-curl php7.0-opcache php7.0-zip
21+
apt-get install composer
2722
```
2823

2924
2. Create mtproxy user
@@ -34,35 +29,40 @@ The initial daemon file is in https://github.com/danog/MadelineProto (don't forg
3429

3530
Note: password you set doesn't matter
3631

37-
3. Create a directory for proxy daemon
32+
3. Download a package into /opt folder
3833

3934
```bash
40-
mkdir /opt/mtproto-proxy
35+
cd /opt/
36+
composer require p1ratrulezzz/mtproxy-server-linux ^0.1.0
37+
sh vendor/p1ratrulezzz/mtproxy-server-linux/install.sh
4138
``
4239

43-
4. Download and run proxy for the first time
40+
After that you will see that the directory /opt/mtproto-proxy has been created.
41+
42+
4. Run proxy for the first time
4443

4544
```bash
4645
cd /opt/mtproto-proxy
47-
wget -O mtproxyd 'https://raw.githubusercontent.com/p1ratrulezzz/mtproxy-server-linux/master/opt/mtproto-proxy/mtproxyd'
4846
chmod +x mtproxyd
4947
./mtproxyd marcopolo 6666
5048
```
5149
6666 - is the port to listen on
52-
marcopolo - is the seed to generate hashes. Its is not safe to leave it this way, replace it with your secret seend. Better to use one of the generated from (Random.org)[https://www.random.org/passwords/?num=5&len=16&format=html&rnd=new]. It might ask you to login using your existing telegram account. This is ok, just enter your phone number and then an autorization code that you will get via Telegram. This is just a one time setup.
50+
marcopolo - is the seed to generate hashes. It is safe to leave it this way as created hash will be random anyway. But it is better toset your own seed and use for that the one of the generated from [Random.org](https://www.random.org/passwords/?num=5&len=16&format=html&rnd=new) password of any length. It might ask you to login using your existing telegram account. This is ok, just enter your phone number and then an autorization code that you will get via Telegram. This is just a one time setup.
5351

5452
You will see that daemon is running and it will create a file secret.txt.
5553

5654
```
5755
cat secret.txt
5856
```
5957
58+
Note: you can manualy create this file and write your own 32 character string in it. In this case it won't be rewritten.
59+
6060
it will show you your secret password for connecting to your proxy. Something like:
6161
```
6262
abcdefghihfhasfasfsfsgfagasg
6363
```
6464
65-
abcdefghihfhasfasfsfsgfagasg - is the Secret (some kind of a password) used to auth on your proxy server. Keep this in secret, copy to some place.
65+
abcdefghihfhasfasfsfsgfagasg - is the 32 characters secret (some kind of a password) used to auth on your proxy server. This password will be written to secret.txt file and you always can reveal it if you have root access.
6666
6767
Now press Ctrl+C to terminate the proxy process.
6868
@@ -113,7 +113,7 @@ Note: you should edit the file /etc/init.d/mtproxy and set your own seed and por
113113
(use Alpha release as it is the only release availalble that supports MTproto proxies)
114114

115115
Server: your_domain_name_or_ip_address_of_vds_server Port: 6666
116-
Secret: your_secret_from_step_4
116+
Secret: secret_from_secret.txt_file
117117

118118
Note: ip address of VDS/VPS server can be revealed by running a command
119119

0 commit comments

Comments
 (0)