* is it possible to limit the connection number?
@ 2003-02-28 7:48 SB CH
2003-03-05 17:09 ` Alexander W. Janssen
0 siblings, 1 reply; 2+ messages in thread
From: SB CH @ 2003-02-28 7:48 UTC (permalink / raw)
To: netfilter
Hello all.
I would like to limit the connection number per ip
using iptables extension function.
for example, one can connect the firewall behinded server just 10 per a
hour.
Is it possible to set using iptables?
thanks in advance.
_________________________________________________________________
고.. 감.. 도.. 사.. 랑.. 만.. 들.. 기.. MSN 러브
http://www.msn.co.kr/love/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: is it possible to limit the connection number?
2003-02-28 7:48 is it possible to limit the connection number? SB CH
@ 2003-03-05 17:09 ` Alexander W. Janssen
0 siblings, 0 replies; 2+ messages in thread
From: Alexander W. Janssen @ 2003-03-05 17:09 UTC (permalink / raw)
To: Netfilter Mailinglist
[-- Attachment #1: Type: text/plain, Size: 955 bytes --]
On Fri, Feb 28, 2003 at 07:48:50AM +0000, SB CH wrote:
> Hello all.
>
> I would like to limit the connection number per ip
> using iptables extension function.
> for example, one can connect the firewall behinded server just 10 per a
> hour.
>
> Is it possible to set using iptables?
You can use the limit-match for this:
iptables -A FORWARD -s $LIMITED_HOST -d $DESTINATION \
-m state --state NEW -m limit --limit 10/hour -j ACCEPT
But you need some dropping/rejection rule later as well. And be sure that you
have some rule which allows ESTABLISHED connections, like
iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
But i think that's more a work for some application-proxy like Squid...
> thanks in advance.
Hope that helps,
Alex
--
"Mr Data, when I said 'Fire at Will', I didn't mean for you to be so literal."
Instructions for use of this post: Insert tounge in cheek. Read as normal.
[-- Attachment #2: Type: application/pgp-signature, Size: 248 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-03-05 17:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-28 7:48 is it possible to limit the connection number? SB CH
2003-03-05 17:09 ` Alexander W. Janssen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox