Linux Netfilter discussions
 help / color / mirror / Atom feed
From: uniplex <uniplex@maximum-linux.net>
To: "Leonardo Rodrigues Magalhães" <leolistas@solucoesip.net>
Cc: netfilter ML <netfilter@lists.samba.org>
Subject: Re: question on rating SYN packets
Date: Sat, 08 Feb 2003 18:44:00 +0000	[thread overview]
Message-ID: <3E454FF0.4050803@maximum-linux.net> (raw)
In-Reply-To: 009501c2cfa7$95624a50$3201a8c0@ESTACAO

Leonardo Rodrigues Magalhães wrote:
>     I already do limit of parallel connections. But I'd also like to limit
> the number of NEW connections from EACH host.
> 
>     Let's suppose I'll allow 10 parallel connections per host per port.
> That's easy with iplimit. But I'd also like to limit 1 new connection per
> second. So a single host wouldnt establish 10 new connections in 1 second,
> for example. I'd like to allow 10 connections in parallel ( iplimit does
> this ) and 1 new connection per second PER host ( this I dont know how to
> do ).
> 
>     Is this possible, somehow, with iptables ?
> 
>     Sincerily,
>     Leonardo Rodrigues

iptables -N synlimit
iptables -A INPUT -i eth0 -p tcp --dport 80 -j synlimit
iptables -A synlimit -m recent --rcheck --seconds 1 --name onesec -j DROP
iptables -A synlimit -m iplimit --iplimit-above 10 -j DROP
iptables -A synlimit -m recent --update --name onesec -j ACCEPT

I don't know if this would work, but it's my best guess.. gl.



      reply	other threads:[~2003-02-08 18:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-07 22:01 question on rating SYN packets Leonardo Rodrigues Magalhães
2003-02-07 19:48 ` uniplex
2003-02-08 19:23   ` Leonardo Rodrigues Magalhães
2003-02-08 18:44     ` uniplex [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E454FF0.4050803@maximum-linux.net \
    --to=uniplex@maximum-linux.net \
    --cc=leolistas@solucoesip.net \
    --cc=netfilter@lists.samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox