Skip to content

Advanced DHCP server

Notifications You must be signed in to change notification settings

sadeemio/shabik

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shabik

Advanced DHCP server that provides public and private IP leases for VMs created by Sadeem.io, by connecting to Sadeem.io rabbitmq to fetch VM leases, store them on a key/vlue store DB (boltdb), and serve the leases to the VMs upon request. Updates on the leases happens on realtime without need to restart shabik service to reload the new leases, it will server the new leases directly once they are consumed from sadeem.io rabbitmq.

In case the lease Gateway is not on the same subnet, Shabik will push a classless route with the lease which will be operated by dhclient on the VM, to configure the Gateway.

Accepted json format

{
  "leases": [
    {
      "ip": "192.168.124.23",
      "mac": "52:54:77:4e:00:02",
      "hostname": "travirs",
      "gateway": "192.168.124.254",
      "netmask": "255.255.255.0"
    },
    {
      "ip": "10.11.10.1",
      "mac": "21:64:77:5e:11:02",
      "hostname": "manog",
      "gateway": "10.0.0.22",
      "netmask": "255.255.255.0"
    },
    {
      "ip": "10.11.10.22",
      "mac": "23:64:77:5e:11:02",
      "hostname": "duplicated",
      "gateway": "10.0.0.22",
      "netmask": "255.255.255.0"
    }
  ]
}

About

Advanced DHCP server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published