Rate Limiting
Protect your local server from excessive traffic.
Enable Rate Limiting
arm tunnel 3000 --rate-limit 100
This limits requests to 100 per minute per IP.
Rate Limit Options
| Option | Description |
|---|---|
--rate-limit <n> | Requests per minute |
--rate-limit-burst <n> | Burst allowance |
--rate-limit-by <key> | Rate limit key (ip, user, global) |
Examples
# 60 requests per minute per IP
arm tunnel 3000 --rate-limit 60
# With burst allowance
arm tunnel 3000 --rate-limit 60 --rate-limit-burst 10
# Rate limit by authenticated user
arm tunnel 3000 --rate-limit 100 --rate-limit-by user --auth
Rate Limit Response
When rate limited, clients receive:
HTTP/1.1 429 Too Many Requests
Retry-After: 60
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 1642000000
Dashboard Configuration
Configure rate limits in the web dashboard:
- Go to Tunnels → Your Tunnel → Settings
- Enable rate limiting
- Set requests per minute
- Configure burst allowance
- Save settings