> I'm sorry for asking this question, I red all the documentation
> and still got no clue how to make ip accounting work.
> I got a pc with 2 ethernet cards all traffics goes through it.
> i created a rule like
> iptables -N xxx.xxx.xxx.xxx
> iptables -A input -d xxx.xxx.xxx.xxx -j xxx.xxx.xxx.xxx
> when i type
> iptables -L xxx.xxx.xxx.xxx -n -v
> i get 0 traffic information. How could be? Or whereis my
> mistake?
What if you did it like this :
iptables -A INPUT -d xxx.xxx.xxx.xxx
Then iptables -L INPUT -nv should tell you how much traffic has passed by.
You could also create your own rule of course, but I think it's overkill.
iptables -N testrule
iptables -A testrule -d xxx.xxx.xxx.xxx
iptables -A INPUT -j testrule
Then to check the traffic that passed by : iptables -L testrule -nv
Rob