Settings → Networks is the list of networks Netlens scans, and the place to choose them. Each network has a Scan switch:
- The networks Netlens finds on the Docker host’s own network cards appear by themselves and are scanned (a VLAN interface you add later shows up on its own).
- Add a network for everything else: a VLAN or a routed network that Netlens can reach, a network behind a VPN. Scanning a routed network needs a route to it and no firewall rule in the way. Give it a name if you like.
- Untick Scan to leave a network out; its devices and history stay. A network you added can be removed; a detected one only switched off.
NETLENS_RANGES(in.env, same format) puts its ranges in the list when Netlens starts; they are a starting point, the list in Settings is the master.- It takes effect from the next scan, with no restart, and is stored in the data directory, so it survives updates and rebuilds. Only private IPv4 ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, and link-local) of /20 or smaller are accepted, and a single address such as
192.168.1.10works too. The web terminal can only connect to devices inside the networks that are scanned.
An installation that had its own list of ranges before the list of networks existed keeps scanning exactly those: they became networks when it was updated, and the networks found on its network cards are listed but not ticked. (The older PUT /api/config/ranges still works: exactly those networks are scanned. New code uses /api/networks.)