Skip to content

isLocalIP not sufficient for IPv6 #6474

@qqqzzzzzzqqq

Description

@qqqzzzzzzqqq

Describe the bug

Since switching my home network to fully IPv6, I've noticed I have to set credentials on my stash even for local access from some devices.

When I use the domain name ending with .local that is offered by my router, devices look this up using IPv6 and then make connections using their public IP address, not their fe80::/10 link-local address.

This, of course, triggers the security_tripwire_accessed_from_public_internet because these are not local IP addresses.

I can work around this by setting a password or by setting the dangerous_allow_public_without_auth to true, but I'd love a middle ground where I can set the dangerous_allow_public_without_auth to a specific IPv6 subnet, corresponding to the subnet that my router allocates, as these are still devices that are accessing it locally, not over the internet.

Steps to reproduce

  1. Have an IPv6 home network
  2. Remove any credentials
  3. Access your stash locally over DNS using http://server.namelocal:9999/

Expected behaviour

I would expect to be able to access it without hitting the tripwire, even if it requires me to manually specify the local subnet somehow.

Screenshots or additional context

No response

Stash version

v0.30.1

Device details

Chrome on Android

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions