Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jul 2000 10:11:36 +0200 (CEST)
From:      Luigi Rizzo <luigi@info.iet.unipi.it>
To:        J & C Frazier <admin@csocs.com>
Cc:        freebsd-isp@FreeBSD.ORG
Subject:   Re: Dummynet
Message-ID:  <200007130811.KAA12462@info.iet.unipi.it>
In-Reply-To: <396D75F0.C21F9CAD@csocs.com> from J & C Frazier at "Jul 13, 2000 01:55:28 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> Anyone know of a good documentation page for creating a dummynet
> or another means of accounting for all traffic per IP instead of per
> interface?

	ipfw add pipe 1 ip from any to any
	ipfw pipe 1 config mask src-ip 0xffffffff

and then every now and then run

	ipfw pipe 1 show

(most likely you will need to apply some additional
filtering so that packets do not get accounted twice on a machine
acting as a router. See the ipfw(8) manpage.

	cheers
	luigi
-----------------------------------+-------------------------------------
  Luigi RIZZO, luigi@iet.unipi.it  . Dip. di Ing. dell'Informazione
  http://www.iet.unipi.it/~luigi/  . Universita` di Pisa
  TEL/FAX: +39-050-568.533/522     . via Diotisalvi 2, 56126 PISA (Italy)
  Mobile   +39-347-0373137
-----------------------------------+-------------------------------------


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




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