Janne Pikkarainen Veteran
Joined: 29 Jul 2003 Posts: 1143 Location: Helsinki, Finland
|
Posted: Thu Oct 13, 2005 4:56 pm Post subject: |
|
|
At least if you have some iptables rules around, iptables -vL shows you something like
---
Chain INPUT (policy ACCEPT 9329M packets, 1734G bytes)
Chain OUTPUT (policy ACCEPT 13G packets, 14T bytes)
---
Just parse it from there. Maybe there's a less verbose way to ask that data from iptables, but I've never needed that. _________________ Yes, I'm the man. Now it's your turn to decide if I meant "Yes, I'm the male." or "Yes, I am the Unix Manual Page.". |
|