[Dnsmasq-discuss] Feature request - log only once for dhcpdiscover ignored macs

Alex Malinovich alexmalinovich at protonmail.com
Tue Jul 30 02:45:01 UTC 2024


On Monday, July 29th, 2024 at 21:08, Salatiel Filho <salatiel.filho at gmail.com> wrote:
> Would it be possible to make that log for dhcpdiscover ignored macs be in that "logged only once" mode that shows up for some dnsmasq events?

I had a similar problem with my Lutron bridge spamming with DHCPv6 requests once a second that I was able to address with a couple of iptables rules to rate-limit the requests before they ever reach dnsmasq.

This is what worked for me:

ip6tables -I INPUT -p udp -m udp --dport 546:547 -m mac --mac-source 30:45:11:AD:98:6F -j DROP
ip6tables -I INPUT -p udp -m udp --dport 546:547 -m mac --mac-source 30:45:11:AD:98:6F -m limit --limit 1/hour -j ACCEPT

https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2024q3/017636.html



More information about the Dnsmasq-discuss mailing list