Questions tagged [rate-limiting]

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

Traffic that is less than or equal to the specified rate is sent, whereas traffic that exceeds the rate is dropped or delayed. Rate limiting is performed by policing (discarding excess packets), queuing (delaying packets in transit) or congestion control (manipulating the protocol’s congestion mechanism). Policing and queuing can be applied to any network protocol. Congestion control can only be applied to protocols with congestion control mechanisms, such as the transmission control protocol (TCP).

244 questions
1
vote
2 answers

How efficient is iptables' hashlimit module?

I'm looking for a solution to rate-limit on an ip basis. How many packets can the hashlimit iptables module handle on a recent Intel x86_64 CPU core? 1.000/sec? 1.000.000/sec?
user127749
  • 19
  • 2
1
vote
1 answer

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 the user downloads a whole video file but only…
Cameron Martin
  • 153
  • 2
  • 8
1
vote
5 answers

What are some good programs which can be used to rate-limit traffic on a server?

We have some applications which hog network traffic on one of our servers (Windows 7) at the expense of the other (more important) applications. Is there an easy way to limit the bandwidth usage of this particular application with a program or…
1
vote
1 answer

linux kernel 3.0.0 i7 CPU overheats and locks up

The server with i7 CPU (Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz) under linux kernel 3.0.0 (3.0.0-10-server) generally works properly, but when it is put under heavy load - it overheats (as shown by "sensors" program) and locks up (with bunch "CPU…
1
vote
2 answers

Search Engine Bot - Large amount of hits

I've started tracking user-agent strings on a website at the start of each session. Looking at the data for this month so far I'm seeing on search engine bot that keeps coming up a lot.. Mozilla/5.0 (compatible; Baiduspider/2.0;…
Justin808
  • 307
  • 3
  • 11
1
vote
1 answer

Throttle or Ignore requests based on IP

Is there something that I can use to set rules for Apache to throttle temporarily or ignore any IP address that makes X number of requests per second? It would be great if there is an Apache module for this. I had a look at mod_bandwidth and…
Abs
  • 1,559
  • 5
  • 19
  • 32
1
vote
1 answer

Rate Limit Packets with Windows Firewall 2008?

Is there any way to limit the incoming packets from the same IP address to X per second? We run specific types of services (game servers) on our machines, and a lot of exploits for it rely on spamming 70-100 empty packets to it.
Aidan Knight
  • 650
  • 3
  • 11
  • 19
1
vote
1 answer

How to rate-limit outgoing email on Linux/Postfix host?

Background: I'm a fan of David Allen's Getting Things Done, and that means when an email arrives in my inbox, if I can reply right away, I want to do so and keep my inbox clear. But there's a problem: if I reply immediately, the chances of my…
Norman Ramsey
  • 665
  • 2
  • 10
  • 24
1
vote
1 answer

throttle bandwith to API like twitter does

lookikng to limit the number of api requests from clients. wondering if there is a way to do it with apache or do i have to write some code
1
vote
2 answers

Is it possible to put resource limits on an IIS7 site?

I have a number of different web apps running under IIS7. Is it possible to put limits on one app - for example, limit the number of connections, bandwidth, memory usage and CPU allowed? I need to do this without installing any additional software…
chris
  • 3,993
  • 6
  • 28
  • 37
1
vote
1 answer

Testing rate limiting rules in firewalld

I want to rate limit ssh connections per IP to a server running firewalld. Suppose my sshd listens on port 2222, and I want to limit ssh connections per IP to 3 per minute. I tried: sudo firewall-cmd --add-rich-rule \ 'rule port port="2222"…
lonix
  • 896
  • 10
  • 23
1
vote
0 answers

Postfix: email forwarding to google, never re-try deliveries

I've a Postfix server with two virtual domains, users and aliases. Some of my users want their email centralized at Gmail and have aliases in place to redirect incoming e-mail to their Gmail accounts. Eg. person.a@example.org is forwarded to…
TCB13
  • 1,166
  • 1
  • 14
  • 34
1
vote
2 answers

.io auth. NS refuses UDP response to dnsviz.net – why shouldn’t I, too?

Seriously, say, I block (return, not drop of course) UDP :53 in to my authoritative nameserver. Resolvers will fall back to TCP and I won’t need any rate limiting against spoofed source IPs. Because the spoofed victim of a DDoS attack would only get…
1
vote
1 answer

What things should I consider when identifying and rate limiting bots?

// Not sure if this question is best fit for serverfault or webmasters stack exchange... I am thinking to rate limit access to my sites because identifying and blocking bad bots take most of my time. For example I have bots accessing the site by…
adrianTNT
  • 1,077
  • 6
  • 22
  • 43
1
vote
1 answer

Nginx ratelimit on ALL files

I set up a ratelimit in my nginx config. Usually you would define a location and define the rate limit zone. I want the zone to apply on ALL files on the web server. limit_req_zone $binary_remote_addr zone=zone1:3m rate=5r/m; limit_req_status…
0xPenis
  • 11
  • 2