Skip to content

Instantly share code, notes, and snippets.

@mawalu
Last active August 29, 2015 14:12
Show Gist options
  • Save mawalu/022b8d45ac8e2b2400dd to your computer and use it in GitHub Desktop.
Save mawalu/022b8d45ac8e2b2400dd to your computer and use it in GitHub Desktop.
CAT.md

cjdns admin tool

Features

Api wrapper

Simple http api instead of rpc interface.

Persistance

Save added peers, iptunnels etc. in db and add them again afterwards so they still work after restart.

Collect data

Save traffic usage from peerStats. Show daily / weekly / monthly usage.

Multi node support

Manage multiple nodes through one instance / api.

Plugin ideas

Dashboard

Peering requests

Instead of exchanging credentials via email, users could sent some kind of peering requests between two CAT instances to arrange peering between some of there nodes.

Time / traffic limited peering

Allow users to peer for a few days and have there credentials automaticly deleted afterwards. You could also delete peers with too much traffic.

Full featured ISP

With iptunnels and some kind of payment gateway in combination with the above-mentioned one could create a full featured ISP. Maybe combine with something like meshbox or even enigmabox

Implementation

  • Connect to admin api
  • Save changes made through CAT api to database
  • Pass commands to cjdns api
  • Save data from peerStats to db every few seconds
  • If the connection to the cjdns api is lost, try to reconnect
  • As soon as cjdns is up again, send commands from db again
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment