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 (1)

0
votes
0answers
18 views

Postfix limit total sent per hour

I'm not after services that could provide me with fancy fine-grained control like policyd, I don't need per user/domain control, I only want to: limit maximim number of emails that could be sent ...
0
votes
1answer
21 views

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

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 ...
1
vote
1answer
141 views

How to do traffic shaping (rate limiting) with TC per OpenVPN client

This question is related to another question with a great answer and script from @Oliver. The goal: I want to modify/extend the script provided in this answer to suit my requirements, which are as ...
1
vote
0answers
84 views

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 ...
0
votes
0answers
31 views

Nginx - How to get the ip addresses from limit_req_zone?

Using the following configuration in nginx limit_req_zone $binary_remote_addr zone=delta:8m rate=10r/m; error_page 404 /404.html; location = /404.html { limit_req zone=...
1
vote
1answer
99 views

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'...
0
votes
1answer
166 views

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 ...
1
vote
0answers
46 views

Nginx limit_req_zone ignores rate value

I have a strange behavior my config looks something like this: http { limit_req_zone $binary_remote_addr zone=nocachelimit:10m rate=120r/m; } ... location "/api" { { limit_req zone=...
0
votes
0answers
42 views

Nginx + Passenger: limit_req_zone not working

I have nginx + passenger installed on the server. In the nginx.conf file, I have the following configuration: http { .... limit_req_zone $binary_remote_addr zone=delta:10m rate=2r/m; ... ...
0
votes
0answers
22 views

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

Nginx - Can I specify rate in limit_req_zone in requests per hour?

While limiting the number of requests from an IP, I am using limit_req_zone $binary_remote_addr zone=one:10m rate=1r/m; I can specify the rate in r/m (requests per minute) or r/s (requests per ...
0
votes
0answers
58 views

HAProxy http_req_rate limit doesn't kick in

I'm trying to setup a rate limit on my HAProxy frontend, to prevent more than X requests to be sent to the backend in a specific time frame. As an example I want to limit to 1 request every 10 ...
1
vote
0answers
94 views

linux tc qdisc pie (aqm) configuration with limited bandwidth

I would like to configure AQM PIE by using tc-qdisc, but at the same time I would like to limit the bandwidth to 1Mb/s. I have used similar configuration with fq_codel, i.e. I have limited the ...
0
votes
0answers
55 views

Cisco ME3400 IP-Based Bandwidth Limitation

The Cisco we use is: show version Cisco IOS Software, ME340x Software (ME340x-METROIPACCESSK9-M), Version 12.2(55)SE, RELEASE SOFTWARE (fc2) Technical Support: http://www.cisco.com/techsupport ...
3
votes
1answer
175 views

What rate limiting options are provided by ISC BIND?

This is a Canonical Question about rate limiting in the ISC BIND nameserver software. Recently I've heard of BIND's rate limiting features. DNS RRL in particular seems to be becoming more ...
0
votes
1answer
138 views

Nginx: Can I setup a limit_req_zone with a key with IP + URI?

I'm trying to setup Nginx limit_req module to limit the request rate that any IP can make to the same URL. I would like to define the limit_req_zone with a key that is composed by a combination of ...
3
votes
3answers
292 views

Block ANY request in Bind

I'm having trouble figuring out how to block ANY dns request on BIND to lower the changes of a DNS Amplification attacks. I've seen guides online but most of them appear to perform rate limit via ...
0
votes
0answers
44 views

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 ...
0
votes
0answers
31 views

Bandwidth throttling

i am trying to limit download speed on my server only downloads i tried to use wondershaper and trickle but they both mess up with my upload speed tried everything to fix it but no success so is ...
0
votes
1answer
100 views

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 ...
0
votes
2answers
230 views

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 ...
2
votes
1answer
147 views

Rate limiting using haproxy per url per ip

Our servers are being hit by someone constantly. Its not DDOS. Just one ip hits one url more than 200 times a second. Currently I am blocking the user by ip tables. We are using HAproxy for load ...
0
votes
1answer
918 views

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 ...
1
vote
1answer
44 views

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

Can we prioritize devices connected to a Router

If a number of devices are connected to a router, can we prioritize them (PC - 1, Mobile - 2, Laptops - 3) by giving their MAC addresses. That way if everybody is working, depending upon their ...
0
votes
2answers
122 views

How to workaround a IP whitelist when consuming a 3rd-party API?

We use a service who's API will reject requests unless the source IP has been previously whitelisted. They only give us 3 slots which is a problem because we have more than 3 machines that need to use ...
0
votes
0answers
226 views

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,...
2
votes
1answer
373 views

Postfix - rate limit outgoing concurrent connections to one machine/ip

I need to limit postfix outgoing connections for specific mailservers, but it seems to me that posfix's limiting is based on domains? What if there is one mailserver for more domains? I tried to find ...
0
votes
1answer
354 views

Limit maximum requests / second for a specific path on HAProxy

I'm trying to achieve this scenario : On a specific path only, I receive a steady 9 requests/sec on the frontend. Everything is fine, use the regular Backend. I now receive 11 req/s, I want to reject ...
0
votes
1answer
830 views

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 ...
0
votes
0answers
60 views

varnish flexible rate limit by api token

I have a REST API requires authentication via OAuth tokens. The tokens have different rate limits (10k, 100k, 1M, unlimited). I currently used for Node.JS with Expressjs and middleware (express rate)....
0
votes
0answers
147 views

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 ...
0
votes
2answers
343 views

Rate limit misconfigured bots

We have an Nginx / PHP-FPM behind a load balancer which periodically gets scraped. Many of the scrapers hit our application's 404 page quiet hard. Is there a way in Nginx, possibly with the rate-...
3
votes
2answers
2k views

Is there a way to rate limit connection attempts with firewalld?

On our CentOS 6 servers, I've used information from this article to reduce the brute force ssh attempts on our servers, specifically the rate limiting / logging section. Is there a way to do the same ...
3
votes
1answer
2k views

Is there a way to rate limit connections with HAProxy using multiple thresholds

I've implemented simple rate limiting using HaProxy in a similar fashion to the way StackExchange does it with HaProxy. I'm trying to make it a bit more advanced so that there are multiple thresholds ...
4
votes
1answer
520 views

Common back pressure strategies for services under sustained high load

I'm wondering what are the common backpressure strategies people use for their web services? Imagine your service operates under heavy load, and at some point the load reaches 120% of your capacity. ...
0
votes
1answer
119 views

Traffic shaping for upload/download speed simulation [duplicate]

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 ...
1
vote
0answers
260 views

Rate limiting bots (specific IPs) in NGINX

I would like to rate-limit (but not block) various crawlers. Based on other examples of similar questions, I've come up with this: http { ## 10MB zone, 5 reqs per sec limit_req_zone $limit zone=...
0
votes
0answers
194 views

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; ...
2
votes
1answer
352 views

Configuring RRL on a DNS server using BIND

I'd like to configure a DNS server to use Response Rate Limiting (RRL) to mitigate DNS DDoS attacks. Whatever, I have to configure it top use RRL with the 'slip' parameter at 2. I've made some search,...
0
votes
2answers
59 views

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. ...
1
vote
0answers
1k views

tc qdisc tbf - calculate sensible latency and burst from rate

I want to create a simple script that lets me limit the outgoing speed of an interface somewhere between 56k (modem speed) and 1MBit/s. I found that something along the following does the job: tc ...
0
votes
1answer
203 views

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 ...
2
votes
1answer
91 views

Postfix and smtpd_client_rate_limit to detect compromissed accounts

Some of our clients are administrators who need to send corporative messages to no more than 300 clients, specifying all of these clients together in the "To:" fields, instead of individual messages ...
1
vote
1answer
926 views

Nginx: How to limit request rate based on user agent

Trying to get the following behavior working in nginx A default rate limit of 1r/s for each ip when using a browser. A rate limit of 10r/s for bing and google spiders. Reject bad bots. Unfortunately ...
3
votes
2answers
3k views

Rate limit exim per user basis

How can I implement "rate limit" in Exim so that every user in my exim can send specific number of emails per day. List A of Users can send 100 emails per day and the list B of users can send 500 ...
1
vote
0answers
684 views

Linux Traffic Controller (Linux tc): hierarchical token bucket (htb) packet queue size

In my Linux router, I am using the following configuration to limit the rate of traffic towards port 44444 of a client in the LAN (client address is 192.168.10.2, connected through the router's eth1 ...
1
vote
1answer
338 views

Limit max bandwidth per IP

I have some partners, that uses one of my linux servers as a gateway. The problem is I need to limit bandwidth per client ip address on this gateway. My partners client ip ranges are not known to me. ...
1
vote
1answer
265 views

apache rate limit best practice

I have the following business scenario: apache http server load balances client request to application servers via ajp all the resource intensive work is done on application servers for each request ...