Date: Mon, 31 May 1999 17:41:19 +1000 From: Hugh Blandford <hugh@island.net.au> To: questions@freebsd.org Subject: Re: IPFW and byte counting on multiple interfaces Message-ID: <3.0.6.32.19990531174119.007f3ac0@mail.island.net.au> In-Reply-To: <3.0.6.32.19990531155049.008c8410@mail.island.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, should have mentioned earlier that I have tried the following rule and seem to be getting twice as many bytes counted for both in and out than I would expect: 00050 1624 135892 count ip from any to any in recv de0 00060 1766 1830454 count ip from any to any out xmit de0 I have also tried using not and their internal network number and it still doesn't seem to make any difference. Thanks, Hugh At 15:50 31/05/99 +1000, you wrote: >Hi, > >I am trying to use IPFW to count the number of bytes that are received and transmitted from a particular interface. One interface is connected to an internal network using a private address range 192.168.x.x and natd, the other interface is connected to the net. > >The machine is running proxy and mail etc and internally people are using ICQ etc etc. I need a way to count the bytes that come from and go to, the outside world. I don't want to catch any proxy hit traffic or anything like that. > >I'm assuming that the only way I can do that is to put the counters prior to the address translation in the firewall. Is this correct? What syntax for the ipfw entry should I use? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.6.32.19990531174119.007f3ac0>