Skip to content

unrelated ipv6 slaac privacy addresses are announced to the discovery service #8443

Closed as not planned

Description

@ryannathans

The same issue is occurring with 2 hosts

Syncthing v1.20.3

Pop!_OS 22.04

Ipv6 (dhcpv6 & slaac w/stable and temporary privacy addresses) + Ipv4

I have configured syncthing to listen on the following: tcp4://0.0.0.0:22000, quic4://0.0.0.0:22000, tcp6://[my:slaac:stable:privacy:address]:22000, quic6://[my:slaac:stable:privacy:address]:22000

Yet when I look at https://discovery.syncthing.net/v2/?device=MY_DEVICE_ID I see my temporary slaac privacy address in the list.

I expect to see only addresses I have bound syncthing to, and my NAT ipv4 address. I do not expect unrelated ipv6 privacy addresses to be broadcast.

I assume the slaac temporary privacy address is added to the list because that is the address used to connect to the ipv6 discovery service? Is this intended? IPv6 does not have NAT, so I expect only bound addresses to be announced.

Activity

  1. added
    bug
    needs-triage
    on Jul 23, 2022
  2. calmh commented on Jul 23, 2022

    @calmh
  3. ryannathans commented on Jul 23, 2022

    @ryannathans
    Author
  4. bt90 commented on Jul 27, 2022

    @bt90
  5. bt90 commented on Jul 27, 2022

    @bt90
  6. calmh commented on Jul 28, 2022

    @calmh
  7. ryannathans commented on Jul 28, 2022

    @ryannathans
    Author
  8. bt90 commented on Jul 28, 2022

    @bt90
  9. calmh commented on Jul 28, 2022

    @calmh
  10. bt90 commented on Jul 28, 2022

    @bt90
  11. ryannathans commented on Jul 28, 2022

    @ryannathans
    Author
  12. calmh commented on Jul 28, 2022

    @calmh
  13. bt90 commented on Jul 28, 2022

    @bt90
  14. ryannathans commented on Jul 28, 2022

    @ryannathans
    Author
  15. 6 remaining items

  16. ryannathans commented on Jul 28, 2022

    @ryannathans
    Author
  17. bt90 commented on Jul 28, 2022

    @bt90
  18. calmh commented on Jul 28, 2022

    @calmh
  19. calmh commented on Jul 28, 2022

    @calmh
    Member

    I'm going to go ahead and hide all the chatter in the middle of this issue to make it clearer -- not because there's anything wrong with it, just because it clutters the issue so we won't understand the cause and effect when looking at it in the future.

  20. ryannathans commented on Jul 28, 2022

    @ryannathans
    Author

    When did you change the listening address? Those might be leftovers from previous calls to the discovery server.

    days ago, the temporary slaac address is still valid - they only last a couple hours and don't persist across system boots so it's current behavior

  21. ryannathans commented on Jul 28, 2022

    @ryannathans
    Author

    Yeah this is expected, as we always announce 0.0.0.0:0 (above).

    the announce string i posted doesn't have tcp://0.0.0.0, it has tcp4://0.0.0.0, is it expected that this announces all ipv6 addresses?

    edit: oh... it has tcp6://0.0.0.0 - that's the issue, my listen string doesn't have that.

  22. calmh commented on Jul 28, 2022

    @calmh
    Member

    Yeah. So that results in the source address being recorded by the server, and then addresses live for some time (which accounts for the outdated ones.)

  23. ryannathans commented on Jul 28, 2022

    @ryannathans
    Author

    why is tcp6://0.0.0.0 announced but not quic6://0.0.0.0?

  24. calmh commented on Jul 28, 2022

    @calmh
    Member

    Because the quic listener doesn't include the same logic... That's probably an oversight.

  25. ryannathans commented on Jul 28, 2022

    @ryannathans
    Author

    if the 0.0.0.0 are intentional and it's supposed to be publishing the temporary slaac addresses that have nothing listening on them i guess we can close this issue?

  26. calmh commented on Jul 28, 2022

    @calmh
    Member

    Yes. The other issues spun off for the other stuff remain. :)

  27. ryannathans commented on Jul 28, 2022

    @ryannathans
    Author

    thank you for your time :)

  28. added
    frozen-due-to-age
    on Jul 28, 2023
  29. locked and limited conversation to collaborators on Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfrozen-due-to-ageneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions