Hi,
My use-case: Running a Freebsd 12.2 server on a Pi3 as a Wireguard client to my PFSense Wireguard server.
If the wireguard service in the Pi3 is disabled in rc.conf, the server boots up and the ntpd sync works fine, and system time is accurate.
But if the wireguard service in the Pi3 is enabled in rc.conf, the ntpd sync does not finish before wireguard is started. This causes two issues:
- System clock is like an hour offtrack
- Wireguard handshake between client and server failed due to the time gap being too large
I used rcorder to check the actual script execution order. Initially wireguard service ran before ntpd. Modified the rc script for wireguard to require ntpd. This solved the execution order and ntpd runs just before wireguard. But for some reason ntpd does not sync before winguard starts its handshake.
Despite my best search efforts, I have not found anyone running in to this particular issue. Probably because my HW and OS combo is not that common for wireguard users.
Any advise on how to resolve this would be much appreciated.
Best Regards
//Jimmy
My use-case: Running a Freebsd 12.2 server on a Pi3 as a Wireguard client to my PFSense Wireguard server.
If the wireguard service in the Pi3 is disabled in rc.conf, the server boots up and the ntpd sync works fine, and system time is accurate.
But if the wireguard service in the Pi3 is enabled in rc.conf, the ntpd sync does not finish before wireguard is started. This causes two issues:
- System clock is like an hour offtrack
- Wireguard handshake between client and server failed due to the time gap being too large
I used rcorder to check the actual script execution order. Initially wireguard service ran before ntpd. Modified the rc script for wireguard to require ntpd. This solved the execution order and ntpd runs just before wireguard. But for some reason ntpd does not sync before winguard starts its handshake.
Despite my best search efforts, I have not found anyone running in to this particular issue. Probably because my HW and OS combo is not that common for wireguard users.
Any advise on how to resolve this would be much appreciated.
Best Regards
//Jimmy