iptables bad byte counter?!?
Hello list,
I'm quoting here a real old message from the netfilter-devel list:
Quoted 3 lines
Subject: iptables bad byte counter?!?
From: Torge Szczepanek
Date: 05 Jun 2002 21:07:35 +0200
You can find the complete mail here:
http://lists.netfilter.org/pipermail/netfilter-devel/2002-June/008038.html
Torge got problems with the byte counter during the output of the logged traffic. I've got the same problems here to. Here's an example line of "iptables --list --verbose --numeric --exact":
Quoted 4 lines
Chain INPUT (policy ACCEPT 2086 packets, 252096 bytes)
pkts bytes target prot opt in out...18446744073709551148 18446744073709508226 ACCEPT all -- eth0 *... 18446744073709548061 18446744073708196250 ACCEPT all -- * *...
These values are of course ridiculous for a 5 minute interval. In the normal case the output looks like this:
Quoted 4 lines
Chain INPUT (policy ACCEPT 3458 packets, 421710 bytes)
pkts bytes target prot opt in out... 16886 1481496 ACCEPT all -- eth0 *... 20932 2638562 ACCEPT all -- * *...
I'm using kernel 2.6.18-92.1.17.el5 and iptables-1.3.5-4.el5 on a cent os 5.2 computer (x86_64)
The last comment to the original mail was the followng:
Quoted 2 lines
no, this is clearly a problem within the 32bit-userspace / 64bit kernelspace handling of iptables.
Is that true? The original report of this "bug" is 7 years ago. Shouldn't it be fixed since then? What is the causing this misunderstanding? Is this bug fixable?
Signature · 1 line
So long... Fuzz
Hi there,
Quoted 7 lines · Erik Wasser
Hello list,
Quoted 4 lines
Chain INPUT (policy ACCEPT 2086 packets, 252096 bytes)
pkts bytes target prot opt in out...18446744073709551148 18446744073709508226 ACCEPT all -- eth0 *... 18446744073709548061 18446744073708196250 ACCEPT all -- * *...
Quoted 8 lines
[...]
The last comment to the original mail was the followng:
Quoted 2 lines
no, this is clearly a problem within the 32bit-userspace / 64bit kernelspace handling of iptables.
Is that true?
~$ >>> echo '18446744073709551148/(65536*65536*65536*65536)' | bc -l .99999999999999997462
Looks that way.
--
73,
Ged.
Quoted 8 lines · you
Quoted 5 lines
The last comment to the original mail was the followng:
Quoted 2 lines
no, this is clearly a problem within the 32bit-userspace / 64bit kernelspace handling of iptables.
Is that true?
~$ >>> echo '18446744073709551148/(65536*65536*65536*65536)' | bc -l .99999999999999997462
Well... aren't those bugs easy to fix? I'm just asking because the results are correctly in 99% of the time. So why is the transfer from the data failing (only) in 1% of the time? If there is anything that I can do or test to nail down this bug?
I can give you more infos about the route if it's necessary, that should not be a problem.
Signature · 1 line
So long... Fuzz