Logging amount of transferred data by ip range with FreeBSD
Posted on 2003-11-30
We have kind of problem with data transfer limitations with one of our servers. Transfers are now logged, but logs only show how much data has been transferred in total. Problem is that only part of data is going outside 'local' network. There is virtually no limitations for transfers in local area, so we would need to separate logs for local and outside transfers.
We are using FreeBSD 3.3 system. Propably easiest way, having 2 NICs, one for each network area, is not possible.
Amounts of transferred data (both incoming and outgoing) should be possible to monitor with MRTG or like. Using IPFilter with "log" option with accept will cause system slowdown, increase latency and create awful amounts of logfiles, due to FreeBSD Handbook. Is there some better way to do this?