{% extends "base.html" %}{% set active = 'infra' %} {% block content %}

Infrastructure

Last probe: {% if snapshot %}{{ snapshot.finished_at | local }}{% else %}never{% endif %}. Runs every {{ config.schedule.infra_interval_s // 60 }} min, or lanwatch infra.

DHCP servers

{% if dhcp %}
{% for r in dhcp %}{% endfor %}
InterfaceServerOffersRouterDNSNTPDomainFirst seen
{{ r.data.interface }}{{ r.data.server }}{{ r.data.offered_ip }} {{ r.data.router }}{{ r.data.dns | join(', ') }}{{ (r.data.ntp or []) | join(', ') or '-' }}{{ r.data.domain }}{{ r.first_seen | local }}
{% if dhcp | length > 1 %}

critical More than one DHCP server is answering.

{% endif %} {% elif not snapshot %}

Not probed yet: the first infra round has not run.

{% elif dhcp_probed == 'no' %}

Not probed: the DHCP probe needs root, CAP_NET_RAW or the helper.

{% else %}

No DHCP server answered the last probe.

{% endif %} {% if exposure or config.exposure.enabled %}

Seen from the internet

{% if exposure %}
{% for r in exposure %} {% endfor %}
Public addressPorts answeringHost namesKnown vulnerabilitiesChecked
{{ r.key }} {{ 'from the gateway' if r.data.ip_source == 'upnp' else 'looked up' }} {% if r.data.ports %}{{ r.data.ports | join(', ') }}{% else %}none{% endif %} {{ r.data.hostnames | join(', ') or '-' }} {% if r.data.vulns %}{{ r.data.vulns | join(', ') }}{% else %}none matched{% endif %} {{ r.data.checked | local }}

From Shodan's InternetDB, which scans the whole internet: the outside view of this network. Checked once a day, or with lanwatch exposure.

{% else %}

Not checked yet; the daily exposure job has not run.

{% endif %} {% endif %} {% if unifi.enabled %}

UniFi controller

{% if unifi.error %}

last read failed {{ unifi.error }}{% if unifi.last_ok %} · showing the state from {{ unifi.last_ok | local }}{% endif %}

{% endif %} {% if unifi.version or unifi.last_ok %}

UniFi Network {{ unifi.version or '?' }}{% if unifi.site %}, site {{ unifi.site }}{% endif %}{% if unifi.last_ok %}, read {{ unifi.last_ok | local }}{% endif %}. {{ unifi.clients_total }} client{{ 's' if unifi.clients_total != 1 }}{% if unifi.clients_guest %}, {{ unifi.clients_guest }} guest{% endif %}{% if unifi.clients_unknown %}, {{ unifi.clients_unknown }} never seen by lanwatch (see findings){% endif %}. Topology.

Networks

{% for r in unifi.networks %}{% endfor %}
NetworkVLANSubnetSSIDsIsolationInternetState
{{ r.data.name }}{% if r.data.default %} (default){% endif %}{{ r.data.vlan if r.data.vlan is not none else '-' }}{{ r.data.subnet or '-' }} {{ r.data.ssids | join(', ') or '-' }}{% if r.data.isolation %}isolated{% elif r.data.isolation is sameas false %}no{% else %}-{% endif %} {% if r.data.internet_access is sameas false %}blocked{% elif r.data.internet_access %}yes{% else %}-{% endif %}{{ 'enabled' if r.data.enabled else 'disabled' }}
{% if unifi.ssids %}

Wi-Fi

{% for r in unifi.ssids %}{% endfor %}
SSIDTypeNetworkState
{{ r.data.name }}{{ 'IoT-optimised' if r.data.type == 'IOT_OPTIMIZED' else 'standard' }}{{ r.data.network_name or '-' }}{{ 'enabled' if r.data.enabled else 'disabled' }}
{% endif %}

UniFi devices

{% for r in unifi.devices %}{% set d = devices_by_mac.get(r.key) %} {% set st = r.data.stats %}{% endfor %}
DeviceModelStateIPFirmwarePortsClientsUpCPU / memoryUplink in / out
{% if d %}{{ r.data.name or r.data.model }}{% else %}{{ r.data.name or r.data.model }}{% endif %}{% if r.data.is_gateway %} gateway{% elif r.data.is_access_point %} access point{% endif %} {{ r.data.model }}{% if r.data.state == 'ONLINE' %}online{% else %}{{ r.data.state | lower | replace('_', ' ') }}{% endif %} {{ r.data.ip or '-' }}{{ r.data.firmware_version or '-' }}{% if r.data.firmware_updatable %} update available{% endif %} {% if r.data.ports.total %}{{ r.data.ports.up }}/{{ r.data.ports.total }} up{% if r.data.ports.poe %}, {{ r.data.ports.poe }} PoE{% endif %}{% for p in r.data.port_list or [] if p.slow %}
port {{ p.idx }} at {{ p.speed | mbps }}{% endfor %}{% else %}-{% endif %}
{{ r.data.clients }}{{ st.uptime_s | duration if st and st.uptime_s is not none else '-' }}{% if st and st.cpu_pct is not none %}{{ st.cpu_pct }} % / {{ st.mem_pct if st.mem_pct is not none else '?' }} %{% else %}-{% endif %} {% if st and st.uplink_rx_bps is not none %}{{ st.uplink_rx_bps | rate }} / {{ st.uplink_tx_bps | rate }}{% else %}-{% endif %}
{% if unifi.pending %}

Waiting for adoption

UniFi gear the controller sees but nobody has adopted: new, factory reset, or not yours.

{% for r in unifi.pending %}{% set d = devices_by_mac.get(r.key) %} {% endfor %}
ModelIPMACFirmwareKnown to lanwatch
{{ r.data.model or '-' }}{{ r.data.ip or '-' }}{{ r.key }}{{ r.data.firmware_version or '-' }} {% if d %}{{ d.label }}{% else %}no{% endif %}
{% endif %} {% elif not unifi.error %}

Not read yet; the infra round reads the controller every {{ config.schedule.infra_interval_s // 60 }} minutes, or run lanwatch unifi.

{% endif %} {% endif %} {% if snmp_targets %}

SNMP devices

Everything lanwatch reads over SNMPv3 (read only, authPriv), from [snmp.devices].

{% for t in snmp_targets %}{% endfor %}
NameAddressRoleWhat it isUpLast read
{% if t.device %}{{ t.name or t.device.label }}{% else %}{{ t.name or '-' }}{% endif %} {{ t.host or 'default gateway' }} {{ t.role }} {% if t.system %}{{ t.system.vendor or t.system.object_id }} {{ t.system.descr | truncate(70) }}{% else %}-{% endif %} {% if t.system %}{{ t.system.uptime_s | duration }}{% else %}-{% endif %} {% if t.error %}failed{% if t.fails > 1 %} {{ t.fails }} times{% endif %} {{ t.error | truncate(80) }}{% if t.last_ok %}
last good read {{ t.last_ok | local }}{% endif %}{% elif t.last_ok %}ok {{ t.last_ok | local }}{% else %}not yet{% endif %}
{% endif %} {% if router.enabled %}

Router{% if router.system and router.system.name %}: {{ router.system.name }}{% endif %}

{% if router.error %}

last read failed {{ router.error }}{% if router.last_ok %} · showing the state from {{ router.last_ok | local }}{% endif %}

{% endif %} {% if router.rows %}

The router's ARP table{% if router.has_leases %} and DHCP leases{% endif %}, read over SNMPv3{% if router.last_ok %} {{ router.last_ok | local }}{% endif %}. {{ router.rows | length }} address{{ 'es' if router.rows | length != 1 }}{% if router.unknown %}, {{ router.unknown }} with a MAC lanwatch has no device for{% endif %}{% if router.mismatches %}, {{ router.mismatches }} where the router and lanwatch disagree (see findings){% endif %}. None of this counts as presence: lanwatch pings the addresses it missed once more, and only a reply makes a device online.

{% if router.has_leases %}{% endif %} {% for r in router.rows %} {% if router.has_leases %}{% endif %} {% endfor %}
AddressMACDeviceInterfaceDHCP leaseNote
{{ r.ip }}{{ r.mac or '-' }} {% if r.device %}{{ r.device.label }}{% else %}not known to lanwatch{% endif %} {{ r.interface or '-' }}{% if r.lease %}since {{ r.lease.since or '?' }}{% elif r.in_arp and r.private %}none{% if r.static %} (static ARP){% endif %}{% else %}-{% endif %}{% if r.mismatch_confirmed %}lanwatch saw {{ r.mismatch.lanwatch_macs | join(', ') }}{% elif r.mismatch %}lanwatch saw {{ r.mismatch.lanwatch_macs | join(', ') }}; checking again next read{% elif not r.in_arp %}lease only, not in ARP{% endif %}
{% elif not router.error %}

Not read yet; the infra round reads the router every {{ config.schedule.infra_interval_s // 60 }} minutes, or run lanwatch snmp.

{% endif %} {% endif %} {% if dns_filter %}

DNS filtering

{% for r in dns_filter %} {% if not r.data.working %} {% else %} {% endif %} {% endfor %}
ResolverSourceAds and trackersMalicious domainsTest names it blocked
{{ r.key }}{{ 'DHCP' if r.data.announced_by_dhcp else 'this machine' }}did not answer the control lookup; no verdict{% if r.data.ads %}filtered{% elif r.data.ads is none %}unknown{% else %}not filtered{% endif %} {% if r.data.threats %}filtered{% if r.data.provider %} {{ r.data.provider }}{% endif %}{% elif r.data.threats is none %}unknown{% else %}not seen{% endif %} {{ r.data.blocked | join(', ') or '-' }}

“Malicious domains” is tested with the public test names of Cloudflare for Families, Quad9 and OpenDNS. A resolver that filters threats with another provider's list shows as “not seen”.

{% endif %}

UPnP

{% if upnp %}
{% for r in upnp %}{% set d = devices_by_ip.get(r.key) %} {% endfor %}
AddressNameManufacturer / modelTypeIGDExternal IPMappings
{% if d %}{{ r.key }}{% else %}{{ r.key }}{% endif %}{{ r.data.friendly_name or '-' }} {{ r.data.manufacturer }} {{ r.data.model }}{{ r.data.device_type }}{{ 'yes' if r.data.is_igd else '' }} {{ r.data.external_ip or '' }}{{ r.data.mappings | length if r.data.is_igd else '' }}
{% for r in igds if r.data.mappings %}

Port mappings on {{ r.data.friendly_name or r.key }}

{% for m in r.data.mappings %}{% set d = devices_by_ip.get(m.internal_client) %} {% endfor %}
ExternalProtocolInternalDescriptionEnabledLease
{{ m.remote_host or '*' }}:{{ m.external_port }}{{ m.protocol }} {% if d %}{{ d.label }} {% endif %}{{ m.internal_client }}:{{ m.internal_port }} {{ m.description }}{{ 'yes' if m.enabled else 'no' }}{{ m.lease_seconds or 'permanent' }}
{% endfor %} {% else %}

No UPnP devices answered.

{% endif %} {% if radios.enabled %}

Wireless links

airMAX radios, read with their read-only account every {{ config.schedule.infra_interval_s // 60 }} minutes. Signal and noise in dBm; SNR is the difference. CCQ is the share of frames that got through the first time.

{% for r in radios.radios %}{% set d = r.data %}

{% if r.device %}{{ d.hostname or r.host }}{% else %}{{ d.hostname or r.host }}{% endif %} {{ r.host }}

{% if d.error %}

{% if d.pin_failed %}certificate changed{% else %}last read failed{% endif %} {{ d.error }}{% if d.read_at %} · showing the state from {{ d.read_at | local }}{% endif %}

{% endif %} {% if r.read %}
Radio
{{ d.model }} · airOS {{ d.firmware }} · {{ 'access point' if d.mode.startswith('ap') else 'station' if d.mode.startswith('sta') else d.mode }} ({{ d.netrole }}) · up {{ d.uptime_s | duration }}
Channel
{{ d.frequency_mhz or '?' }} MHz{% if d.channel_width_mhz %}, {{ d.channel_width_mhz }} MHz wide{% endif %}{% if d.essid %} · SSID {{ d.essid }}{% endif %}{% if d.security %} · {{ d.security }}{% endif %}{% if d.tx_power is not none %} · {{ d.tx_power }} dBm out{% endif %}
Ethernet
{% if r.ethernet %}{{ r.ethernet.speed or '?' }} Mbit/s{% if r.ethernet.full_duplex is sameas false %} half duplex{% endif %}{% else %}not connected{% endif %}
{% if r.stations %}
{% for st in r.stations %} {% endfor %}
Linked withSignal here / thereNoise here / thereSNR here / thereCCQairMAX quality / capacityRate tx / rxLink upFar end runs
{% if st.device %}{{ st.remote_hostname or st.name or st.mac }}{% else %}{{ st.remote_hostname or st.name or st.mac }}{% endif %} {{ st.ip or '' }} {{ st.signal if st.signal is not none else '?' }} / {{ st.remote_signal if st.remote_signal is not none else '?' }} {{ st.noise if st.noise is not none else '?' }} / {{ st.remote_noise if st.remote_noise is not none else '?' }} {% if st.signal is not none and st.noise is not none %}{{ st.signal - st.noise }}{% else %}?{% endif %} / {% if st.remote_signal is not none and st.remote_noise is not none %}{{ st.remote_signal - st.remote_noise }}{% else %}?{% endif %} dB {{ st.ccq if st.ccq is not none else '?' }} % {% if st.airmax_quality %}{{ st.airmax_quality }} % / {{ st.airmax_capacity }} %{% else %}not measured yet{% endif %} {{ '%g' | format(st.tx_mbps) if st.tx_mbps is not none else '?' }} / {{ '%g' | format(st.rx_mbps) if st.rx_mbps is not none else '?' }} Mbit/s {{ st.uptime_s | duration if st.uptime_s else '-' }} {{ (st.remote_version or '-') | replace('XM.ar7240.', '') }}
{% else %}

no link the radio is up but linked with no other radio{% if d.signal is not none %}; it hears {{ d.signal }} dBm against {{ d.noise }} dBm noise{% endif %}

{% endif %}

Read {{ d.read_at | local }}.

{% elif not d.error %}

Not read yet; run lanwatch airos or wait for the infra round.

{% endif %} {% endfor %} {% endif %} {% if routers %}

IPv6 routers

{% for r in routers %}{% set d = devices_by_mac.get(r.data.mac) %} {% endfor %}
InterfaceRouter addressMACDeviceFirst seen
{{ r.data.dev }}{{ r.data.gateway }}{{ r.data.mac or '-' }} {% if d %}{{ d.label }}{% else %}-{% endif %}{{ r.first_seen | local }}
{% endif %}

IPv6

{% if ipv6 %}
{% for d in ipv6 %}{% endfor %}
DeviceGlobal addressesOpen ports
{{ d.label }}{{ d.attrs.ipv6 | join(', ') }} {% for a, ps in (d.attrs.ipv6_open or {}).items() %}{{ ps | join(' ') }}{% if not loop.last %}; {% endif %}{% else %}-{% endfor %}
{% else %}

No devices with global IPv6 addresses seen.

{% endif %} {% endblock %}