mirror of
https://gitlab.com/shadow_contributor/ntptun.git
synced 2026-10-03 03:46:50 +00:00
34 lines
1.3 KiB
Text
34 lines
1.3 KiB
Text
# Example ntptun CLIENT configuration — UDP port-tunneling transport.
|
|
#
|
|
# In this mode the client does NOT use a TUN interface. It listens on a local
|
|
# UDP port and tunnels whatever it receives (e.g. a WireGuard client pointed at
|
|
# 127.0.0.1:9000). This transport builds and runs on Windows/MSVC too.
|
|
|
|
mode = client
|
|
transport = udp
|
|
client_id = 42
|
|
server = 203.0.113.10:12300
|
|
|
|
# Local UDP address the app connects to. Point WireGuard (or any UDP client)
|
|
# here; the client remembers the last local peer and returns downstream
|
|
# datagrams to it.
|
|
udp_listen = 127.0.0.1:9000
|
|
|
|
ext_type = 0x0F4E
|
|
# inner_mtu is the largest UDP payload that fits one NTP carrier. Payloads
|
|
# larger than this are discarded with an error in the log.
|
|
#
|
|
# WireGuard adds a fixed 32-byte overhead to each encapsulated IP packet, so set
|
|
# WireGuard's interface MTU to at most inner_mtu - 32. With inner_mtu = 1136
|
|
# that is MTU = 1104 (put `MTU = 1104` under [Interface] in the WireGuard conf).
|
|
# The client also logs this recommended maximum at startup.
|
|
inner_mtu = 1136
|
|
ntp_payload_cap = 1216
|
|
|
|
# push = false
|
|
poll_interval_ms = 250
|
|
poll_window = 8
|
|
keepalive_ms = 1000
|
|
log_level = info
|
|
|
|
default_key = 202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f
|