[clug] Obsessing over IPv6 - watching home usage

Craig Small csmall at enc.com.au
Sat May 7 19:28:13 MDT 2011


On Sun, May 08, 2011 at 10:07:37AM +1000, Paul Wayper wrote:
> I'm using the Internode tunnel terminated on my home server, so the tunnel
> endpoint is a Linux machine that I can use netflow or similar on.  I don't
> really need to know exactly what the traffic is, I'm just curious to see the
> percentage of traffic - packets and bytes - that's IPv6 versus IPv4.  Do any
> of the networking experts on the list know of an easy way to do this?
It depends on how you have setup the network and IPv6.  Internode lets
you use IPv6 either directly through the PPP connection or to their
tunnel broker. For me, I have to use the tunnel broker so I have the
client on one device and the PPPoE/A termination on another.

If the Linux computer is the termination point for PPPoE/A then it gets
tricky, because the interface stats show all packets. Packet/Datagram
count is pretty simple but byte count is harder.

Actually, probably the quickest and nastiest way would be two lines in
iptables and ip6tables that count the bytes going into and out of the
PPPoE/A tunnel.

If they are two different devices like what I have, the PPP interface of
the ADSL modem has all traffic, while the tun interface has IPv6.
One day I'll have it all on the same one.

 - Craig
-- 
Craig Small VK2XLZ    http://www.enc.com.au/       csmall at : enc.com.au
Debian GNU/Linux      http://www.debian.org/       csmall at : debian.org
GPG fingerprint:       1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5


More information about the linux mailing list