Skip to content

Commit

Permalink
Version bump to 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
seriyps committed Jun 9, 2019
1 parent a9701a3 commit e559b46
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ Features
to prevent detection by DPI
* Secure-only mode (only allow connections with 'dd'-secrets). See `allowed_protocols` option.
* 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.
1Gbps, 90k connections on 4-core/8Gb RAM cloud server.
* Supports multiplexing (Many connections Client -> Proxy are wrapped to small amount of
connections Proxy -> Telegram Server)
* 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
* A lots of metrics could be exported (optional)

Expand Down Expand Up @@ -270,6 +271,17 @@ it will use less CPU and will be better protected from replay attacks, but will
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
-------
Expand Down
6 changes: 3 additions & 3 deletions src/mtproto_proxy.app.src
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{application, mtproto_proxy,
[{description, "An OTP application"},
{vsn, "0.4.1-mux"},
[{description, "High-performance Telegram MTProto proxy server"},
{vsn, "0.5.0"},
{registered, []},
{mod, { mtproto_proxy_app, []}},
{applications,
Expand Down Expand Up @@ -139,5 +139,5 @@

{maintainers, []},
{licenses, ["Apache 2.0"]},
{links, []}
{links, [{"GitHub", "https://github.com/seriyps/mtproto_proxy"}]}
]}.

0 comments on commit e559b46

Please sign in to comment.