David Jirku <[EMAIL PROTECTED]> wrote:
>
> Searched high and low, and can't for the life of me figure out how to
> get byte counters for an interface *without* using a catch-all IP
> accounting rule. "ifconfig ethX" shows me packets, "netstat -i ethX"
> doesn't show me anything. Any ideas anyone?
What kernel are you running? In 2.0, /proc/net/dev looks like this:
Inter-| Receive | Transmit
face |packets errs drop fifo frame|packets errs drop fifo colls carrier
lo: 60963 0 0 0 0 60963 0 0 0 0 0
eth0:2665250 0 0 0 0 2952963 5 0 0 138019 5
In other words, no byte-count statistics are kept.
In 2.1+, /proc/net/dev looks like this:
Inter-| Receive
face |bytes packets errs drop fifo frame compressed multicast
lo: 353485 5181 0 0 0 0 0 0
eth0:645547690 1744314 4 0 0 4 0 0
So, using the masq accounting rules is the only way I can think of to
get byte counts in a 2.0 kernel.
> Secondly, how do I view what my current masq timeouts are set to?
The only way I've been able to see this is by monitoring connections and
watching how high the counts go...
--
[EMAIL PROTECTED] (Fuzzy Fox) || "Nothing takes the taste out of peanut
sometimes known as David DeSimone || butter quite like unrequited love."
http://www.dallas.net/~fox/ || -- Charlie Brown
_______________________________________________
Masq maillist - [EMAIL PROTECTED]
http://tiffany.indyramp.com/mailman/listinfo/masq
Admin requests can be handled by web (above) or [EMAIL PROTECTED]