Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MTProxy2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
MTProxy2
Commits
e5d31faf
Unverified
Commit
e5d31faf
authored
May 30, 2018
by
vysheng
Committed by
GitHub
May 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README
parent
cc7b7097
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
17 deletions
+19
-17
README
README
+19
-17
No files found.
README
View file @
e5d31faf
to build simply run 'make'. Your binary will be objs/bin/mtproto-proxy
to build
,
simply run 'make'. Your binary will be objs/bin/mtproto-proxy
to run mtproto-proxy:
to run mtproto-proxy:
1. Obtain
secret, which is
used to connect to telegram servers.
1. Obtain
a secret,
used to connect to telegram servers.
curl -s https://digitalresistance.dog/getSecret -o proxy-secret
curl -s https://digitalresistance.dog/getSecret -o proxy-secret
2. Obtail current telegram configuration. It can
(rarely) change
, so we encourage you to update it once per day.
2. Obtail current telegram configuration. It can
change (occasionally)
, so we encourage you to update it once per day.
curl -s https://digitalresistance.dog/getConfig -o proxy-multi.conf
curl -s https://digitalresistance.dog/getConfig -o proxy-multi.conf
3. Generate
secret, which is used by users to connect to
proxy
3. Generate
a secret to be used by users to connect to your
proxy
head -c 16 /dev/urandom | xxd -ps
head -c 16 /dev/urandom | xxd -ps
4. Run mtproto-proxy
4. Run mtproto-proxy
mtproto-proxy -u nobody -p 8888 -H 443 -S <secret> --aes-pwd proxy-secret proxy-multi.conf -M 1
mtproto-proxy -u nobody -p 8888 -H 443 -S <secret> --aes-pwd proxy-secret proxy-multi.conf -M 1
where:
where:
- nobody is user name. mtproto-proxy calls setuid() to drop privilegies
- nobody is
the
user name. mtproto-proxy calls setuid() to drop privilegies
- 443 is
port, used by clients to connect to
proxy
- 443 is
the port, used by clients to connect to the
proxy
- 8888 is local port. You can use it to get statistics from mtproto. Like wget localhost:8888/stats
- 8888 is
the
local port. You can use it to get statistics from mtproto. Like wget localhost:8888/stats
You can only get this stat via loopback
You can only get this stat via loopback
- <secret> is
secret generated on
step 3.
- <secret> is
the secret generated at
step 3.
- proxy-secret and proxy-multi.conf are obtain
s on
steps 1 and 2
- proxy-secret and proxy-multi.conf are obtain
ed at
steps 1 and 2
- 1 is
number of workers. You can increase number of workers, if you have
powerful server
- 1 is
the number of workers. You can increase the number of workers, if you have a
powerful server
- also feel free to
look on other options in
mtproto-prodxy help
- also feel free to
check out other options using
mtproto-prodxy help
5. generate link tg://proxy?server=SERVER_NAME&port=443&secret=SECRET
5. generate
the
link tg://proxy?server=SERVER_NAME&port=443&secret=SECRET
6. enjoy
6. register your proxy with @MTProxybot on Telegram.
7. enjoy
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment