Questions tagged [connlimit]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
1answer
798 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
36 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
2k 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
138 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
543 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
284 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
176 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
588 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: " --...