1

On local machine I set counters for incoming and outgoing traffic in iptables to track how many bytes were used by user. But I need to exclude all traffic from "home server" (predefined ip address). How can I do that?

Arthur
  • 111
  • 1

1 Answers1

1

You should be able to create a new chain and redirect traffic that you want to count on this chain.

This post on StackExchange should help : How to count packets coming from outside using iptables?

Alexandre Roux
  • 470
  • 1
  • 6
  • 20
  • Nope. Doesn't work. Maybe there is another way to exclude such traffic? – Arthur Jul 20 '17 at 15:08
  • Could you please add more precision here? I've some iptables entries running with none-original chain where I'm able to see only the desirable traffic. I'm unfortunately not aware of iptables flag that will exclude counting on initial rules. If you post you `iptables -S` result we should be able to advise further. – Alexandre Roux Jul 20 '17 at 15:16