You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**Data Quota**| Lifetime bandwidth cap |`10G`, `500M`| Fair usage |
109
109
|**Expiry Date**| Auto-disable after date |`2026-12-31`| Temporary access |
110
110
111
-
> **Tip: Use `conns` for device limits, not `ips`.** Each Telegram app opens exactly 1 connection (multiplexed internally), so `conns 3` = max 3 devices. IP limits are less reliable because mobile users roam between cell towers (briefly showing 2 IPs for 1 device), and multiple devices behind the same WiFi share 1 IP. Use `ips` as a secondary anti-sharing measure.
111
+
> **Tip:** Each Telegram app opens **~3 TCP connections** (one per DC). So for device limiting, multiply by 3: `conns 15` ≈ max 5 devices. Setting below 5 will likely break even a single device. IP limits are less reliable because mobile users roam between cell towers (briefly showing 2 IPs for 1 device), and multiple devices behind the same WiFi share 1 IP. Use `ips` as a secondary anti-sharing measure.
112
112
>
113
113
> **Traffic and quotas are lifetime (cumulative)**, not monthly. They don't auto-reset. Use `mtproxymax secret reset-traffic <label>` to manually reset counters, or rotate the secret.
<summary><b>Limit Devices Per User (Recommended)</b></summary>
125
125
126
126
```bash
127
-
mtproxymax secret setlimit alice conns 1# Single device only
128
-
mtproxymax secret setlimit family conns 5 # Family — up to 5 devices
127
+
mtproxymax secret setlimit alice conns 5# Single device (~3 conns per device, with headroom)
128
+
mtproxymax secret setlimit family conns 15# Family — up to 5 devices
129
129
```
130
130
131
-
If someone with `conns 1`shares their link, the second device can't connect. Each Telegram app = exactly 1 connection.
131
+
Each Telegram app opens ~3 TCP connections. Setting `conns 5` allows one device with headroom. If someone shares their link, the second device will hit the limit.
132
132
133
133
</details>
134
134
@@ -168,9 +168,9 @@ mtproxymax secret add bob
168
168
mtproxymax secret add charlie
169
169
170
170
# Each person gets their own link — revoke individually
171
-
mtproxymax secret setlimit alice conns 2# 2 devices
172
-
mtproxymax secret setlimit bob conns 1 # 1 device
173
-
mtproxymax secret setlimit charlie conns 3 # 3 devices
171
+
mtproxymax secret setlimit alice conns 10# ~3 devices
172
+
mtproxymax secret setlimit bob conns 5# 1 device
173
+
mtproxymax secret setlimit charlie conns 15 # ~5 devices
0 commit comments