Add IPv6 Support #934
Replies: 2 comments 1 reply
|
Following up from the PR, I'd like to discuss the approach for IPv6 support. The main thing I was trying to solve is that Unique IPs currently compares exact IP addresses. That works well for IPv4, but starts to fall over in IPv6, as devices in the same household have different addresses. Same as, IP Range only supports IPv4 today, so IPv6 users can't use your IP based rules. The approach I prototyped;
I'm not attached to that implementation if there's a better way of doing it. It was just the approach that made the most sense to me. A few things I'd like thoughts on, if you'd like to proceed with this:
Thank you :D |
|
Opened a PR with the Part 1 approach you suggested: #935, thanks for the help 😃 |
Uh oh!
There was an error while loading. Please reload this page.
Tracearr Version
supervised-v1.4.28
Deployment Method
Docker - Supervised (all-in-one container)
Host System
Unraid 7.2.7
Connected Media Servers
Media Server Version(s)
No response
Affected Area
Rules/Violations
Bug Description
I've noticed what appear to be two related issues, my sister's ISP uses IPv6, and the CIDR and Unique IP matching in rules doesn't work.
IPv6 CIDR matching
The IP Range rule does not appear to match IPv6 CIDR ranges. IE, adding the allow rule:
2001:db8:1234:5678::/64does not match an address within that subnet, such as:2001:db8:1234:5678:abcd:1234:5678:9abcThe rule still triggers instead of treating the address as allowed.Unique IP detection
The
Unique IPsrule appears to compare the full IPv6 address. Devices on the same network have different IPv6 addresses, so they are counted as unique IPs, resulting in false positives.Steps to Reproduce
IP Rangerule using an IPv6 CIDR.Unique IPstreats them as separate IPs.Docker Compose / Run Command
Relevant Logs
Was this working before?
None
Additional Context
No response
Checklist
All reactions