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
6a88feb9
Unverified
Commit
6a88feb9
authored
May 20, 2019
by
Сергей Прохоров
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
README updated to reflect replay attack changes
parent
0f4d180a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
README.md
README.md
+25
-0
No files found.
README.md
View file @
6a88feb9
...
@@ -16,6 +16,7 @@ Features
...
@@ -16,6 +16,7 @@ Features
*
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.
*
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
*
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)
...
@@ -243,6 +244,30 @@ You should disable all protocols other than `mtp_secure` by providing `allowed_p
...
@@ -243,6 +244,30 @@ You should disable all protocols other than `mtp_secure` by providing `allowed_p
<
..
>
<
..
>
```
```
### Tune resource consumption
If your server have low amount of RAM, try to set
```
erlang
{
upstream_socket_buffer_size
,
5120
},
{
downstream_socket_buffer_size
,
51200
},
{
replay_checks_enabled
,
[]},
```
this may make proxy slower, it can start consume more CPU, will be vulnerable to replay attacks,
but will use less RAM.
If your server have lots of RAM, you can make it faster (users will get higher uppload/download speed),
it will use less CPU and will be better protected from replay attacks, but will use more RAM:
```
erlang
{
upstream_socket_buffer_size
,
20480
},
{
downstream_socket_buffer_size
,
512000
},
{
replay_checks_enabled
,
[
mtp_session_storage
]},
{
replay_check_session_storage_opts
,
#
{
max_memory_mb
=>
2048
,
max_age_minutes
=>
1440
}},
```
Helpers
Helpers
-------
-------
...
...
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