netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Log ARP headers
@ 2025-02-27 16:51 Slavko
  2025-03-03 19:35 ` Florian Westphal
  0 siblings, 1 reply; 14+ messages in thread
From: Slavko @ 2025-02-27 16:51 UTC (permalink / raw)
  To: netfilter ML

Hi,

i want to log ARP headers, thus i create arp family table
with one chain with only one rule, somethong as:

    arp operation request limit ... countef log group 2 prefix ...

It basically works, counter grows and packets are logged
via ulogd2 stack::

    stack=log2a:NFLOG,base1:BASE,ifi1:IFINDEX,ip2str1:IP2STR,mac2str1:HWHDR,gp1:GPRINT

Except that the log entries has not any ARP headers.

Then i found this article [1], which mentions the ARP as
sysctlt key:

    net.netfilter.nf_log.3

Thus i set it to "nfnetlink_log", but that doesn't help. It
is hard to find what these numbers are, but i guess that
family constants, as 2, 7 and 10 (from ulogd2 start log)
coresponds to inet, inet6 and bridge family, but i am not
aware of arp family...

I guess that ulogd2 is able to log ARP headers as i found
them in BASE plugin's info output, but please what i have
to do to get them into log? Or problem is, that i play with
it inside LXC container (other logging works in it)?

regards

[1] <https://fedoramagazine.org/network-address-translation-part-4-conntrack-troubleshooting/

-- 
Slavko
https://www.slavino.sk/

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

end of thread, other threads:[~2025-05-25 17:24 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-27 16:51 Log ARP headers Slavko
2025-03-03 19:35 ` Florian Westphal
2025-03-03 21:52   ` Slavko
2025-03-03 22:00     ` Jeremy Sowden
2025-04-05  9:54       ` Slavko
2025-04-18 11:00         ` Jeremy Sowden
2025-04-18 11:33           ` Slavko
2025-05-25  7:51       ` Slavko
2025-05-25 10:33         ` Florian Westphal
2025-05-25 17:24           ` Jeremy Sowden
2025-03-03 22:03     ` Florian Westphal
2025-03-03 22:20       ` Slavko
2025-03-05 13:20       ` Slavko
2025-03-05 13:30         ` Slavko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).