I'd like to build a box that I configure as default gateway for client computers that:
- Captures all of their traffic
- Allows me to easily review all of their traffic
Anyone have some ideas on the best operating system and programs to use? WireShark was the first to come to mind.
This is one of those situations where you're going to have to provide some additional detail before we can really give you a very good answer. Among the questions you need to figure out:
Among the many options available to you, here's a couple:
NetFlow
orSFlow
to get traffic flow data from your routers/switches/firewallsntop
To address one specific point in your question, Wireshark is a great program for analyzing packet captures, or interactive packet capturing, but for continual capture, I'd probably look towards something like
dumpcap
. If I'm running it in a continuous manner, I find it most effective to run it fromcron
for a specific duration. On a low throughput capture, I might do hourly captures (3600 seconds) run every hour. For a higher throughput capture, I might do every 10 minutes or even 5 or 2 minutes. If you're going to be storing for a long time, you may want to break up the captures under "yyyy/mm/dd" directories or something like that.Ignoring the fact that the very idea offends my sensibilities, do you actually have the time to go through all that data, even after applying filters?
While it's trivial to do what you are asking (run the network sniffer/monitor on the actual gateway device) I seriously doubt it's the best approach. It might be better to use something like snort with custom rules, which can watch for specified traffic and alert you when it happens.