* Re: Filtering MLD messages
2025-11-30 21:04 Filtering MLD messages Marek Küthe
@ 2025-12-01 3:24 ` Sunny73Cr
0 siblings, 0 replies; 2+ messages in thread
From: Sunny73Cr @ 2025-12-01 3:24 UTC (permalink / raw)
To: Marek Küthe; +Cc: netfilter
Hello Marek,
> I would like to filter MLD messages:
If the following lines in the listed files, and the neighbouring functions, also; appear to be incompatible: you may need to write some code before this can be done.
Check line 342 in 'payload.c':
https://git.netfilter.org/nftables/tree/src/payload.c
Check line 458 in 'netlink_delinearize.c': https://git.netfilter.org/nftables/tree/src/netlink_delinearize.c
In lieu of an NFQUEUE program; I suggest using raw payload expressions of the form `(ll|nh|ih)@ofs,len`; where 'ofs' and 'len' are integer values, and are in 'bits'.
> 5. The source address is in the link-local range.
An example of matching IPV6 source addresses using raw payload expressions is:
`
@nh,64,16 & 0xFE80 != 0
`
Regards,
Dylan
CONFIDENTIALITY NOTICE:
This email and its attachments are intended solely for the use of the intended addressee; and may contain confidential and/or privileged information. You are hereby notified that any unauthorized use of this email or its attachments is strictly prohibited. If you have received this email in error, please destroy instances of it, and any information that was derived directly from it. To be clear, the message and its headers (SMTP, IMAP, POP message, etc.) is 'this email', but network headers (Ethernet, Internet Protocol, Transmission Control Protocol, User Datagram Protocol, etc.) are not.
SIGNATURE NOTICE:
If we have not met, the below public key is not useful.
sunny_0xAD0EBA5C_public.asc
-----BEGIN PGP PUBLIC KEY BLOCK-----
KEY REDACTED, WE HAVE NOT MET.
-----END PGP PUBLIC KEY BLOCK-----
Sent with Proton Mail secure email.
^ permalink raw reply [flat|nested] 2+ messages in thread