LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Create user-defined chains of accounting rules (https://www.linuxquestions.org/questions/linux-security-4/create-user-defined-chains-of-accounting-rules-525652/)

spoonpower 02-04-2007 11:12 PM

Create user-defined chains of accounting rules
 
Hello,

I need to create a set of user-defined chains that will implementing accounting rules to keep track of www,ssh traffic, versus the rest of the traffic on your system. I am sure how to do that, does anyone have some sample scripts on how to do that? I have been researching on google, couldnt' found any examples.

unSpawn 02-05-2007 08:19 AM

If you list rules with "-L -v -n" you'll get shown counter info. Add rules that only matches specs like src or dst and don't do nothing else. Record values and reset the rules regularly since the counters get reset. Some other apps to maybe look into: BW Acct, Ipac, Ntop, Ipaudit. Else maybe check Freshmeat / Sourceforge for say "bandwidth accounting".


All times are GMT -5. The time now is 11:38 AM.