Questions tagged [connlimit]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
23 views

fail2ban config ban connlimit

Im trying to make a config for fail2ban that ban ip's that exceeed the connlimit rule: iptables -A INPUT -p tcp -m connlimit --connlimit-above 80 -j REJECT --reject-with tcp-reset Any tips on how to ...
0
votes
1answer
51 views

Nginx: Limiting number of connections for all content types with exceptions

I'm limiting number of simultaneous connections from one $remote_user to n using conn_limit It works like a charm. However, I will be thrilled to find a way to add exceptions to this. I want user to ...
0
votes
1answer
134 views

Nginx: restrict number of connections per basic auth user

Got nginx serving several big files. Users get access through basic authentication. htpasswd I want to curtail simultaneous download of files to 5 connections max PER USER. There are more than 1 user ...
3
votes
1answer
2k views

How do you set a max connection limit with nftables?

I'm looking to limit the number of concurrent connections to a given service running on a Linux server. My understanding is that this can be done in iptables using the connlimit module. So for example,...
-1
votes
1answer
40 views

How to limit number of connections user may use?

I have a process greedyprocess that is always run as user greedyuser that uses too many NAT connections. They aren't using too much bandwidth, instead they are clogging up the router's NAT table. Is ...
1
vote
1answer
3k 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'...
2
votes
0answers
146 views

nginx limit connections based on parameters

My website is a forum, and it has 3 type of URLs as below: Thread view: forum.php?mod=viewthread&tid=1256&page=2 Thread List: forum.php?mod=forumdisplay&fid=125&page=61 Display ...
0
votes
1answer
600 views

only allow a specific port that can be connected by only one ip address at the same time

I have a open port, 40002, I want to limit that at the same time the port can only be connected by one ip address(not specific address). if there is an ip address conntecing to that port already, ...
1
vote
1answer
2k views

iptables connlimit: exclude multiple IP addresses

I have currently this IPTABLES command: iptables -A INPUT -s ! 192.168.0.2 -p tcp --syn -m connlimit [...] -j DROP As far as I know, such rule limit some number of connections following various ...
2
votes
0answers
306 views

HAProxy: Limmit concurrent connections based on HTTP header field

I try to limit the number of concurrent connections using HAProxy stick-tables based on HTTP header fields. I could find plenty of examples using IP addresses, but this doesn't work in my case. Our ...
0
votes
1answer
182 views

apache how to limit per user ip

i have a password protected directory with hundreds of users in htpasswd file. i want to allow download of files on these conditions: check if username is valid (already done). check if another ...
1
vote
1answer
2k views

Nginx Config on DreamHost VPS

I got my site up and running on nginx on my Dreamhost VPS. Cool. I wanted to limit the number of connections per IP by adding the following to the http block of the site-wide nginx conf file (/dh/...
2
votes
2answers
668 views

What can lead to a zone memory exhaustion and how Nginx reacts to it?

What is a possible scenario for exhausting the memory designated to a connection zone with limit_conn_zone directive and what are the implication in this case? Suppose I have this in my configuration:...
2
votes
1answer
3k views

Limit administrator RDP session to single instance instead of default 2 simultaneous?

I have a special request case on one server, win2003 R2, where they are accessing it via RDP administrative session. There are multiple users who access it but they want to ensure only a single user ...
0
votes
2answers
2k views

iptables connlimit triggering unexpectedly

I've been using these firewall rules: -I FORWARD -p tcp --syn -m connlimit --connlimit-above 50 -j REJECT -I FORWARD -p tcp --syn -m connlimit --connlimit-above 50 -j LOG --log-prefix "CONNLIMIT: " --...