zeronsd icon indicating copy to clipboard operation
zeronsd copied to clipboard

zeronsd does not handle subnet changes well

Open erikh opened this issue 4 years ago • 3 comments

Reproduction:

  • Create a network
  • configure zeronsd to use that network with two authorized members
  • change the subnet and trash the old addresses

Congratulations, your server is now unusable until restart.

Will get to this over the next few weeks.

erikh avatar Sep 17 '21 00:09 erikh

this is likely because the listening IP changed from underneath it. I think the best solution for now is to detect when there are no known addresses that zerotier-one has assigned to that interface. If that occurs, gracefully terminate non-zero to force a restart by the supervisor.

erikh avatar Sep 17 '21 00:09 erikh

I know I said "the next few weeks" but we all saw how that went. I'm going to leave this alone as a known issue for now, it'll be complicated to resolve trivially with the current state of things.

Basically, if you do this; restart your zeronsd instance.

erikh avatar Feb 22 '22 02:02 erikh

had to delete old addresses manually from the memeber list, then restart the zeronsd instance, and the dns resolution works

nickhelion avatar Sep 30 '22 11:09 nickhelion