From owner-freebsd-questions@FreeBSD.ORG Tue Jun 12 17:49:15 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C72CA16A400 for ; Tue, 12 Jun 2007 17:49:15 +0000 (UTC) (envelope-from zhangweiwu@realss.com) Received: from bossdog.realss.com (bossdog.realss.com [211.157.108.128]) by mx1.freebsd.org (Postfix) with ESMTP id 53DF413C44C for ; Tue, 12 Jun 2007 17:49:15 +0000 (UTC) (envelope-from zhangweiwu@realss.com) Received: from localhost (unknown [127.0.0.1]) by bossdog.realss.com (Postfix) with ESMTP id 5FE4E1C0008 for ; Wed, 13 Jun 2007 01:49:16 +0800 (CST) Received: from bossdog.realss.com ([127.0.0.1]) by localhost (bossdog.realss.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09170-20 for ; Wed, 13 Jun 2007 01:49:15 +0800 (CST) Received: from eula (142.52.72.124.board.xm.fj.dynamic.163data.com.cn [124.72.52.142]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by bossdog.realss.com (Postfix) with ESMTP id 300A41C0004 for ; Wed, 13 Jun 2007 01:49:15 +0800 (CST) Date: Wed, 13 Jun 2007 01:47:53 +0800 From: Zhang Weiwu To: freebsd-questions@freebsd.org Message-ID: <20070613014753.5b031ccf@eula> Organization: Real Softservice X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.10.11; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: amavisd-new at bossdog.realss.com Subject: iftop doesn't work with tun0? 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: Tue, 12 Jun 2007 17:49:15 -0000 As of 0.17, iftop change log says it being to support ppp interface, while in my case it doesn't work for my tun0 which is created by /etc/rc.d/ppp (DSL connection). Launch 'iftop -i tun0' does correctly show up all active TCP connections and from/to address, but bandwidth usage for every connection are always '0b'. Any one hit this problem too or give me a hint? I googled but earliest post about tun0 and iftop is on 2004, before release 0f v0.17 of iftop. Again I am not sure if I should mail iftop developers, as maybe they didn't design specifically for FreeBSD. Or, at least, perhaps someone already successfully run iftop on ppp link and can tell me if this behavior I saw is normal or not. Thanks a lot in advance! Below is example output of monitoring tun0. When working on fxp0 it's 100% correct. 12.5Kb 25.0Kb 37.5Kb 50.0Kb 62.5Kb =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=B4=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=B4= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=B4=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=B4=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80 242.6.198.160 =3D> 209.85.139.18 0b 0b 0b =20 <=3D 0b 0b 0b =20 242.6.45.125 =3D> 209.85.139.18 0b 0b 0b =20 <=3D 0b 0b 0b =20 242.6.241.248 =3D> 209.85.139.18 0b 0b 0b =20 <=3D 0b 0b 0b =20 51.6.214.188 =3D> 209.85.139.18 0b 0b 0b =20 <=3D 0b 0b 0b =20 51.6.214.186 =3D> 209.85.139.18 0b 0b 0b <=3D 0b 0b 0b 51.6.214.252 =3D> 209.85.139.18 0b 0b 0b <=3D 0b 0b 0b 51.6.214.96 =3D> 209.85.139.18 0b 0b 0b <=3D 0b 0b 0b =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80 TX: cumm: 0B rates:k: 0b0b 0b 0b =20 RX: 0B 0b0b 0b 0b =20 TOTAL: 0B 0b0b 0b 0b =20