Skip to main content

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

MIT

Metadata

Release files for MTProxy 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for MTProxy 0.1.3
File Size Uploaded Provenance Actions
MTProxy-0.1.3.tar.gz 12.4 kB Without provenance Details for MTProxy-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for MTProxy 0.1.3
File Interpreter ABI Platform Actions
MTProxy-0.1.3-py3-none-any.whl Python 3 none any Details for MTProxy-0.1.3-py3-none-any.whl

Total release size: 31.8 kB

Release files / MTProxy-0.1.3.tar.gz

Download URL MTProxy-0.1.3.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f1a34576390ddfd0b61dbca2d11d2cf83b5e08cb64ce2ed390a336ff0d9c59bb
BLAKE2b-256 checksum
How to use checksums
07ea91f1e8b4f4509a0ad159a923a95cc57a3d6b284a7ae72c91f2a04ca725b6
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / MTProxy-0.1.3-py3-none-any.whl

Download URL MTProxy-0.1.3-py3-none-any.whl
Size 19.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6700329b7b759ce30b8ed79ee8531cf625850132f070d9676a7bb54173a0e730
BLAKE2b-256 checksum
How to use checksums
f0076cceb5212855a955560edcd1c53943844ead412a09edda2a51b11295965b
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for MTProxy 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page