Alex 'CAVE' Cernat wrote:

>On Thu, 14 Apr 2005 14:25:26 +0100
>[EMAIL PROTECTED] wrote:
>
>  
>
>>asta inseamna ca se vor permite numai 2 cereri de conexiune de la
>>aceiasi sursa, dupa care pentru restul se va face drop.
>>    
>>
>
>au bagat astia in iptables asa ceva ? sigur nu e numarul total de
>conexiuni pentru regula respectiva (de la orice ip sursa, bagat la
>gramada?)
>

e de mult in patch-o-matic. eu o folosesc de vreo 2 ani cred.


      iptables connlimit match

Author: Gerd Knorr <[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]>
Status: ItWorksForMe[tm]

This adds an iptables match which allows you to restrict the
number of parallel TCP connections to a server per client IP address
(or address block).

Examples:

# allow 2 telnet connections per client host
iptables -p tcp --syn --dport 23 -m connlimit --connlimit-above 2 -j REJECT

# you can also match the other way around:
iptables -p tcp --syn --dport 23 -m connlimit ! --connlimit-above 2 -j ACCEPT

# limit the nr of parallel http requests to 16 per class C sized
# network (24 bit netmask)
iptables -p tcp --syn --dport 80 -m connlimit --connlimit-above 16 \
        --connlimit-mask 24 -j REJECT



acel "connections to a server per client IP address" eu zic ca e 
raspunsul la intrebarea ta


--- 
Detalii despre listele noastre de mail: http://www.lug.ro/


Raspunde prin e-mail lui