Date: Fri, 28 Oct 2005 21:10:03 +0400 From: "Andrew P." <infofarmer@gmail.com> To: Grant Peel <gpeel@thenetnow.com> Cc: freebsd-questions@freebsd.org, Jamie Cameron <jcameron@webmin.com> Subject: Re: IPFW - Counter Message-ID: <cb5206420510281010t40dbad2fw6d4a16661889e5b8@mail.gmail.com> In-Reply-To: <013901c5dbd6$1a71ff50$6401a8c0@GRANT> References: <013901c5dbd6$1a71ff50$6401a8c0@GRANT>
next in thread | previous in thread | raw e-mail | index | archive | help
On 10/28/05, Grant Peel <gpeel@thenetnow.com> wrote: > Hi all, > > Is is possible, to make a single rule counter, or, a multiple rule counte= r > (maybe that pies to 1 single counter), so one can track inclomming and > outgoing bandwidth? > > I would like to say: > > 000001 count from any to any via 1.2.3.4 > > or > > 000001 count 1.2.3.4 > > To have the same effect as: > > 000001 count from any to 1.2.3.4 in via fxp0 > 000002 count from 1.2.3.4 to and out via fxp0 > > but somehow I don't think they will work :-) > > -Grant > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" > You can try using pipes for some kind of consolidation (they are not meant for it, of course). You can also use skips like this: skipto 1000 <type-a> skipto 1000 <type-b> ... skipto 1500 ip from any to any And have rule number 1001 that counts all the types you have defined. Or you can try telling us precisely what you want, we might come up with some rules.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cb5206420510281010t40dbad2fw6d4a16661889e5b8>