Discovers devices on a pfSense network by reading DHCP leases over SSH, then enriches the results by filling in a type and model for devices pfSense can't identify on its own.
- A dedicated SSH key must be authorized for
rooton the pfSense box (System → User Manager → root → Authorized SSH Keys). - Point the tool at your key and host, either via flags or env vars:
export PFSENSE_HOST=10.27.27.1
export PFSENSE_SSH_KEY=~/.ssh/netscanner_pfsense
./scan.sh
This is the main entry point. It scans the network and writes the device list to devices.json.
To run just the scan, without enrichment:
uv run netscanner --host 10.27.27.1
Run uv run netscanner --help for the full list of flags.
- IPv4 only — DHCPv6 leases (
dhcp6.leases) are not read. - Assumes a Kea DHCP backend (pfSense's current default). Legacy ISC dhcpd (
dhcpd.leases) is not supported.