In computer networks, rate limiting is used to control the rate of traffic sent or received on a network interface.

learn more… | top users | synonyms (2)

1
vote
2answers
101 views

How to rate limit outgoing SMTP connections for Postfix

I have a postfix instance running on a VM. The VM provider shuts us down if we exceed a threshold of SMTP connections per minute - something like 10. In a typical day we might send 1000 messages, so ...
1
vote
2answers
162 views

Easy Apache module to throttle requests based on machine load?

I have an Apache server that is serving a django application with mod_wsgi. I'm wondering if there is a simple way to throttle requests at the apache level based on the machine's load. Ideally I want ...
0
votes
2answers
431 views

Dynamic throttling of bandwidth

I am planning on setting up streaming server. Streaming is done kind of like YT does it; there will be a large number of audio content and each user can listen to it right on the website. In order ...
1
vote
1answer
48 views

Relax ssh rate-limit rules for certain ip addresses

We've written some tools to automate common development tasks. One tool, for example, ensures all our git repositories are up-to-date. For this to work, our tool needs to connect to our git server and ...
1
vote
1answer
501 views

Linux dynamic rate limiting/throttling

I'm running a video streaming website with lighttpd using http pseudo-streaming to deliver videos. If the user has a very fast connection, this can use bandwidth quite inefficiently. For example if ...
0
votes
1answer
164 views

Linux Traffic Shaping with “tc”: QoS filter for requests directly on the host not applied?

I'm trying to reduce the interface thoughput to debug my application on slower network speed. I've remembered a tc statement to do this on a interface which was working in the past. I used it on a ...
0
votes
1answer
563 views

Nginx $http_x_forwarded_for not always being set

I've noticed in our access logs that sometimes, the $http_x_forwarded_for variable has not been set, and instead, the correct IP is the one set to $remote_addr. Is it possible to set ...
0
votes
1answer
377 views

How to use limit_conn and limit_req modules of Nginx when it is behind HAProxy

I'm using limit_conn_zone (with limit_conn) and limit_req_zone (with limit_req) in Nginx which sits behind a HAProxy. They both run on the same host. I see whenever a limit is breached in Nginx ...
3
votes
0answers
387 views

Limiting bandwidth with hashlimit (e.g. kb/s — not connections!) doesn't work, though the man page says it should

According to the iptables-extensions man page hashlimit can do bandwidth limiting: "flows exceeding 512kbyte/s" => --hashlimit-mode srcip,dstip,srcport,dstport --hashlimit-above 512kb/s ...
2
votes
0answers
929 views

VLAN based rate limiting using tc

I have been trying to perform VLAN based rate limiting on an academic project I am working on. The project uses Openflow (with Beacon controller) and the network is emulated using Mininet. The network ...
1
vote
0answers
53 views

Debian exim4 rate limits

I try to limit on exim4 the outgoing mails per day per domain, i found this: acl_check_ratelimit: accept authenticated = * endpass ratelimit = 40 / 1d / per_rcpt / ...
1
vote
0answers
83 views

nginx and cloudlfare ip confusion?

I am using the below config in http block of my nginx.conf to get real ip while using Cloudflare acceleration service: ## Cloudflare settings to get Real IP's set_real_ip_from ...
1
vote
0answers
133 views

How to slow down ftp upload on windows 7

I have an application that uses ftp on windows 7 or 8 and it fails trying to upload a file (time out, server sends back RST packets so it's definitely the server that's unhappy) to a specific server. ...
0
votes
0answers
106 views

Logging HAProxy connection limiting

I have some simple connection and connection rate limiting in HAProxy: # Store IPs to limit connection rate stick-table type ip size 200k expire 5m store gpc0,conn_cur,conn_rate(10s) ...
0
votes
0answers
71 views

Limit concurrent connections in nginx across multiple servers

I am running a download service with free and paid premium membership types. The free membership should be restricted to one concurrent download. I know how to accomplish this when only one server ...
0
votes
0answers
358 views

Is CSF's recommended Connection Tracking Limit (CT_LIMIT) of 300 connections reasonable?

CSF recommends setting CT_LIMIT to 300 to block small ddos attacks as per http://configserver.com/free/csf/readme.txt I Would like to enable this connection limiting / tracking via CSF, as I have ...
0
votes
0answers
104 views

Dovecot: Limit time between connects?

some of my Postbox users are checking mail every 10 or 20 Seconds. It is somehow possible configure Dovecot to limit the time between every login to 1 minute?
0
votes
0answers
315 views

Different limit_req depending on get argument in Nginx

How can I use different limit_req for one location depending if a get-argument is present or not? In logic: if($_GET['a']){ applyLimitA(); }else{ applyLimitB(); } I have achieved this but ...