From owner-freebsd-questions@FreeBSD.ORG Wed Dec 21 06:45:28 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 814C016A41F for ; Wed, 21 Dec 2005 06:45:28 +0000 (GMT) (envelope-from deepak_nai@yahoo.com) Received: from web34605.mail.mud.yahoo.com (web34605.mail.mud.yahoo.com [209.191.68.139]) by mx1.FreeBSD.org (Postfix) with SMTP id 676B543D5F for ; Wed, 21 Dec 2005 06:45:27 +0000 (GMT) (envelope-from deepak_nai@yahoo.com) Received: (qmail 95977 invoked by uid 60001); 21 Dec 2005 06:45:26 -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=TdvZERa0QmCKZIhGRpgmeth7FH1P8nHD1BPtyor7PAGAEj3RjjHb3zmlJG2LnnzWQu6ds4Z4OpsSPFhUzwI4vyAzv+yS+rC8OZCJQBBauOF/scGyNdEM55cgZhZv1t4m0fxr77HOuZlBc+wkOS55IF23A9UbTm6S3PztweeDiDI= ; Message-ID: <20051221064526.95975.qmail@web34605.mail.mud.yahoo.com> Received: from [202.149.214.46] by web34605.mail.mud.yahoo.com via HTTP; Wed, 21 Dec 2005 06:45:26 GMT Date: Wed, 21 Dec 2005 06:45:26 +0000 (GMT) From: Deepak Naidu To: Peter , freebsd-questions@freebsd.org In-Reply-To: <20051220185342.99492.qmail@web60021.mail.yahoo.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 Cc: Subject: Re: network monitoring tool X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 06:45:28 -0000 You can try bandwidthd, iftop, iptraff applications which i used in Linux.. I hope u may get BSD equilavent of them.... Cheers, Deepak Naidu. Peter wrote: --- Imran Imtiaz wrote: > can anyone tell me which is the best network monitoring tool for unix > which can tell me that from which ip the traffic is comming and the type > of traffic and in which i can give a criteria like today which ip has > downloaded how much amount of data. I am currently using ntop but it is > not showing me the details based on criteria it just show me the traffic > from the day it is up. I want something simple and effective. I use OpenBSD's pf and, with its label feature, it is not difficult to extract statistics with a shell script. Right now I am looking at traffic type, not IP addresses. It all depends on how you create your rules. Below is a sample pf rule and the output my script provides me. pass out on $EXT \ inet proto udp \ from $EXT to any \ port 123 \ keep state \ label "outbound - $proto:$dstport ->" ============================ Host: kovacs.domain.com Interface: tun0 Month: December 2005 Timestamp: Dec 20 13:30 Data time: 8d 3h 40m ------------------------------------------ Traffic type Bytes-in Bytes-out ------------------------------------------ icmp:echoreq 45108 45528 tcp:110 343961 52701 tcp:113 0 0 tcp:11371 0 0 tcp:119 0 0 tcp:20 0 0 tcp:21 123577 79800 tcp:22 0 0 tcp:25 50400 53476 tcp:2703 0 0 tcp:43 5833 863 tcp:443 12338 2914 tcp:53 0 0 tcp:6112 0 0 tcp:6667 0 0 tcp:80 48203259 5243942 udp:123 366396 381064 udp:53 2629955 1584473 udp:6277 2384 2262 -------------------------------------------------- TOTALS(B) 51603928 7401496 TOTALS(MB) 49.21 7.05 RATE(B/m) 4395.56 630.45 ============================ __________________________________________________________ Find your next car at http://autos.yahoo.ca _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" Linux your Life, Don't Window it [[]] { All for the best } --------------------------------- To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre.