Giter Site home page Giter Site logo

elvisp's Introduction

Elvisp

Elvisp (Work in Progress) Build Status Coverage Status

El (Spanish for the) VISP (Virtual Internet Service Provider)

Elvisp assigns IPv6 and/or IPv4 addresses for a cjdns-based IP tunnel using the public key for the connecting node. It will add the user's assigned address with cjdns' admin API. Elvisp then returns the assigned address(es).

Installation

go get github.com/willeponken/elvisp/cmd/...

Usage

Elvispd flags

Usage of elvispd:
  -cidr value
    	CIDR to use for IP leasing, use flag repeatedly for multiple CIDR's.
  -cjdns-ip string
    	IP address for cjdns admin. (default "127.0.0.1")
  -cjdns-password string
    	Password for cjdns admin.
  -cjdns-port int
    	Port for cjdns admin. (default 11234)
  -db string
    	Directory to use for the database. (default "/tmp/elvisp-db")
  -listen string
    	Listen address for TCP. (default ":4132")
  -password string
    	Password for administrating Elvisp.

Example:

elvispd -cidr 192.168.1.0/24 -cidr 1234::0/16 -cidr 172.16.0.0/12 -cjdns-password 6c12zbnNoThisIsntMyRealPasswordn7x1

Which will add the users / nodes to subnets:

  • 192.168.1.0/24
  • 1234::0/16
  • 172.16.0.0/12

So the first user will get:

  • 192.168.1.1
  • 1234::1
  • 172.16.0.1

Elvispc flags

Usage of elvispc:
  -a string
    	Address for server.
  -l	Request lease.
  -r	Remove client.

Example:

elvispc -a 127.0.0.1:4132 -l # Request lease
elvispc -a 127.0.0.1:4132 -r # Remove client

Supported cjdns versions

Elvisp requires the follwing cjdns admin methods:

  • IpTunnel_allowConnection
  • IpTunnel_listConnections
  • IpTunnel_showConnection
  • IpTunnel_removeConnection
  • NodeStore_nodeForAddr

Elvisp works with (atleast):

Cjdns version: cjdns-v17.4
Cjdns protocol version: 17

Documentation

elvisp's People

Contributors

golint-fixer avatar wstrm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

elvisp's Issues

IPv4 and IPv6 support

As of now, there's only IPv6 support. There should be support for both protocols at the same time.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.