If you are looking to check current traffic rather than log the traffic for future analysis, you can just use iftop ( see here, and should be available in all Linux distributions) to list what is going through the box right now. You could also use tools like bandwidthd though I've not used that myself. You can then use extra iptables rules with comments to mark them so that you can use something like collectd's iptables module ( see here) to record packet and byte counts. The monitor box would then either be set to act as a transparent bridge or (easier) it would perform NAT ( like so) for the LAN. You need two network cards in the monitor box, one for the local LAN's switch that the other machines plug into too and one for the router. PC2 -+- monitor - router/modem/other - hinterwebs What you need to do is put the machine in the network between those machines and your connection to the internet, like so: PC1 -\
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |