zerotier / ZeroTierOne

A Smart Ethernet Switch for Earth
https://zerotier.com
Other
14.16k stars 1.65k forks source link

Persistent config after reboot #761

Closed Stabington closed 6 years ago

Stabington commented 6 years ago

I've been testing how the zerotier client works in various conditions in our lab.

I hooked up 2 clients on the same LAN, connected to the controller to get the config, then removed the gateway. They could still communicate, so I tried changing the IP on one of the clients. It took a few seconds to discover again, but it still worked! However, when I rebooted one of the clients, it lost its config. It doesn't work until it has connected to the controller at least once.

Can I make the config persistent, even if the client is offline?

Say, if a gateway is only available at certain times during the day. I'd want the LAN to still function over the VPN.

laduke commented 6 years ago

Hey @Stabington the nodes need to check in with the controller for cryptography stuff once in a while.

You can run a controller inside your LAN. See https://github.com/zerotier/ZeroTierOne/tree/master/controller for DIY.

my.zerotier.com pro to self-host Central

see also #610

Stabington commented 6 years ago

Aight, guess it doesn't matter since it's on a LAN anyway. Would just make my life easier ^^