netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* nft not logging some layer 2 frames?
@ 2024-05-24 14:42 Teodor Milkov
  2024-05-24 15:57 ` William N.
  0 siblings, 1 reply; 11+ messages in thread
From: Teodor Milkov @ 2024-05-24 14:42 UTC (permalink / raw)
  To: netfilter

Hi,

I've been trying the |netdev| table for ingress filtering, which seems 
to be working fine. However, I'm encountering an issue with logging.

Here's the relevant configuration snippet:

table netdev filter {
     chain eth2_input {
         type filter hook ingress device "eth2" priority filter; policy 
accept;
         vlan id 99 vlan type ip counter packets 68304372 bytes 
28196182850 accept
         vlan id 99 vlan type arp counter packets 756970 bytes 35442808 
accept
         vlan id 99 counter packets 441 bytes 49415 log accept;


As seen, the counters are updating, but logging does not seem to occur 
for certain Layer 2 frames - in this case UDLD:

18:00:55.426295 f4:4e:05:ab:cd:ef > 01:00:0c:cc:cc:cc, 802.3, length 
115: LLC, dsap SNAP (0xaa) Individual, ssap SNAP (0xaa) Command, ctrl 
0x03: oui Cisco (0x00000c), pid UDLD (0x0111), length 107: UDLDv1, Code 
Probe message (1), Flags [RT] (0x01), length 107

 From a brief review of the source code, it appears that nftables might 
only log frames of certain known types like e.g. ipv4, ipv6 and arp.

Could you confirm if this is the case, or if there's documentation or a 
configuration tweak I might have missed that could resolve this logging 
issue?

Best regards,

Teodor Milkov


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

end of thread, other threads:[~2024-06-26 18:26 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-24 14:42 nft not logging some layer 2 frames? Teodor Milkov
2024-05-24 15:57 ` William N.
2024-05-27 10:17   ` Teodor Milkov
2024-05-27 17:17     ` William N.
2024-05-28 11:49       ` Teodor Milkov
2024-05-28 15:01         ` William N.
2024-06-11 18:25           ` Pablo Neira Ayuso
2024-06-11 19:12             ` William N.
2024-06-11 22:08               ` Pablo Neira Ayuso
2024-06-26 13:36             ` Teodor Milkov
2024-06-26 18:25               ` William N.

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).