Title: Re: limit simultaneous connections

If you're using linux, you could use iptables with a connlimit match to do this, e.g.
 
# rejects smtp connection if their are already 2 established connections from same source ip
iptables  -p tcp --syn --dport 25 -m connlimit --connlimit-above 2 -j REJECT
 
# rejects smtp connection if their are already 2 established connections from same source /24 subnet
iptables  -p tcp --syn --dport 25 -m connlimit --connlimit-above 2 --connlimit-mask 24  -j REJECT
 
J.T.
----- Original Message -----
Sent: Monday, May 29, 2006 8:51 PM
Subject: Re: limit simultaneous connections

Actually, I would love to see concurrencyremote per ip or subnet, with a default rule..
--------------------------
Sent from my BlackBerry Wireless Handheld


-----Original Message-----
From: Diego Zuaneti Arruda <[EMAIL PROTECTED]>
To: qmail-ldap@qmail-ldap.org <qmail-ldap@qmail-ldap.org>
Sent: Mon May 29 16:42:50 2006
Subject: limit simultaneous connections

  Hi all,

   Somebody knows some patch to limit simultaneous connections from the same
IP ?




Thanks.

Diego.

Reply via email to