[nSLUG] Linux nat router and finding the bandwidth hog
dflogeras2 at gmail.com
Tue Apr 22 09:57:50 ADT 2014
Two great text (ncurses) utilities I use regularly are iptop and more
recently, iptraf-ng. Hopefully your distro has them, but if not they are
simple C programs and shouldn't require much to install.
On Tue, Apr 22, 2014 at 9:41 AM, francis picabia <fpicabia at gmail.com> wrote:
> On Eastlink and using a Linux box as the router,
> with some iptables for port forwarding and nat.
> When someone in the house is using up excessive
> bandwidth, I'd like to know what it is.
> I've looked at some tools I can run on the router.
> nload will make a live ascii graph on eth0 or eth1.
> That shows the sum. Now how to see where the
> bulk is heading?
> lsof -Pni is a command I often use to see connections to services, but it
> doesn't show nat traffic.
> There is netstat-nat, which is interesting but I don't understand
> what it is reporting. For example, after a Windows system is powered
> off, netstat-nat is still reporting connections established.
> There is ntop, which would seem to be a solution, but I'm yet to find
> a succinct view in there to reveal what service and IP is using
> up the bandwidth.
> There is also wireshark, which is always useful if you already know what
> you want to filter for, but I don't know of a recipe for finding the
> Ideally, I'd like something as quick and simple as ncdu,
> but for a Linux router with nat. If that isn't possible with
> one command, then a series of checks in wireshark, ntop,
> or something similar would be good. I'd like it to show
> which internal IP and type of traffic is using up most of
> the bandwidth.
> nSLUG mailing list
> nSLUG at nslug.ns.ca
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nSLUG