[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

traffic accounting with ipfwadm



Hi,

My question isn't very debian related. It's more like a general
linux networking problem with an old 2.0.x kernel.  I'm trying
to make the server count the bytes transferred to and from the
alias ip address i've set up on it.

This is what I type:

/sbin/ipfwadm -A in -a -W eth0:4 -P all -S 0.0.0.0/0 -D 192.168.10.2
/sbin/ipfwadm -A out -a -W eth0:4 -P all -S 192.168.10.2 -D 0.0.0.0/0

The entries get correctly listed with `ipfwadm -A -l':

IP accounting rules
 pkts bytes dir prot source               destination          ports
    0     0 in  all  anywhere             192.168.10.2         n/a
    0     0 out all  192.168.10.2         anywhere             n/a

Now, somehow, whatever I do, the packets I send to 192.168.10.2
don't get accounted for. I tried it with the main interface eth0
and that works just fine, so maybe it has something to do with
alias interfaces? Is this actually possible with the 2.0.x
network interface or do I absolutely need the 2.2.x series?

I'm grateful for any tips, pointers, etc. :)

-- 
Fabian Knittel           fknittel@gmx.de
EDV SYSTEM CONSULTING    http://www.esc-web.de/


Reply to: