Skip to content

v1.3.1 — Performance & Anti-DPI Upgrade Suite (Forensically Audited)

Choose a tag to compare

@SamNet-dev SamNet-dev released this 07 Jul 16:22
· 83 commits to main since this release

✨ 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.
  • 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.
  • 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.
  • Container-Resilient Sysctl Persistence:
    • Writes settings cleanly to /etc/sysctl.d/99-mtproxymax-bbr.conf with graceful fallback handling for unprivileged container environments (OpenVZ / LXC / Docker) where kernel module loading (modprobe tcp_bbr) is restricted by the host hypervisor.

🛡️ 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 (1360 bytes) across Linux Netfilter FORWARD, OUTPUT, and POSTROUTING chains.
  • 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 (and anti-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.

🌐 Suite 3: Reverse-Proxy Cover Shield (mtproxymax cover-shield [on|off|target <url>])

  • Active Scanner Trapdoor:
    • Engages an active defense mechanism within the telemt engine by dynamically configuring fallback = "<url>" inside the generated TOML configuration.
  • 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).
  • 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 case evaluation shadowing bug where shield) (v1.1.0 Kernel SYN Shield) shadowed shield|anti-dpi) in the CLI command router. Separated commands into syn-shield (SYN rate limiter) and shield / anti-dpi (Packet Padding Shield), ensuring 100% independent control.
  • Engine TOML Integration:
    • Audited generate_telemt_config to ensure fallback strings are dynamically injected into the runtime engine config without breaking existing multi-secret or quota definitions.
  • Line-by-Line Syntax & Conflict Verification:
    • Executed automated syntax validation across all 16,979 lines (mtproxymax.sh and install.sh), confirming zero syntax errors, zero merge conflict artifacts, and zero race conditions.

🏁 Upgrade Instructions

To upgrade an existing server immediately without downtime:

mtproxymax update

Or deploy on a fresh node:

curl -sSL https://raw.githubusercontent.com/SamNet-dev/MTProxyMax/main/install.sh | bash

Pinned Engine: telemt v3.4.19 (987c53c)