Async Python MTProto Proxy
Project description
MTProxy
A fully OOP Asynchronous Python 3 MT-Proto proxy
Features
- Easy to use: you can easily use it
- Lightweight less resources as possible but not by losing maintainability.
- Fully-asynchronous: it runs asynchronously
- High-performance: processes a lot of connections
- Block-Mode Protection from replay attacks used to detect proxies in some countries
Installation
To install last stable release from pypi:
$ pip3 install mtproxy
or with uvloop as extra requirement (recommended):
$ pip3 install mtproxy[fast]
uvloop makes asyncio fast.
Usage
To launch with custom config
# config.ini
#proxy settings
[mtproxy]
# port = 8585
## The Port that Proxy listening to. 8585 by default
# fast_mode = ture
# true by deaultif True, disables telegram to client traffic re-encryption, faster but less secure.
# prefer_ipv6 = ture
# if IPv6 available, use it by default.
# secure_only = false
# Don't allow to connect in not-secure mode. false by default
# listen_addr_ipv4 = 0.0.0.0
# Listen address for IPv4. '0.0.0.0' by default
# listen_addr_ipv6 = ::
# Listen address for IPv6 by default
# client_handshake_timeout = 10
# Drop client after this timeout if the handshake fail, 10 by default
# client_keepalive = 600
# Keep alive period for clients in secs, 600 by default.
# client_ack_timeout = 300
# if client doesn't confirm data for this number of seconds, it is dropped, 300 by default.
# server_connect_timeout = 10
# Telegram servers connect timeout in seconds, 10 by default/.
# to_client_buffer_size = 131072
# Max socket buffer size to the client direction, the more the faster, but more RAM hungry, 131072 by default.
# to_server_buffer_size = 65536
# Max socket buffer size to the telegram servers direction, 65536 by default.
# block_mode = true
# Drop client if first packet is bad, true by default.
# reply_check_length =
# Length of used handshake randoms for active fingerprinting protection, 32768 by default.
# ipv4 =
# IPv4 address to show data, if Ignored, will be Obtained.
# ipv6 =
# IPv6 address to show data, if Ignored, will be Obtained.
# proxy users section.
[mtproxy:users]
# name_of_user = proxy_secret_key
HemMm = 7e7ee7be6b40378e593c36433294b03c
launch proxy:
mtproxy config.ini
# mtproxy CONFIG_FILE_NAME
Special Thanks to alexbers for his grate project
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
MTProxy-0.1.3.tar.gz
(12.4 kB
view details)
Built Distribution
MTProxy-0.1.3-py3-none-any.whl
(19.4 kB
view details)
File details
Details for the file MTProxy-0.1.3.tar.gz
.
File metadata
- Download URL: MTProxy-0.1.3.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.5.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1a34576390ddfd0b61dbca2d11d2cf83b5e08cb64ce2ed390a336ff0d9c59bb |
|
MD5 | 38362b58a00a14e0207b7cb833c00569 |
|
BLAKE2b-256 | 07ea91f1e8b4f4509a0ad159a923a95cc57a3d6b284a7ae72c91f2a04ca725b6 |
Provenance
File details
Details for the file MTProxy-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: MTProxy-0.1.3-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.5.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6700329b7b759ce30b8ed79ee8531cf625850132f070d9676a7bb54173a0e730 |
|
MD5 | 93d7bdf93948703984686870430c0c43 |
|
BLAKE2b-256 | f0076cceb5212855a955560edcd1c53943844ead412a09edda2a51b11295965b |