Skip to contentSkip to conversation

iptables & ifconfig wrong packet accounting

DISCUSSION jorge alonso 2 participants 3 messages Dec 13, 2004 – Dec 14, 2004

lore
Share & tools
lore
#0 lore raw

i'm trying to do traffic accounting with iptables but the received packets from iptables (iptables -L -v) and packets from ifconfig dont match.
ifconfig counts more packets is it normal ?

#1 lore raw
Quoted 4 lines · jorge alonso

i'm trying to do traffic accounting with iptables but the received packets from iptables (iptables -L -v) and packets from ifconfig dont match.
ifconfig counts more packets is it normal ?

my guess would be that 'ifconfig' counts packets such as arp and dhcp requests/replies that never make it up to the netfilter hooks.

-j

--
"Default! The two sweetest words in the English language!"
--The Simpsons

#2 lore raw

isnt that only used at the beginning, when dhcp obtain the ip ? i dont understand the arp dhcp process :(

---------- Forwarded message ----------
From: Jason Opperisano <[email protected]>
Date: Mon, 13 Dec 2004 16:04:22 -0500
Subject: Re: iptables & ifconfig wrong packet accounting
To: [email protected]

Quoted 4 lines · jorge alonso

i'm trying to do traffic accounting with iptables but the received packets from iptables (iptables -L -v) and packets from ifconfig dont match.
ifconfig counts more packets is it normal ?

my guess would be that 'ifconfig' counts packets such as arp and dhcp requests/replies that never make it up to the netfilter hooks.

-j

--
"Default! The two sweetest words in the English language!"
--The Simpsons