GithubHelp home page GithubHelp logo

mikesir87 / network-interceptor Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 227 KB

A simple app that leverages containers to help you learn networking basics

License: Apache License 2.0

Dockerfile 1.76% JavaScript 18.82% HTML 1.66% TypeScript 77.68% CSS 0.09%

network-interceptor's Introduction

Container Network Tool

This project provides a minimal web-based network visualizer that lets you intercept (using tcpdump) the traffic of any container running on your machine. And best of all... no tools are required to be installed in the container!

How it works

To intercept traffic, we're leveraging tcpdump. Recognizing most containers don't have tcpdump installed, we are leveraging the nicolaka/netshoot image to start a new container in the same process and network namespace as the target container. This lets us listen to the same network interfaces the container is using without requiring tools to be installed in the container itself.

Once the packets are intercepted, they are transmitted via WebSocket to the frontend application where they are decoded and rendered in the UI. The "backend" of the app simply serves as the relay to start the interceptor and forward the intercepted packets.

Running the application

Simply run:

docker run -dp 3000:3000 -v /var/run/docker.sock:/var/run/docker.sock mikesir87/network-interceptor

After the container starts, open http://localhost:3000 to see the application.

Development

To run the application in development, use Docker Compose!

docker compose up -d

Then, open http://localhost:3000. Changes you make to either the froned or backend will be seen immediately.

network-interceptor's People

Contributors

mikesir87 avatar

Stargazers

Nuno Coração avatar Hanan Mansour avatar Franzwagner Ternus avatar

Watchers

 avatar James Cloos 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.