Limit the number of connection per host ?
Pierre-Gilles Mialon
pierre-gilles at netaktiv.com
Fri Aug 27 05:59:02 PDT 2004
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 at netaktiv.com
More information about the freebsd-ipfw
mailing list