From owner-freebsd-net@FreeBSD.ORG Sun Jun 18 14:26:45 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 834D916A482 for ; Sun, 18 Jun 2006 14:26:45 +0000 (UTC) (envelope-from trashy_bumper@yahoo.com) Received: from web36304.mail.mud.yahoo.com (web36304.mail.mud.yahoo.com [209.191.84.234]) by mx1.FreeBSD.org (Postfix) with SMTP id EF5DC43D49 for ; Sun, 18 Jun 2006 14:26:44 +0000 (GMT) (envelope-from trashy_bumper@yahoo.com) Received: (qmail 81733 invoked by uid 60001); 18 Jun 2006 14:26:44 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=fsu54gaeqdEE1gB1Y6FHn4NI4dLJ/N5SBbpU01UwuQOJMKG3/+ScH3IYaawER+rYCk1jfTiwc8mcFW2vEYoWZ3rIVRsxo6TeBOWPlVGIYyKb2N1CYPYrTPOH60nVkNNpqwurwweG3BdNPJBzSA7WcpCsjYczR8jVEBzzlXuWBbw= ; Message-ID: <20060618142644.81731.qmail@web36304.mail.mud.yahoo.com> Received: from [213.227.206.11] by web36304.mail.mud.yahoo.com via HTTP; Sun, 18 Jun 2006 07:26:44 PDT Date: Sun, 18 Jun 2006 07:26:44 -0700 (PDT) From: Nash Nipples To: freebsd-net@freebsd.org In-Reply-To: <4495530f.265f68ff.360d.48fa@mx.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Simple LAN IP accounting X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:26:45 -0000 ipfw add 5 skipto 500 ip from 192.168.110.1 to any out via tun0 ipfw add 10 skipto 500 ip from any to 192.168.110.1 to any in via tun0 ipfw add .. skipto 500 ip from 192.168.110... to any out via tun0 ... ipfw add 500 divert from any to any in via tun0 #back to normal rules ipfw show 00005 274943 64986791 ip from 192.168.110.1 to any out via tun0 00010 274943 64986791 ip from any to 192.168.110.1 in via tun0 thats pretty stupid but works. and you need a program to proccess the output thats what im working on time to time :) it doesnt overload the filter cuz a matching rule is passed once at a time and the unmatched skipped to normal rules. if you get out of ipfw rules limits you might consider to split.. lol anyone else? nash "Roger T. Harvey" wrote: Ok, I've done research, and found this example to track bytes per ip on LAN: $IPFW pipe 1 config mask src-ip 0xffffffff buckets 512 $IPFW pipe 2 config mask dst-ip 0xffffffff buckets 512 $IPFW add 32001 pipe 1 src-ip 192.168.110.0/24 bridged $IPFW add 32002 pipe 2 dst-ip 192.168.110.0/24 bridged Now that's all well and good, and I saw the output as well. However, im not running bridged. or does that make a difference in this instance? Also, is there any scripts, etc to format the pipe info into a nice readable format (pref html) Doesn't need graphs, etc. Just Daily and Monthly totals would be nice. (I am running MySQL so it can store the data) Concidered to this list, you can call me a newbie for sure. as I only know how to Do a handful of things and that's about it. which is why im asking here. TIA to everyone _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta.