v0.3.9
Added
- Per-device presence policies.
lanfence device <MAC> --presence unspecified|intermittent|always-on(plus--offline-after/--clear-offline-after) lets you tell LAN Fence what "normal" presence looks like for a device, separate from trust. Intermittent devices suppress only the routine "it came back" lifecycle finding (first discoveries and real security findings are never suppressed); always-on devices get a medium-severity absence finding once gone past an effective delay, plus one info recovery finding on return, persisted per-episode.lanfence devices --presence ...filters, and interactivereviewasks about it after trusting a device. lanfence digest. A concise, side-effect-free summary of recent activity - new devices, review/investigation queues, missing always-on devices - as an alternative to per-event notifications. Rolling window (default 24h), preview by default,--senddelivers viadigest.channels(email/webhook/Slack/Discord/Teams/ntfy), independent of the immediate-alert pipeline.- Unexpected DHCP server detection. Passively detects a DHCPOFFER/ACK/NAK reply from a server not on
dhcp_servers.approvedfor the interface it answered on. Scoped by interface (VLAN sub-interfaces likeeth0.20supported natively), independent of device trust.lanfence dhcp-serverslists observed servers;Finding.macis now optional for this non-device finding type. lanfence resetpermanently wipes scanned device history (and, optionally, the allowlist).- LAN Fence now identifies and trusts itself on the interface it's using, so its own traffic is never treated as an unknown device.
Fixed
lanfence monitorcould crash on a real DHCP hostname delivered as raw bytes by some scapy versions/platforms.lanfence linkfalsely refused a normal pipx install undersudo- it now resolves the real invoking user viaSUDO_UID.
Full changelog: https://github.com/rosscooney/LanFence/blob/main/CHANGELOG.md