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
0 answers

Nginx rate limiting at server level excluding a particular IP

My server is constantly being flooded and I am looking to limit the connections. I want to do this at the server level (because I have multiple websites) but every now and then I run a cache warm script from a particular IP. limit_req_zone…
Quintin Par
  • 4,373
  • 11
  • 49
  • 72
0
votes
1 answer

Apache return 429 only to bots, for specific urls

i have a Magento website working with Apache2 and every day i get bots crawling urls that i do not want to and i would like to return 429 for specific urls. i have tried this in my htaccess RewriteEngine On RewriteCond…
x86fantini
  • 13
  • 3
0
votes
1 answer

Are the following two iptables rules equivalent?

There are articles such as this which suggest something of the form of these iptables rules to block too many SSH connections made in a short time: -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --set -I INPUT -p tcp --dport 22 -i…
user175627
0
votes
3 answers

Postfix: limit INCOMING rate

I have a Postfix 2.11 server listed as an MX-server for a wildcard domain, *.domain.com I need to limit the incoming rate per particular subdomain/destination address. So if someone starts sending 1000s of emails to same address- there's a delay…
serge
  • 123
  • 1
  • 8
0
votes
1 answer

Why I can't limit bandwidth with tc command

I want to limit bandwidth for interface eth1, I read command in this link. sudo tc qdisc add dev eth1 root handle 1:0 htb default 10 sudo tc class add dev eth1 parent 1:0 classid 1:10 htb rate 200kbps ceil 200kbps It works well (download speed ~…
0
votes
1 answer

exim variable for domain

So i've been reading a lot about exim, however there are some variables which are showing an empty string on my server and therefore they are not working with my rate limit conditions. For instance I have tried: $sender_host_address $domain So here…
MiguelR
  • 1
  • 1
0
votes
1 answer

Download rate or Data Limitation on Mikrotik hotspot don't apply on users

I wonder to know has anyone had a problem of limitation on user in hotspot. (RB3011 - even tested on RB951G) After I config the hotspot and give permission to users based on the username and password user can connect to the internet but when I add a…
0
votes
0 answers

Gradual throttling total bandwidth

I have a server with a 30TB traffic allowance hosting (mostly) history images and would like to throttle one particular directory (the download image sizes) when necessary to avoid going over the limit. My thinking was that I could use either…
chx
  • 1,705
  • 2
  • 16
  • 25
0
votes
1 answer

Simultaneous outgoing connections limit with iptables not working

I run a website that technically acts as a proxy to another website (I make HTTP requests to it), and I needed to make sure not too many simultaneous connections were made, I thus limited it to 29 simultaneous connections with iptables: iptables -A…
0
votes
1 answer

linux tc: unstable rate using tbf qdisc

This is the first time I am experimenting with tc. What I am trying to achieve is to limit the download rate that passes through a Virtual Machine that acts as gateway. The VM has two Ethernet interfaces. Traffic coming from the users enters eth0…
stois21
  • 1
  • 1
0
votes
0 answers

Server can't reach more than 800mbps

I'm using wowza for streaming video and I've a server on linode (8gbps upload). I had streaming and when the server reaches 800 mbps, approximately, streaming begins to suffer lag and the upload speed lows. More and more users but the upload speed…
nhurf
  • 17
  • 1
0
votes
1 answer

POSTFIX: Limit outbound connections, message count, cummulative size in time window

We are sending quite large amount of email messages to our customers every month with Postfix. Big percentage of them have their email hosted with @example.com. But every month we are struggling to deliver all the messages because of…
dragularius
  • 1
  • 1
  • 4
0
votes
1 answer

HAPRoxy Rate Limiting - Stick-Table Entry Expiration

I've been trying to implement rate limiting for some HTTP POST requests on my website. It works great, except for one detail: the expiration of my entry in my stick-table is always reset to 30 seconds, which means that if the client mistakenly makes…
liquidity
  • 418
  • 1
  • 7
  • 22
0
votes
1 answer

QoS/traffic-limit on internal ports in OpenVSwitch

I am currently trying to put traffic control on our OpenStack cloud and my questions in one sentence would be: is it possible at all to rate-limit particular port with type internal? The whole story is as following: We are running OpenStack Neutron…
guoger
  • 33
  • 1
  • 7
0
votes
0 answers

Rate-limit Apache per IP for a specific page

I would like Apache to redirect to an error page when the number of requests per IP to a specific page (selected with regexp) is above some threshold. What is the simplest way to do that? What module to use? What are the directives to achieve that…
flm
  • 101
  • 2