Skip to content
Contents
GuidesOpenWrt

Use OpenWrt as a local NTP server for offline cameras

First, ensure the router or standalone time server has trusted time.

First, ensure the router or standalone time server has trusted time. On OpenWrt, enable the NTP server configuration for the applicable version, and specify that it's accessible within the IoT subnet. The camera sends UDP 123 requests to a server on the same subnet or within a permitted route.

Push a maintainable target to the device

Clients that support DHCP NTP options can receive them from the gateway; others will be assigned controlled addresses within the device. Some devices with hardcoded server configurations require vendor support. Public network access continues to be restricted.

NTP status check on devices with outbound internet access disabled

Configure an IoT test device to request NTP only from the local OpenWrt router. Verify that the router itself obtains a trusted time source, then capture UDP requests and responses from that zone.

First, record the camera's own time and video indexing. After a cold start, verify whether the client successfully synchronizes. After blocking WAN, confirm synchronization and log time. Also verify recovery of upstream connectivity after router power loss.

When blocking internet access, client devices maintain normal time and have traceable sources. When NTP synchronization fails, check the firewall input rules, listening addresses, and whether the client accepts local network NTP.

Check the router clock configuration and the local NTP service state. · OpenWrt 25.12.6 x86/64 (QEMU/KVM).
Check the terminal output
Check the router clock configuration and the local NTP service state. · OpenWrt 25.12.6 x86/64 (QEMU/KVM).
Check the router clock configuration and the local NTP service state. · OpenWrt 25.12.6 x86/64 (QEMU/KVM). Open the original image

Reference

Related guides

Reference

Check the model, region and hardware revision on the label before selecting firmware.

Explore hardware

Comments