Releases: SamNet-dev/MTProxyMax
Releases · SamNet-dev/MTProxyMax
v1.0.3 — Notes, Quota Enforcement, Multi-Port & More
What's New in v1.0.3
Secret Notes
- Attach descriptions to any secret:
mtproxymax secret note user1 "John's phone" - Notes displayed in secret list and TUI option [8]
Quota Enforcement & Alerts
- Telegram warning at 80% quota usage, auto-disable at 100%
- Works even without Telegram bot enabled (enforcement is policy, not notification)
mtproxymax secret reenable <label>to restore with optional traffic counter reset
Expiry Warnings
- Secret list shows
(3d left),(expired)indicators - Telegram alerts 3 days before a secret expires
JSON Status Output
mtproxymax status --json— structured output for Grafana, Zabbix, or custom monitoring- Includes all secrets with per-user traffic, connections, quota, expiry, and notes
Connection Log
- Per-user activity log with timestamps and traffic deltas
- Auto-rotates at 10,000 lines
- CLI:
mtproxymax connlog/connlog clear - TUI: Logs & Traffic > [2]
Backup & Restore
mtproxymax backup— creates timestamped tar.gz with all config, secrets, statsmtproxymax restore <file>— validates and restores with confirmationmtproxymax backups— list available backups- Also available in TUI: About & Update > [2]/[3]/[4]
Multi-Port Instances
- Run the proxy on multiple ports with shared secrets
mtproxymax instance add <port>/instance remove <port>/instance list- Secondary instances integrated into start/stop/restart, geo-blocking, and config hot-reload
Other Improvements
- Hot-reload for secrets — add/remove/rotate without dropping connections
- Whitelist geo-blocking mode (#29)
- Quota enforcement runs independently of Telegram alert settings
Upgrade
mtproxymax updatev1.0.2 — Persistent Traffic & TUI Performance
What's New in v1.0.2
Persistent Traffic Counters (#13)
- Traffic stats (TRAFFIC IN / TRAFFIC OUT) now survive container restarts
- Cumulative traffic saved to disk every 60 seconds, even without Telegram bot enabled
- Final traffic snapshot flushed before every stop/restart — no data loss on clean shutdown
- All displays (CLI, TUI, live monitor, Telegram bot) show correct cumulative totals
TUI Performance
- Batch stats loading — single metrics fetch + single file read replaces per-user subprocess spawning (~256 forks → ~5 for 32 users)
- Replaced
echo | awkfield extraction with bashread -rbuiltins throughout printf '%(%Y-%m-%d)T'builtin for date formatting (zero forks)
Reliability
- Atomic file writes with flock — prevents race conditions between daemon and CLI
- Fixed in/out direction mapping — consistent
from_client=in,to_client=out across all functions - Lock released on all early return paths (no lock leaks)
- Integer validation on all values read from traffic files
What's New Since v1.0.0
v1.0.1 — Batch Secret Management (#12)
secret add-batch <l1> <l2> ...— add multiple secrets with a single restartsecret remove-batch <l1> <l2> ...— remove multiple secrets with a single restart--no-restartflag forsecret add/remove/add-batch/remove-batch- TUI interactive menu options [6] and [7] for batch operations
v1.0.0 — Engine v3.3.14
- Event-Driven ME — reduced CPU on idle/low-traffic servers
- CPU/RAM hot-path optimization
- ME writer selection, DC-to-client tuning, ME/DC reroute
- Adaptive floor planner, PROXY real IP in logs
Upgrade
curl -fsSL https://raw.githubusercontent.com/SamNet-dev/MTProxyMax/main/mtproxymax.sh -o /usr/local/bin/mtproxymax && chmod +x /usr/local/bin/mtproxymax