X-Git-Url: https://git.distorted.org.uk/~mdw/firewall/blobdiff_plain/1ee6211dcd0063197621004e6c7073bd801b8efe..429f4314d0d1be69f7500cf7f97671595804fdd0:/classify.m4 diff --git a/classify.m4 b/classify.m4 index fcb008d..25b1693 100644 --- a/classify.m4 +++ b/classify.m4 @@ -69,11 +69,14 @@ clearchain mangle:local-source ## of weird stuff happens on lo, and it's best not to second-guess it. run ip46tables -t mangle -A in-classify -i lo -j ACCEPT -## Local bootp packets have bizarre addresses. Don't block them just because -## of this. +## Local broadcast and link-local multicast packets sometimes have bizarre +## addresses. Don't block them just because of this. run iptables -t mangle -A in-classify -j RETURN \ -s 0.0.0.0 -d 255.255.255.255 \ - -p udp --source-port $port_bootpc --destination-port $port_bootps + -p udp +run iptables -t mangle -A in-classify -j RETURN \ + -s 0.0.0.0 -d 224.0.0.0/24 \ + -p udp ## Since packets with source and destination addresses both local will go ## over the loopback interface, I shouldn't see a packet from me over any