iptables resets counter when rules are added
Hello,
Whenever I add a rule to iptables, all of the policy counters reset. The counters for each individual rule remain intact, however, the main counter resets. Here's what I mean: Code:
[root] ~ # iptables -vL Code:
[root] ~ # iptables -vL Code:
[root] ~ # iptables -V -FM |
I use counters and have never had this problem.
What you could try is to use insert instead of add. Code:
iptables -I INPUT 1 -s 192.168.1.2 -j DROP |
It appears to occur on insert as well. Anytime the rule chain is modified, in short, it seems to occur.
It's worth noting that adding rules to user-created chains doesn't affect the main chains. I could of course deal with this by using a kluge: iptables -N INPUT2 iptables -A INPUT -j INPUT2 and working on INPUT2. But that's obviously a silly workaround... It may be worth noting that this is an LFS system, and I compiled all components from scratch. I was going to check the Netfilter pages to see if this is referenced anywhere, but I believe I did that once before and came up empty-handed... Further advice, anyone? |
All times are GMT -5. The time now is 10:06 PM. |