Repository navigation
v1.3.1 — Performance & Anti-DPI Upgrade Suite (Forensically Audited)
✨ What's New in MTProxyMax v1.3.1 — Performance & Anti-DPI Upgrade Suite
MTProxyMax v1.3.1 is a high-impact upgrade focused on network acceleration, censorship resilience, and active probe defense. This release introduces three powerful new defense and performance suites: TCP BBRv3 & ECN Auto-Tuning, Anti-DPI Packet Padding Shield, and Reverse-Proxy Cover Shield.
This release also features a full forensic audit and hardening round, resolving edge cases in containerized sysctl environments, sealing URL injection vectors, and fixing a critical CLI dispatcher command collision.
🚀 Suite 1: TCP BBRv3 Congestion Control & ECN Auto-Tuning (mtproxymax bbr [on|off|status])
- Kernel Congestion Control Acceleration:
- Activates Google's TCP BBRv3 congestion control algorithm and Fair Queueing (
fq) packet scheduling, dramatically reducing latency and maximizing throughput across high-packet-loss international links.
- Activates Google's TCP BBRv3 congestion control algorithm and Fair Queueing (
- Explicit Congestion Notification (ECN):
- Enables RFC 3168 ECN (
net.ipv4.tcp_ecn = 1) to allow routers to signal network congestion without dropping packets, preventing TCP slow-start slowdowns during high concurrency bursts.
- Enables RFC 3168 ECN (
- 16MB TCP Buffer Expansion:
- Auto-scales kernel read/write memory buffers up to 16MB (
net.ipv4.tcp_rmem/wmem = 4096 65536 16777216) to support high-bandwidth 4K/8K media streaming.
- Auto-scales kernel read/write memory buffers up to 16MB (
- Container-Resilient Sysctl Persistence:
- Writes settings cleanly to
/etc/sysctl.d/99-mtproxymax-bbr.confwith graceful fallback handling for unprivileged container environments (OpenVZ / LXC / Docker) where kernel module loading (modprobe tcp_bbr) is restricted by the host hypervisor.
- Writes settings cleanly to
🛡️ Suite 2: Anti-DPI Packet Padding & Fingerprint Scrubbing (mtproxymax shield [on|off|status])
- Active DPI & Heuristic Evasion:
- Randomizes packet payload size distributions and enforces strict TCP MSS Clamping (
1360bytes) across Linux Netfilter FORWARD, OUTPUT, and POSTROUTING chains.
- Randomizes packet payload size distributions and enforces strict TCP MSS Clamping (
- Defeating Deep Packet Inspection:
- Prevents GFW (Great Firewall), TSPU (Russia), and TIC (Iran) state-level DPI firewalls from identifying FakeTLS handshakes via packet length heuristics or fragmentation anomalies.
- CLI Clean Separation:
- Mapped cleanly to
mtproxymax shield(andanti-dpi/dpi-shield), working alongside the existing Kernel SYN Shield (mtproxymax syn-shield) for multi-layered protection against both active scanners and passive packet sniffers.
- Mapped cleanly to
🌐 Suite 3: Reverse-Proxy Cover Shield (mtproxymax cover-shield [on|off|target <url>])
- Active Scanner Trapdoor:
- Engages an active defense mechanism within the
telemtengine by dynamically configuringfallback = "<url>"inside the generated TOML configuration.
- Engages an active defense mechanism within the
- Seamless HTTP & TLS Forwarding:
- When hostile censorship crawlers, Shodan bots, or unauthorized clients connect to your proxy port without a valid MTProto secret or perform non-MTProto HTTP GET requests, their traffic is seamlessly proxied directly to a fallback website (default:
https://cloudflare.com).
- When hostile censorship crawlers, Shodan bots, or unauthorized clients connect to your proxy port without a valid MTProto secret or perform non-MTProto HTTP GET requests, their traffic is seamlessly proxied directly to a fallback website (default:
- Zero Socket Resets:
- Instead of dropping or resetting TCP connections—which immediately flags the server IP as an anomalous proxy to ISP firewalls—the server behaves 100% identically to a legitimate corporate web server or CDN gateway.
- Input Sanitization:
- Hardened with single-quote and whitespace stripping to prevent TOML configuration injection when setting custom fallback URLs.
🩺 Forensic Hardening & Bug Fixes
- CLI Dispatcher Collision Fix:
- Discovered and resolved a bash
caseevaluation shadowing bug whereshield)(v1.1.0 Kernel SYN Shield) shadowedshield|anti-dpi)in the CLI command router. Separated commands intosyn-shield(SYN rate limiter) andshield/anti-dpi(Packet Padding Shield), ensuring 100% independent control.
- Discovered and resolved a bash
- Engine TOML Integration:
- Audited
generate_telemt_configto ensurefallbackstrings are dynamically injected into the runtime engine config without breaking existing multi-secret or quota definitions.
- Audited
- Line-by-Line Syntax & Conflict Verification:
- Executed automated syntax validation across all 16,979 lines (
mtproxymax.shandinstall.sh), confirming zero syntax errors, zero merge conflict artifacts, and zero race conditions.
- Executed automated syntax validation across all 16,979 lines (
🏁 Upgrade Instructions
To upgrade an existing server immediately without downtime:
mtproxymax updateOr deploy on a fresh node:
curl -sSL https://raw.githubusercontent.com/SamNet-dev/MTProxyMax/main/install.sh | bashPinned Engine: telemt v3.4.19 (987c53c)