Giter VIP home page Giter VIP logo

docker-host-discovery-sh's Introduction

docker-host-discovery

ICMP network host discovery, served in JSON over HTTP

Find online hosts in own subnet, serve results as JSON over HTTP


Features:

  • Crude demo-hack, written entirely in Shell-script
  • Runs without dependencies in Alpine Linux-container
  • Does network host discovery using ICMP Echo (ping) and filters responding hosts. (NOTE: ICMP echo-replies must be enabled, net.ipv4.icmp_echo_ignore_all=0)
  • Single shell script for ICMP flooding, "web-server" + JSON encoding (host-disco/icmp_discov_httpd.sh)
  • Serves output as JSON over HTTP ("web server" runs on port 1500 by default), example-output:
    {
        "hosts": [
            "172.24.0.1",
            "172.24.0.4",
            "172.24.0.3",
            "172.24.0.5",
            "172.24.0.2"
        ]
    }

Moving parts:

Ignore the MQTT server and clients, they are only included to have hosts to discover.

Demo:

The scripts run-test.sh/run-test.cmd demonstrates this, by starting all services and then gradually stopping them again.

Running the script demonstrates the host-discovery service responding to changes approximately within a second.

docker-host-discovery-sh's People

Contributors

kokke avatar

Watchers

 avatar  avatar  avatar

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.