Posted: Fri Dec 01, 2023 22:54 Post subject: Block/Prevent IPv6 for specific device
Hello there,
I have a specific device which seems to support IPv6, but it also has some issues.
While all other devices do not.
Now i wonder if there is a way to block or prevent this specific device from getting a IPv6 Address.
I'm not able to do this on the device it self in any way, so i need to prevent this a different way.
I already tried via iptables, but that doesn't seem to be working.
Code:
ip6tables -I FORWARD -m mac --mac-source 11:22:33:44:55:66 -p udp --dport 546 -j DROP
ip6tables -I FORWARD -m mac --mac-source 11:22:33:44:55:66 -p udp --dport 547 -j DROP
ip6tables -I FORWARD -m mac --mac-source 11:22:33:44:55:66 -p icmpv6 --icmpv6-type 134 -j DROP
I also tried to block all icmpv6, but not blocking all IPv6 traffic from the device.
ip6tables -t mangle -A PREROUTING -m mac --mac-source <mac_address> -j DROP
Add to "Save Firewall" and reboot router and device. I used this in the past to block ipv6 on a couple devices. They don't even get an ipv6 address. _________________ Linksys EA8500
v3.0-r53562 std (10/03/23)
I did some more investigation, and i was using a local pihole also as dns server.
It looked like for some reason that the ipv6 of that device changed.
Now all other devices just worked fine, and disregarded any further usage. But that device kept using it. Now that i fixed that it seemed to have solved all issues.