NTP
Enable NTP when the core needs a clock offset for protocols. Default settings are usually sufficient.
yaml
ntp:
enable: true
server: time.apple.com
port: 123
interval: 30
write-to-system: false
dialer-proxy: DIRECT| Field | How to configure it |
|---|---|
enable | Enable time synchronization |
server / port | NTP server and UDP port; this example uses time.apple.com:123 |
interval | Synchronization interval in minutes, 30 here |
dialer-proxy | Outbound for requests; another node must support UDP |
write-to-system | Always disabled on Apple platforms; device time is unchanged |
If synchronization fails, check UDP connectivity and the selected outbound.
Platform behavior and field status
NTP supplies a clock offset to protocols without changing device time.
6 fields shown
| Field | Type | iOS | macOS | tvOS | Platform notes |
|---|---|---|---|---|---|
ntp.dialer-proxy | String | Managed / limited | Managed / limited | Managed / limited | Configures time synchronization for protocol time offsets; does not change the device clock. |
ntp.enable | Boolean | Managed / limited | Managed / limited | Managed / limited | Configures time synchronization for protocol time offsets; does not change the device clock. |
ntp.interval | Integer | Managed / limited | Managed / limited | Managed / limited | Time synchronization interval in minutes. |
ntp.port | Integer | Managed / limited | Managed / limited | Managed / limited | Configures time synchronization for protocol time offsets; does not change the device clock. |
ntp.server | String | Managed / limited | Managed / limited | Managed / limited | Configures time synchronization for protocol time offsets; does not change the device clock. |
ntp.write-to-system | Boolean | Unsupported | Unsupported | Unsupported | Always false; does not change the device clock. |
Reference: mihomo.