Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

global registry for ZT interface names #1182

Open
darkain opened this issue Apr 13, 2020 · 9 comments
Open

global registry for ZT interface names #1182

darkain opened this issue Apr 13, 2020 · 9 comments
Labels
BSD BSD-related issue Central & Network Management ZeroTier Central & networking management

Comments

@darkain
Copy link
Contributor

darkain commented Apr 13, 2020

Is your feature request related to a problem? Please describe.
interface adapter names are long, cryptic, confusing, and being truncated by too many utilities

Describe the solution you'd like
I would like the ability to define what the interface name should be using the my.zerotier.com web admin. This could even be a premium/paid feature.

Because a device can connect to multiple ZT networks with multiple different owners, it is reasonable to consider that these names should still be globally unique with the central ZT service managing the registration of these names.

Interface names are normally about 3-5 characters long, but ZT's "unique" interface names, rather than just being numbered like every other service in the world, uses these long cryptic names that are hard to interact with, especially dealing with a local CLI trying to type them out constantly. They also have zero human meaning, only some internal service meaning that is pointless to a sysadmin.

Describe alternatives you've considered
Pulling my hair out!?

Additional context
image

@laduke
Copy link
Contributor

laduke commented Apr 13, 2020

Hi Darkain

There was a file called devicemap that lets you specify interface name. Not sure if it (still) works on the bsds?

$ tail /var/lib/zerotier-one/devicemap

d5e04297a19bbd70=zt0

I do understand the point about having a central place to manage that, but just wanted to mention that file for anyone stopping by. And also that, for a sysadmin, the interface name for a network is the same on member of network, which can be useful for, as an example, firewall rules.

@darkain
Copy link
Contributor Author

darkain commented Apr 13, 2020

neither /var/lib/zerotier-one/ nor /usr/local/var/lib/zerotier-one/ exists. is this something that needs to be manually created, or does this mean it simply doesn't work anymore?

@laduke
Copy link
Contributor

laduke commented Apr 13, 2020

I was trying to refer to the zerotier home directory -the same place the identity files and local.conf are. You're probably on opnsense and it's different there?

@darkain
Copy link
Contributor Author

darkain commented Apr 14, 2020

The path appears to be /var/db/zerotier-one/ on FreeBSD. I still don't see the file mentioned, and am unsure if it is a file I need to personally create, or if it is simply an unsupported feature at this point.

image

@nukebloodaxe
Copy link

I would suggest creating the file, giving it a valid entry according to the earlier mentioned formatting, and seeing what happens :) Remember, testing and experimentation is your friend.

@darkain
Copy link
Contributor Author

darkain commented May 23, 2020

I've tried creating the file as suggested with no change to the interface name.

@willawork
Copy link

You will need to leave/join the network in question or restart the ZT daemon for the change to take effect.

@darkain
Copy link
Contributor Author

darkain commented Jul 1, 2020

Verified that devicemap doesn't exist on FreeBSD

https://github.com/zerotier/ZeroTierOne/blob/master/doc/zerotier-one.8.md#files
and
#1107

Even if not centrally managed, it would be extremely beneficial to have this on FreeBSD. The extremely long interface names have been causing issues with all sorts of other programs and scripts.

@nukebloodaxe
Copy link

nukebloodaxe commented Jul 1, 2020

Looking at the linked documentation, it seems to be this way because BSD can have full-length names (implied.) However, there must be more to it, perhaps it's a feature of the dev mappings in Linux specifically.

It would be good if a developer chimed in to say what the reason for the choice is, otherwise I'd say going by the docs only that there should be the option to have a switch in BSD.

Hmmm... is it possible to hard-link/soft-link the Zerotier interface name using a file-descriptor? (Given it should be /dev/[something long or zt0]) It would need to be scripted, but the results would be sensible for everything else.

@unquietwiki unquietwiki added BSD BSD-related issue Central & Network Management ZeroTier Central & networking management labels Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BSD BSD-related issue Central & Network Management ZeroTier Central & networking management
Projects
None yet
Development

No branches or pull requests

5 participants