Giter Club home page Giter Club logo

ntopng-docker's Introduction

ntopng-docker

build ntopng-docker amd64 stable repository (no armhf) build ntopng-docker multi-arch images nightly repository

Docker Size Docker Size Docker Pulls Docker Stars ImageLayers

simple container to analyze network traffic based on https://github.com/Laisky/ntopng-docker for amd64 and arm.

  • use debian bullseye-slim image to have small base image
  • two tags: dev-latest for latest nightly (armhf, adm64), stable-latest for latest stable (amd64)
  • as of 2022/03/05, ntop version is v.5.2 for stable, 5.3 for nightly.
  • For the moment, no stable armhf version is available.

Docker tags: - latest: from repository - nightly-latest: from nightly repository

armhf latest version is here: https://packages.ntop.org/RaspberryPI/buster_pi/armhf/ntopng/

Official Docker file are here: https://github.com/ntop/docker-ntop

Official (x86_64) containers are here: https://hub.docker.com/r/ntop/ntopng

Usage

Container is using network host mode.

If you want to build from sources:

docker-compose build

using docker-compse.yml, notpng and redis volumes are persistent:

mkdir -m 777 /var/lib/ntopng/
docker-compose up -d
  • navigate to 0.0.0.0:27833
  • set admin password ( default login/pwd is admin/admin)

env value NTOP_UID and NTOP_GID are available to match user and group of local mounted volumes (./data/notpng, ./data/redis)

Note that with netplan.io, it is not possible to set an interface in promiscous mode, ie you can't monitor all flows, but only flows from or to the host. if anyone knows how to do with netplan, please let me know.

This command may help to set the interface to promiscuous mode: ip set link <interface> up promisc on

ntopng-docker's People

Contributors

dependabot[bot] avatar edgd1er avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jdevries tonydm

ntopng-docker's Issues

ntopng: error while loading shared libraries: libcap.so.2: cannot open shared object file: No such file or directory

I'm trying to run this image on a Raspberry Pi 4 with Arch Linux ARM.

Here is my compose file:

version: "3.3"
services:
  ntop:
    image: edgd1er/ntopng:dev-latest
    restart: unless-stopped
    command: --community -d /var/lib/ntopng -i eth0 -r 127.0.0.1:6379@0 -w 0.0.0.0:3000
    cap_add:
      - NET_ADMIN
    network_mode: host
    environment:
      - TZ=America/Chicago
      - NTOP_UID=1000
      - NTOP_GID=1000
    volumes:
      - ./data/ntopng:/var/lib/ntopng
    depends_on:
      - redis

  redis:
    image: redis:alpine
    restart: unless-stopped
    command: --save 900 1
    ports:
      - 6379:6379
    volumes:
      - ./data/redis:/data

The image starts, however the webpage is inaccessible and the docker-compose log shows this:

ntop_1       | + setTimeZone
ntop_1       | + [[ -z America/Chicago ]]
ntop_1       | ++ cat /etc/timezone
ntop_1       | + [[ America/Chicago == America/Chicago ]]
ntop_1       | + return
ntop_1       | + setUid
ntop_1       | + '[' -n 1000 ']'
ntop_1       | ++ id -u ntopng
ntop_1       | + '[' 1000 -ne 1000 ']'
ntop_1       | + setGid
ntop_1       | + '[' '!' -z 1000 ']'
ntop_1       | ++ id -g ntopng
ntop_1       | + '[' '!' 1000 -eq 1000 ']'
ntop_1       | + ntopng --community -d /var/lib/ntopng -i eth0 -r 127.0.0.1:6379@0 -w 0.0.0.0:3000
ntop_1       | ntopng: error while loading shared libraries: libcap.so.2: cannot open shared object file: No such file or directory

My guess is that libcap wasn't installed when building the image since I can't find any results for it when searching in this repo.

Apt failes when aptcacher is not available

Thank you for this docker setup.
I noticed that when I did the 'docker-compose up -d' it failed to get packages.
It looks like the if check in Dockerfile.all doesn't work.
I commented out that part and it compiled ok.

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.