Skip to content
forked from Red5d/ztadmin

A scriptable interface to ZeroTier One's unofficial administration API.

License

Notifications You must be signed in to change notification settings

SunSparc/ztadmin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZTAdmin

ZeroTier One is a Software Defined Networking service that allows for creating a scalable, secure P2P virtual network between all your computers no matter where they are.

This tool manipulates the settings on the admin panel and can be scripted using the API.

I am not associated with ZeroTier Networks, I just think it's awesome.

##Requirements:

  • Python version 3.x (not 2.x)
  • Python requests module.
  • A ZeroTier One account.

Run the script with the "help" option to show the usage information:

Example: python ztadmin.py help

If run with no parameters, the script will prompt you to log in, and will then display a listing of your networks and their members.

##Current features:

  • Create a network.
  • Set attributes of a network or member of a network.
  • Authorize all pending join requests for a network (useful for mass-deployments).
  • Show network settings and information for a specified network ID.
  • Read login creds from a file named ".ztlogin" in the same directory (enables using the tool in automated scripts).

The ".ztlogin" file should be in .ini format like this:

[ZeroTier]
username=bob
password=supersecret

##Future features: I'll be working on making the tool return more precise information when actions are applied (return network id when a network is created, for example) that will be useful when using the tool in scripts.

An "importable" python module to use the ZeroTier API is in the works as well.

I haven't personally used ZeroTier One on a large scale or part of an infrastructure, but I know people do. If you think of a feature that would be useful in that environment, submit an issue or pull request and I'll see what I can do. I will probably do a little bit more polishing of the existing code though before accepting pull requests in case I change some things.

About

A scriptable interface to ZeroTier One's unofficial administration API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%