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
0
votes
1 answer

Traffic shaping for upload/download speed simulation

I'm building a network emulator to help realize different speeds. Basically, this system would shape a given user's network metrics (such as upload speed/download speeds/packet loss/jitter etc) based on the user's request. For instance, if a user…
0
votes
0 answers

delay after 5 requests: rate limits? (and how to disable them)

I'm using the following configuration for my nginx server: upstream django { server unix:///var/www/example.com/django/ws/django.socket; } upstream io_nodes { ip_hash; server 127.0.0.1:8080; } limit_req_zone $binary_remote_addr…
basilikum
  • 217
  • 3
  • 11
0
votes
2 answers

Massive blockingof ips done right

I run a website which is being abused every day with bots trying to send spam, not respecting robots.txt and so on. The biggest problem, however is repeating attempts to massively harvest website. Right now i have my own script which uses Nginx to…
Termos
  • 215
  • 2
  • 8
0
votes
1 answer

How to redirect to an other link when excess request (limit_req) with Nginx

I have been trying to limit the requests coming from a single IP address successful with module limit_req in Nginx. But now I want to redirect to an other web-page for showing some messages.How could I do that? It Seems like Nginx just support…
panda_dth
  • 1
  • 1
  • 1
0
votes
1 answer

rate limit apache httpd server

I have an apache server that acts as a load balancer to pass off requests to tomcat application servers. I wish to rate limit the http access by ips, and potentially throttle requests, how can this be done?
user12145
  • 1,115
  • 6
  • 28
  • 47
0
votes
0 answers

Filezilla Throttle File transfer rate not user

Is it possible to throttle the file being transferred rather than a user. We have lots of users using the same username/pw and need to throttle each session. Is that possible?
Jim
  • 173
  • 1
  • 9
0
votes
1 answer

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 dedicated (remote) development machine. This is the…
0
votes
1 answer

iis7 bandwith throttling for downloads via iis media services?

I am looking after a sever that is managing the downloads of software updates released by the company where I work. The throttle in IIS7 seems to limit the total rate and not the rate each individual download gets. I was thnking on installing media…
MikeJ
  • 1,381
  • 4
  • 13
  • 24
0
votes
1 answer

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) tcp-request connection track-sc0 src # Abusers…
Theron Luhn
  • 325
  • 2
  • 3
  • 11
0
votes
1 answer

Is using iptables to rate limit on port 80 considered wasteful?

I was thinking of adding the following rule to my IP tables: -A INPUT -p tcp -m state --state NEW -m recent --update --dport 80 --seconds 5 --hitcount 10 -j DROP -A INPUT -p tcp -m state --state NEW -m recent --set --dport 80 -j ACCEPT to avoid…
orokusaki
  • 2,763
  • 4
  • 32
  • 43
0
votes
2 answers

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 to accommodate a large number of users…
user31412
  • 29
  • 1
  • 3
0
votes
1 answer

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 (resulting in 503 responses), the client IP is…
skyork
  • 125
  • 6
0
votes
1 answer

e-mail ratelimit exim

Server1 sending to Server2: Connecting to domain.com [1.1.1.1]:25 ... connected SMTP<< 451 Temporary local problem - please try later SMTP>> QUIT LOG: MAIN SMTP error from remote mail server after initial connection: host domain.com [1.1.1.1]:…
Tiffany Walker
  • 6,681
  • 14
  • 56
  • 82
0
votes
1 answer

Is there a rate limiting tool for linux that can limit rates per process or socket?

I found tc, which allows you to filter by ip, port etc. and then limit rates. But I was wondering if there was anything that could filter by application or limit rate given another process' socket .. Thanks! ok seems like I can use lsof -iTCP and…
Lavanya
  • 103
  • 3
0
votes
1 answer

Few requests/sec, but choke Apache and spike CPU

We have two load balancers running HAProxy which serve requests to an application server. We've recently been getting spikes of traffic from script kiddies running vulnerability checks against our infrastructure. It's just a bunch of GET requests…