Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jun 2007 01:47:53 +0800
From:      Zhang Weiwu <zhangweiwu@realss.com>
To:        freebsd-questions@freebsd.org
Subject:   iftop doesn't work with tun0?
Message-ID:  <20070613014753.5b031ccf@eula>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070613014753.5b031ccf>