On Wednesday 06 June 2007 13:15, Freminlins wrote:
> Hi,
> I am trying to limit the number of connections from "foreign" networks
> to a server. I don't want to limit bandwidth, just the number of
> connections. Let's say I have a network I want to allow
> to have at most 50 connections. I want to allow
> to have 20 connections. And so on. Is this even possible?
> Some applications can do this but I would prefer to do this at the
> network level.

Yes, it is possible. The keyword is 'limit'. From the ipfw manual:

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.  Currently,
      only IPv4 flows are supported.

HTH, Nikos
freebsd-questions@freebsd.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to