Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Aug 2004 14:58:59 +0200
From:      Pierre-Gilles Mialon <pierre-gilles@netaktiv.com>
To:        freebsd-ipfw@freebsd.org
Subject:   Re: Limit the number of connection per host ?
Message-ID:  <20040827125859.GI20492@staff.netaktiv.com>
In-Reply-To: <20040827102302.GE20492@staff.netaktiv.com>
References:  <20040827102302.GE20492@staff.netaktiv.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Le Fri, Aug 27, 2004 at 12:23:02PM +0200, Pierre-Gilles Mialon a écrit:
> 	Is it possible to limit the number of connection
> per host, on FreeBSD routeur using natd to share a connection.
> 
> 	I want to limit the use of p2p programs so I want to limit at
> 120 the number of tcp connections opened per host, is it possible using
> Ipfw ?

Sorry I find it in "man ipfw"
 
<MAN IPFW> 
     limit {src-addr | src-port | dst-addr | dst-port} N

     The firewall will only allow N connections with the same
set of parameters as specified in the rule.  One or more of
source and destination addresses and ports can be specified.
</MAN IPFW>

Too easy to believe ! Thanks for your work, and for the quality of the
documentation !

-- 
Pierre-Gilles Mialon
mialon@netaktiv.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040827125859.GI20492>