All of lore.kernel.org
 help / color / mirror / Atom feed
* Filtering and counting traffic based on the ethernet address
@ 2020-11-12 17:37 Jonathan Horn
  0 siblings, 0 replies; only message in thread
From: Jonathan Horn @ 2020-11-12 17:37 UTC (permalink / raw)
  To: netfilter

Hello,

I'd like to be able to filter and count the traffic caused by hosts
with known ethernet addresses. But my attempt to use a
ether_addr->counter name map with ether saddr & daddr failed, only
counting the part coming from the host, but ignoring everything the
host receives:

chain FORWARD {
                type filter hook forward priority 0; policy accept;
                iifname "lan0" counter name ether saddr map @internet_test
}

chain POSTROUTING {
                type filter hook postrouting priority 300; policy accept;
                oifname "lan0" counter name ether daddr map @internet_testb
}

Any help to accomplish this would be highly appreciated.

Cheers,
Jonathan

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-12 17:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-12 17:37 Filtering and counting traffic based on the ethernet address Jonathan Horn

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.