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)

3
votes
1answer
2k views

VLAN based rate limiting using tc

I have been trying to perform VLAN based rate limiting on an academic project I am working on. The project uses Openflow (with Beacon controller) and the network is emulated using Mininet. The network ...
0
votes
2answers
1k views

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 ...
1
vote
1answer
136 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 ...
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
29 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
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 ...
1
vote
0answers
92 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
30 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=...
0
votes
1answer
627 views

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-...
1
vote
1answer
95 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'...
1
vote
2answers
1k views

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?
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 ...
0
votes
1answer
147 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
45 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
41 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
257 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
57 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 ...
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 ...
0
votes
0answers
52 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
137 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
288 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
172 views

Rate Limit Xen DomU Network Traffic

Is there a solid way to rate limit Xen DomU Network I/O Traffic? I found an answer on here using tc but I get this error: Object "qdisk" is unknown, try "tc help". I guess a solution to either of ...
4
votes
3answers
3k views

Nginx - What is does the nodelay option do when limiting requests?

With the nginx HttpLimitReq module requests can be limited by IP. However, I'm not understanding what the "nodelay" option does. If the excess requests within the limit burst delay are not ...
2
votes
1answer
144 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
96 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
1answer
899 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 ...
0
votes
2answers
226 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 ...
4
votes
2answers
2k views

How soon does nginx's token bucket replenish when limiting at requests per minute?

We've decided that we want to experiment and limit requests per minute instead of requests per second on our sites. However, I am confused by the burst parameter in this context. I am under the ...
6
votes
3answers
8k views

Should I rate-limit packets with iptables?

I'm using iptables on Ubuntu Server. It's a web server on a VPS. I'd like to know if I should rate-limit packets. If so, what should I rate-limit? And should I do so globally or per IP address? ...
0
votes
2answers
121 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 ...
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 ...
1
vote
1answer
264 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 ...
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 ...
0
votes
0answers
225 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
372 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
331 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
825 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)....
4
votes
1answer
257 views

nginx and cloudlfare ip confusion?

I am using the below config in http block of my nginx.conf to get real ip while using Cloudflare acceleration service: ## Cloudflare settings to get Real IP's set_real_ip_from 204.93.240.0/...
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
341 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
1answer
963 views

Limiting bandwidth with hashlimit (e.g. kb/s — not connections!) doesn't work, though the man page says it should

According to the iptables-extensions man page hashlimit can do bandwidth limiting: "flows exceeding 512kbyte/s" => --hashlimit-mode srcip,dstip,srcport,dstport --hashlimit-above 512kb/s ...
4
votes
1answer
517 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. ...
-2
votes
1answer
156 views

How can I detect if an online backup service is doing IP-based throttling? [closed]

I live on a campus in the US and I am trying to understand why my upload speed to the online backup service Backblaze on area Y of the campus is 10 times slower than on area X of the campus (20000 vs ...
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 ...