Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
er
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
er
Commits
e559b461
Unverified
Commit
e559b461
authored
Jun 09, 2019
by
Sergey Prokhorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Version bump to 0.5.0
parent
a9701a3a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
README.md
README.md
+14
-2
mtproto_proxy.app.src
src/mtproto_proxy.app.src
+3
-3
No files found.
README.md
View file @
e559b461
...
@@ -11,12 +11,13 @@ Features
...
@@ -11,12 +11,13 @@ Features
to prevent detection by DPI
to prevent detection by DPI
*
Secure-only mode (only allow connections with 'dd'-secrets). See
`allowed_protocols`
option.
*
Secure-only mode (only allow connections with 'dd'-secrets). See
`allowed_protocols`
option.
*
Multiple ports with unique secret and promo tag for each port
*
Multiple ports with unique secret and promo tag for each port
*
Automatic configuration reload (no need for restarts once per day)
*
Most of the configuration options can be updated without service restart
*
Very high performance - can handle tens of thousands connections! Scales to all CPU cores.
*
Very high performance - can handle tens of thousands connections! Scales to all CPU cores.
1Gbps, 90k connections on 4-core/8Gb RAM cloud server.
*
Supports multiplexing (Many connections Client -> Proxy are wrapped to small amount of
*
Supports multiplexing (Many connections Client -> Proxy are wrapped to small amount of
connections Proxy -> Telegram Server)
connections Proxy -> Telegram Server)
*
Protection from
[
replay attacks
](
https://habr.com/ru/post/452144/
)
used to detect proxies in some countries
*
Protection from
[
replay attacks
](
https://habr.com/ru/post/452144/
)
used to detect proxies in some countries
*
Automatic telegram configuration reload (no need for restarts once per day)
*
Most of the configuration options can be updated without service restart
*
Small codebase compared to official one
*
Small codebase compared to official one
*
A lots of metrics could be exported (optional)
*
A lots of metrics could be exported (optional)
...
@@ -270,6 +271,17 @@ it will use less CPU and will be better protected from replay attacks, but will
...
@@ -270,6 +271,17 @@ it will use less CPU and will be better protected from replay attacks, but will
max_age_minutes
=>
1440
}},
max_age_minutes
=>
1440
}},
```
```
Also, for highload setups it's recommended to increase sysctl parameters:
```
sudo sysctl net.ipv4.tcp_max_orphans=128000
sudo sysctl 'net.ipv4.tcp_mem=179200 256000 384000'
```
Values for
`tcp_mem`
are in pages. Size of one page can be found by
`getconf PAGESIZE`
and is most
likely 4kb.
Helpers
Helpers
-------
-------
...
...
src/mtproto_proxy.app.src
View file @
e559b461
{application, mtproto_proxy,
{application, mtproto_proxy,
[{description, "
An OTP application
"},
[{description, "
High-performance Telegram MTProto proxy server
"},
{vsn, "0.
4.1-mux
"},
{vsn, "0.
5.0
"},
{registered, []},
{registered, []},
{mod, { mtproto_proxy_app, []}},
{mod, { mtproto_proxy_app, []}},
{applications,
{applications,
...
@@ -139,5 +139,5 @@
...
@@ -139,5 +139,5 @@
{maintainers, []},
{maintainers, []},
{licenses, ["Apache 2.0"]},
{licenses, ["Apache 2.0"]},
{links, []}
{links, [
{"GitHub", "https://github.com/seriyps/mtproto_proxy"}
]}
]}.
]}.
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