Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link-local addresses for network autoconfiguration #5

Closed
gwarser opened this issue Jun 1, 2020 · 5 comments
Closed

Link-local addresses for network autoconfiguration #5

gwarser opened this issue Jun 1, 2020 · 5 comments

Comments

@gwarser
Copy link
Owner

gwarser commented Jun 1, 2020

https://en.wikipedia.org/wiki/Private_network#Link-local_addresses

@gwarser
Copy link
Owner Author

gwarser commented Jun 1, 2020

  • autoconfiguration? fe80::/10 - fe80:0000:0000:0000:0000:0000:0000:0000 to febf:ffff:ffff:ffff:ffff:ffff:ffff:ffff

    ||[fe8*]^
    ||[fe9*]^
    ||[fea*]^
    ||[feb*]^

@gwarser
Copy link
Owner Author

gwarser commented Jun 1, 2020

And 169.254.0.0/16, or maybe 169.254.1.0 to 169.254.254.255.

@gwarser gwarser added the LAN label Jun 1, 2020
@gwarser
Copy link
Owner Author

gwarser commented Jul 7, 2020

Hmmm... I thought it's used only as fallback, randomly assigned, does not allow to connect to something specific, maybe fingerprintable yet not possible to scan ipv6 range. Turns out ipv6 can be problematic: https://en.wikipedia.org/wiki/Link-local_address#Address_assignment:

In IPv6, link-local addresses are always assigned, along with addresses of other scopes, and are required for the internal functioning of various protocol components. ... in IPv6 the link-local address may be derived from the interface media access control (MAC) address in a rule-based method.

I will add ipv6 to existing ipv6 local network filter: #3 (comment) [for now]


https://regex101.com/r/O0tAKl/3

gwarser added a commit that referenced this issue Jul 7, 2020
Partial (ipv6) fix for #5
@gwarser
Copy link
Owner Author

gwarser commented Nov 8, 2020

169.254.1.0 - 169.254.254.255

IP Range Regular Expression Builder:

/^\w+://169\.254\.(?:[1-9]|[1-9]\d|1\d\d|2[0-4]\d|25[0-4])\.(?:[1-9]?\d|[12]\d\d)[:/]/$third-party

Regex Numeric Range Generator:

/^\w+://169\.254\.(?:[1-9]|[1-8][0-9]|9[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-4])\.(?:[0-9]|[1-8][0-9]|9[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])[:/]/$third-party

Why I did not used "IP Range Regular Expression Builder" before?

@gwarser gwarser closed this as completed in 7049915 Nov 8, 2020
@gwarser
Copy link
Owner Author

gwarser commented Nov 9, 2020

Why I did not used "IP Range Regular Expression Builder" before?

Because of [12]\d\d matching above 255.

gwarser added a commit to uBlockOrigin/uAssets that referenced this issue Nov 18, 2021
gwarser added a commit to uBlockOrigin/uAssets that referenced this issue Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant