This repository contains the OPNsense plugin "os-nmap". It provides a WebUI to run safe, pre-defined Nmap scans and custom commands.
- Quick Scan and interface scans from the UI
- Scan profiles with editable arguments
- Results display including services, MAC, and vendor info
- Export host results as JSON or CSV
- Results stored at
/var/db/nmap/scan_results.json
- OPNsense: Interfaces -> Diagnostics -> Nmap
- Quick Scan: choose target and profile
- Interfaces: select networks and start scan
- Custom: enter target and arguments (without "nmap" and without target)
Default profiles are created via migration, e.g. Ping scan, Fast TCP scan, TCP scan, Service detection, Full TCP scan, and Aggressive scan. Custom profiles can be created and edited in the "Scan Profiles" tab.
This repo follows the OPNsense plugin layout.
makeshows the plugin description (frompkg-descr)make packagebuilds a package inwork/pkgmake install DESTDIR=...installs into a staging directory
Note: the build system expects an OPNsense builder environment (LOCALBASE, PKG, etc.).
src/opnsense/scripts/OPNsense/Nmap/nmap_scan.py: scan runnersrc/opnsense/mvc/app/: UI, controllers, and modelsrc/opnsense/service/conf/actions.d/actions_nmap.conf: configd actionpkg-descr: short description and changelog