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

Postfix email throttling for deferred queue

I have an issue with email sending speeds on postfix. the email to yahoo are getting throttled and getting suspended temporarily. I edited the main.cf configuration to slower down the speeds and add a delay. This works fine with email sending at…
user432070
  • 11
  • 1
1
vote
2 answers

Nginx Rate Limiting With CloudFlare

I want to have a Rate Limiting code with the following options: I'm using CloudFlare, so I want it to look for the real IP address. I want to have a whitelist option I want to make a file with a list of the blocked IP addresses (IPs who reached the…
HTMHell
  • 173
  • 4
  • 10
1
vote
1 answer

Limiting per-request download AND upload speed on Apache or Nginx

I'm currently running a couple of Web servers (one is Apache 2.4 based, another is running nginx 1.8). I need to set a rate limit, on each individual GET/POST request, that can throttle both download and upload speed. I've googled around but every…
Alberto Pastore
  • 113
  • 1
  • 8
1
vote
1 answer

NGINX not evaluating variables?

I have a following nginx config: http { (...) limit_conn_zone $binary_remote_addr zone=limitapinoauth:16m; limit_conn_zone $remote_user zone=limitapi:32m; map $remote_user $zone { default 'limitapi'; '' 'limitapinoauth'; } map…
forkie
  • 131
  • 4
1
vote
2 answers

Nginx throttle download speed based on filesize

I am using nginx/1.11.11 compiled from the source with the mp4 module and I am serving video files from 300MB size up to 8GB. I am thinking of implementing a throttle system similar to google's drive. If the size of the file is big set a larger the…
Allkin
  • 111
  • 1
  • 3
1
vote
1 answer

Docker IOPS and Read/Write limitations not being applied

I used following command to test if the IOPS and Disk read/write limitations are being applied or not, but they are not. as soon as i run command, the disk uses 100% of IO and bandwidth. thought, i tried chancing the disk, i am not sure which disk i…
Farhan
  • 4,269
  • 11
  • 49
  • 80
1
vote
1 answer

How can I rate-limit requests sent by bots for a Nginx server?

There are many bots out there. Majestic bot is one of them. It sometimes crawls the website's pages by force, i.e. the server sometimes sends 100 requests during 1 second. Majestic bot is just an example. I don't want to block a certain bot, there…
Siah
  • 113
  • 5
1
vote
1 answer

Throttle incoming connections with iptables

I have a slightly self-inflicted DoS happening in some circumstances, and I'm trying to figure out if I can use iptables to help mitigate it. The short version is "How can I limit the rate of incoming connections to a server to, say no more than 2…
dsl101
  • 433
  • 1
  • 8
  • 14
1
vote
2 answers

Rate Limit VLAN interface | Cisco Nexus

How to do QoS in cisco nexus for Rate limit. In cisco Routers , we will be creating a policy map and calling it in service_policy in VLAN Interface Ex: Policy-map Policy_2Mbps class class-default police cir 2048000 bc 384000 be 384000…
user3162395
  • 11
  • 1
  • 3
1
vote
0 answers

HTB scheduler unexpected behaviour, low priority traffic starving high priority traffic

I am working on assuring low delay for UDP traffic at the home gateway level. At this home gateway I have two types of traffic, TCP and UDP, and I assure differentiated treatment by using HTB. The bandwidth I am testing equals 1Mbit/s (thus it is…
1
vote
1 answer

Limit number of incoming packets per second for a INPUT UDP port [per IP only, not globally] [Ubuntu IPTables]

I searched and I can't find a rule to limit the count of the incoming packets for a INPUT UDP port per second and per IP. I need that per all IPs that connect to my socket, not for a specific one. I'm using iptables on Ubuntu 14.0.4 LTS amd64. I am…
rez
  • 125
  • 1
  • 2
  • 6
1
vote
0 answers

Does nginx consider a page request as one request or more (including static files)?

Lets say we have a configuration as below: http { limit_conn_zone $binary_remote_addr zone=conn_limit1:12m; limit_conn_zone $server_name zone=conn_limit2:24m; [...] server { [...] location / { …
Alireza
  • 583
  • 4
  • 9
  • 27
1
vote
3 answers

Windows Server 2012 Policy-Based QoS

I am trying to implement Policy-based QoS on a Windows Server 2012 VM (running on Hyper-V), but for some reason it's not kicking in. The way I added the policy was by going into the Local Group Policy Editor ==> Windows Settings ==> Policy-based QoS…
Scott Salyer
  • 297
  • 4
  • 14
1
vote
1 answer

traffic shaping on OSX 10.10 with pfctl and dnctl

I am trying to do traffic shaping (throttling) on Mac OS X 10.10 via pfctl and dnctl. I have implemented a simple test server and client with netcat (nc) and a synthetic random payload file to verify if my dummynet pipe throttling is working…
Peter Lyons
  • 283
  • 3
  • 12
1
vote
1 answer

Limiting xfer'd bytes per visitor with Apache

From time to time, I'm visited by "leechers" downloading an entire site (~2 GB) within a few hours, while the average visitor stays far below 50 MB. I'd like to setup a "byte-limit" per visitor (e.g. allowing max 100 MB per day and visitor). I've…
Izzy
  • 349
  • 1
  • 5
  • 19