Skip to content

Syncthing announces address of interface which is down #7458

Closed

Description

@bt90

Noticed this behaviour yesterday on my Windows machine. Syncthing seems to ignore if the interface is actually useable because it keeps announcing the manually configured IP of my winTUN interface.

It also announces a bunch of link-local 169.254.0.0/16 addresses but i can't ping any of them so i suspect that they are also from some interface but couldn't find anything in ipconfig /all

Activity

  1. added
    bug
    needs-triage
    on Mar 12, 2021
  2. calmh commented on Mar 12, 2021

    @calmh
    Member

    Yeah, we use net.InterfaceAddrs which I think doesn't care, we should probably iterate interfaces manually and check the relevant flags ourselves.

    (That said, the only definition of "usable" we can implement is "does it have FlagUp set". That doesn't necessary mean it's physically connected to anything, or to anything useful, or is a physical interface to begin with, etc.)

  3. bt90 commented on Mar 12, 2021

    @bt90
    ContributorAuthor

    "Usable" is probably the wrong term. Checking if the interface is considered up is exactly what i had in mind.

  4. juhrmann commented on Mar 17, 2021

    @juhrmann

    Please note that sometimes it is desirable to announce a non-local IP address. I use this to announce the IP address of a 6tunnel endpoint that converts IPv4 traffic for my IPv6-only Syncthing installation. Hence, I would prefer "usable" over "local interface address".

  5. bt90 commented on Mar 17, 2021

    @bt90
    ContributorAuthor

    Syncthing is only able to collect interface addresses and external addresses resolved via STUN. I guess that your usecase works because STUN is able detect the public IPv4 of your tunnel?

    Changing the behaviour for local interfaces won't impact STUN.

  6. juhrmann commented on Mar 17, 2021

    @juhrmann

    Syncthing is only able to collect interface addresses and external addresses resolved via STUN. I guess that your usecase works because STUN is able detect the public IPv4 of your tunnel?

    Changing the behaviour for local interfaces won't impact STUN.

    Frankly, I added the address manually in the settings. It should not be filtered out, though.

  7. bt90 commented on Aug 13, 2021

    @bt90
    ContributorAuthor
  8. bt90 commented on Jan 12, 2022

    @bt90
    ContributorAuthor

    Added $10 to get rid of this 😄

  9. removed
    needs-triage
    on Jan 29, 2022
  10. added 5 commits that reference this issue on Jul 7, 2022
    2c5037e
    2758aea
    84e429f
    048eff5
    49faaad
  11. added a commit that references this issue on Jul 7, 2022
    7cb8af9
  12. added this to the v1.20.4 milestone on Jul 12, 2022
  13. added 2 commits that reference this issue on Jul 21, 2022
    013b29e
    da3fe7a
  14. added
    frozen-due-to-age
    on Jul 7, 2023
  15. locked and limited conversation to collaborators on Jul 7, 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-age

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions