netscan

module
v0.0.0-...-f056d1c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2026 License: MIT

README

netscan

Go Version Docker License


Key Features

  • Automated Discovery: Randomized ICMP sweeps across multiple subnets to automatically find new devices.
  • Real-Time Monitoring
  • Optional SNMP Enrichment
  • InfluxDB Integration: Native support for InfluxDB v2, separating operational metrics from health telemetry.
  • Secure Deployment: Native systemd installation supports rootless execution via capability-based security (CAP_NET_RAW), while Docker orchestration simplifies local evaluation.

Docker Quick Start

Get up and running in minutes with the pre-configured Docker stack.

Prerequisites
  • Docker Engine 20.10+
  • Docker Compose V2
1. Clone & Configure
git clone https://github.com/kljama/netscan.git
cd netscan

# Create config files
cp config.yml.example config.yml
cp .env.example .env
2. Set Your Network Range

Open config.yml and set your actual network CIDR.

networks:
  - "192.168.1.0/24"  # <--- Change this to your network!
3. Launch
docker compose up -d

Access the InfluxDB UI at https://localhost (User: admin, Pass: admin123).


Deployment Options

Method Best For Description
Docker Compose Testing & Small Prod Easiest setup. Orchestrates netscan + InfluxDB together.
Native Systemd Production Security Runs as dedicated user with minimal capabilities.

See MANUAL.md for detailed deployment guides, security hardening, and configuration references.


Verification

Check if the service is running correctly:

# View live logs
docker compose logs -f netscan

# Check health endpoint
curl http://localhost:8080/health

License

MIT License - See LICENSE.md

Directories

Path Synopsis
cmd
netscan command
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL