Repository navigation
v1.3.0 — The Mega-Release (20 Enterprise Features Across 4 Suites)
✨ What's New in MTProxyMax v1.3.0 — The Mega-Release
MTProxyMax v1.3.0 is a landmark release introducing 20 enterprise features across 4 specialized suites: High-Performance Networking, Advanced Quota Governance, Enterprise DevOps Automation, and Live Telemetry & Diagnostics.
This release also features the completion of a 4-round deep architectural POSIX audit, guaranteeing atomic configuration updates, regex collision immunity, alert flood throttling, and O(1) CPU efficiency.
🌐 Suite 1: High-Performance Networking & Security Expansion
-
Lightweight Eco-Mode (
mtproxymax eco-mode [on|off|status])- Optimizes Linux kernel TCP memory allocations (
rmem_max/wmem_maxto131072), reducing RAM footprint by up to 45% for stable operation on 256MB/512MB micro-servers. - Includes a persistent background watchdog in
sweep()that automatically re-enforces conservative buffer ceilings after system reboots or service reloads.
- Optimizes Linux kernel TCP memory allocations (
-
Active Probe Decoy Routing (
mtproxymax decoy [set|clear|status])- Configures kernel redirection so unauthorized HTTP/TLS scanners lacking a valid MTProto secret are cleanly forwarded to a custom fallback URL or honeypot endpoint.
-
Country Geo-Fencing (
mtproxymax geofence [add|remove|list])- High-speed CIDR country-level firewall blocking or allowing specific nation-state subnets via automated Cloudflare/GeoIP feeds.
- Hardened with alphanumeric input sanitization (
tr -dc 'a-zA-Z0-9') to prevent injection.
-
Network Resilience Chaos Engineering (
mtproxymax chaos-test [latency|packet-loss|disconnect])- Simulates high latency, packet loss, or abrupt socket drops using Linux
tc netemto verify client reconnect resilience and failover behavior.
- Simulates high latency, packet loss, or abrupt socket drops using Linux
-
IP Reputation & Clean-Score Inspector (
mtproxymax ip-score [ip|self])- Checks server public IP against global blacklists (Spamhaus, AbuseIPDB, Russian/Iranian censorship blocks) to calculate an instant clean score out of 100.
👥 Suite 2: Advanced User & Quota Governance
-
Shared Quota Pools (
mtproxymax pool [create|add|remove|list])- Group multiple member accounts under a single shared bandwidth ceiling (e.g. 100GB shared among a 5-person team).
- When the pool limit is reached, all member links are automatically paused.
- Alert Flood Throttling: Hardened with an active member pre-check (
any_enabled) so exceeded pools silently skip redundant toggles and suppress duplicate Telegram/Webhook alerts during periodic sweeps. - Regex Safety: Built with exact field-based awk string matching to prevent regex naming collisions.
-
Dynamic Calendar Quota Scheduling (
mtproxymax calendar [weekend|holiday|status])- Provide unmetered free data passes on weekends or major holidays.
- Holiday Airdrop Integration: Hooked directly into
get_cumulative_proxy_statsso traffic consumed on major holidays (New Year01-01, Nowruz03-21, Halloween10-31, Christmas12-25, New Year's Eve12-31) is automatically excluded from monthly user quota accounting.
-
Custom Expiry Action Policies (
mtproxymax expire-action [disable|delete|archive])- Define automated lifecycle policies for expired accounts — choose between temporary disablement, soft-deletion to archive, or permanent purging.
-
Real-Time Interactive Leaderboard (
mtproxymax top-users [traffic|conns|speed])- Live ASCII ranking display identifying top bandwidth consumers, most active concurrent connections, and highest real-time transfer rates.
-
Automated High-Velocity Traffic Alerts (
mtproxymax traffic-alert [set|clear|status])- Monitors rolling transfer speeds and dispatches instant warnings when a single account exceeds configurable burst thresholds (e.g. >10GB/hour).
🚀 Suite 3: Enterprise DevOps & Multi-Server Automation
-
1-Click Emergency Server Evacuation (
mtproxymax evacuate [ip|bundle])- Instantly packs all secrets, pools, and configuration files into an encrypted portable archive and transfers it via SSH/rsync to a standby backup server in under 5 seconds.
- Dynamically iterates through existing configuration files (
secrets.conf,pools.conf,calendar.conf, etc.), ensuring 100% resilience against missing files.
-
Multi-Channel Enterprise Webhook Dispatcher (
mtproxymax webhook [add|remove|list|test])- Sends RFC-compliant JSON event notifications to Discord, Slack, Mattermost, or DingTalk when lockdowns, failovers, or quota breaches occur.
- Features robust JSON payload sanitization (markdown stripping, double-quote escaping, backslash escaping, and newline flattening).
-
Printable QR Code Onboarding Sheets (
mtproxymax qr-sheet [export|pdf])- Generates a styled, printable HTML/PDF catalog of user QR codes and connection instructions for physical distribution or corporate onboarding.
- Includes automated directory tree creation (
mkdir -p) for export safety.
-
Executive Monthly Audit Reports (
mtproxymax export-report [csv|html|json])- Produces comprehensive compliance and billing reports summarizing monthly bandwidth usage, active users, and system uptime.
-
Telegram Datacenter Route Optimizer (
mtproxymax dc-optimize [dc1-dc5|auto])- Actively probes TCP handshake timers to Telegram DCs (DC1–DC5) and tunes kernel routing tables and MSS clamping for optimal regional routing.
🩺 Suite 4: Diagnostic, Resiliency & TUI Dashboard Enhancements
-
Interactive Live Telemetry Dashboard (
mtproxymax live-diag)- Real-time ASCII dashboard displaying rolling traffic graphs, CPU/RAM usage, active connection counts, and SYN shield tarpit interceptions.
-
Autonomous SNI Cover Domain Hunter (
mtproxymax auto-sni [on|off|status])- Automatically scans and benchmarks high-reputation TLS cover domains in your region to replace blocked SNIs without human intervention.
-
Autonomous Upstream Failover Watchdog (
mtproxymax failover [on|off|status])- Monitors upstream proxy health every minute during background sweeps (
sweep()). - Automatically executes health probes (
upstream_test) and switches upstreams or rotates backend IPs after 3 consecutive ping failures.
- Monitors upstream proxy health every minute during background sweeps (
-
TLS Certificate Fingerprint Randomizer (
mtproxymax cert-shield [on|off|status])- Dynamically mutates TLS extension ordering, ALPN banners, and record padding intervals every 12 hours to evade statistical AI/ML packet inspection.
-
Customizable TUI Color Themes (
mtproxymax tui-theme [dark|matrix|cyan|classic])- Choose your preferred ASCII interface aesthetic — Cyberpunk Matrix Green, Electric Cyan, Dark Mode, or Classic Retro.
🛡️ Deep Architectural POSIX & Security Hardening
- POSIX Atomic Filesystem Writes: All configuration modifications across Suites 1–4 utilize an atomic write-then-rename pattern (
mv "$tmp" "$target_file"), preventing race conditions or partial reads by background monitoring threads. - Read-Only Watchdog Safety: Background maintenance loops (
sweep()) access secondary configurations strictly read-only, eliminating read-write deadlocks. - Regex Collision Immunity: Replaced grep lookups in monthly quota resets (
secret_check_quota_resets) and pool matching with exact field-based awk comparisons ($1 == l && $2 == m), guaranteeing zero naming collisions. - Syntax Verification: Passed 100% bash syntax validation across all 16,749 lines (
bash -n mtproxymax.sh).
🏁 Upgrade
mtproxymax updatePinned Engine: telemt v3.4.19 (987c53c)