All of lore.kernel.org
 help / color / mirror / Atom feed
* iptables accounting problem
@ 2002-12-18 12:41 ITM CS Ruslan O. Nesterov
  0 siblings, 0 replies; 2+ messages in thread
From: ITM CS Ruslan O. Nesterov @ 2002-12-18 12:41 UTC (permalink / raw)
  To: netfilter

Hello netfilter list,
      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?
      
      
  

-- 
Best regards,
 ITM                          mailto:ruslan@complexsystem.ru




^ permalink raw reply	[flat|nested] 2+ messages in thread
* RE: iptables accounting problem
@ 2002-12-18 14:00 Rob Sterenborg
  0 siblings, 0 replies; 2+ messages in thread
From: Rob Sterenborg @ 2002-12-18 14:00 UTC (permalink / raw)
  To: 'netfilter@lists.netfilter.org'

[-- Attachment #1: Type: text/plain, Size: 863 bytes --]

>       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

[-- Attachment #2: Type: text/html, Size: 1956 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-12-18 14:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-18 12:41 iptables accounting problem ITM CS Ruslan O. Nesterov
  -- strict thread matches above, loose matches on Subject: below --
2002-12-18 14:00 Rob Sterenborg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.