Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - LouCipher

#1
Ok, so problem solved :)

Seems like there is a problem with ODROID-H2(device used for OPNsense) and FreeBSD regarding hwclock.

What I did to fix this was to change the parameter kern.timecounter.hardware from TSC-low to ACPI-fast.

sysctl -w kern.timecounter.hardware=ACPI-fast

And made the change persistent with a tunable.

After that all looks good. Clock is correct.

Thanks AdSchellevis for pointing me in the right direction!

See below for more details of the fix.
https://forum.odroid.com/viewtopic.php?t=33911
#2
Ok, that might be it. I'll look in to that and report back. Thank you!
#3
Ok, here's the result...

root@OPNsense:~ # ntpdate 0.opnsense.pool.ntp.org
14 Aug 10:24:59 ntpdate[87980]: step time server 83.168.200.198 offset +5655.643222 sec
root@OPNsense:~ # ntpdate 0.opnsense.pool.ntp.org
14 Aug 10:28:31 ntpdate[2106]: step time server 147.78.228.41 offset +157.351788 sec
root@OPNsense:~ #


Clock on dashboard seems to sync.

Starting ntpd...

Log shows:

Aug 14 10:28:35 OPNsense ntpd[77906]: 0.0.0.0 c016 06 restart
Aug 14 10:28:35 OPNsense ntpd[77906]: DNS 0.opnsense.pool.ntp.org -> 193.182.111.142
Aug 14 10:28:35 OPNsense ntpd[77906]: 193.182.111.142 8011 81 mobilize assoc 43417
Aug 14 10:28:36 OPNsense ntpd[77906]: DNS 1.opnsense.pool.ntp.org -> 193.182.111.141
Aug 14 10:28:36 OPNsense ntpd[77906]: 193.182.111.141 8011 81 mobilize assoc 43418
Aug 14 10:28:36 OPNsense ntpd[77906]: DNS 2.opnsense.pool.ntp.org -> 193.182.111.12
Aug 14 10:28:36 OPNsense ntpd[77906]: 193.182.111.12 8011 81 mobilize assoc 43419
Aug 14 10:28:36 OPNsense ntpd[77906]: DNS 3.opnsense.pool.ntp.org -> 162.159.200.123
Aug 14 10:28:36 OPNsense ntpd[77906]: 162.159.200.123 8011 81 mobilize assoc 43420
Aug 14 10:28:37 OPNsense ntpd[77906]: 162.159.200.123 8014 84 reachable
Aug 14 10:28:37 OPNsense ntpd[77906]: 193.182.111.142 8014 84 reachable
Aug 14 10:28:38 OPNsense ntpd[77906]: 193.182.111.141 8014 84 reachable
Aug 14 10:28:39 OPNsense ntpd[77906]: 193.182.111.12 8014 84 reachable


Services->Network time->Status shows:

Status   Server   Ref ID   Stratum   Type   When   Poll   Reach   Delay   Offset   Jitter
Unreach/Pending   193.182.111.142   192.36.143.152   2   u   41   64   1   12.357   +54612.   19739.1
Unreach/Pending   193.182.111.141   192.36.143.130   2   u   40   64   1   3.258   +57555.   19659.9
Unreach/Pending   193.182.111.12   192.36.143.153   2   u   39   64   1   2.974   +60612.   19798.2
Unreach/Pending   162.159.200.123   10.65.8.177   3   u   41   64   1   4.150   +54582.   19728.3
#4
Tried stopping ntpd, setting date manually with date command, then restart ntpd. Still wont work. Any suggestions what is wrong?

Did a quick install of pfSense and it works straight away...but I would like to use OPNsense since it feel more modern.
#5
Running ntptime gives an error

root@OPNsense:/var/log # ntptime
ntp_gettime() returns code 5 (ERROR)
  time e2dfbf6f.16e9f000  Thu, Aug 13 2020 15:32:31.089, (.244089507),
  maximum error 16032000 us, estimated error 16000000 us, TAI offset 0
ntp_adjtime() returns code 5 (ERROR)
  modes 0x0 (),
  offset 0.000 us, frequency 0.000 ppm, interval 4 s,
  maximum error 16032000 us, estimated error 16000000 us,
  status 0x41 (PLL,UNSYNC),
  time constant 3, precision 0.000 us, tolerance 496 ppm,
  pps frequency 0.000 ppm, stability 0.000 ppm, jitter 0.000 us,
  intervals 0, jitter exceeded 0, stability exceeded 0, errors 0.
#6
Thanks guys! I'll give set date manually a try then I'll try chrony.
#7
Can't get ntpd to work. Clean install with default settings. It's stuck in Unreach/Pending no matter how long I wait.

Aug 12 10:25:38 OPNsense ntpd[19031]: ntpd 4.2.8p15@1.3728-o Tue Jul 28 02:25:36 UTC 2020 (1): Starting
Aug 12 10:25:38 OPNsense ntpd[19031]: Command line: /usr/local/sbin/ntpd -g -c /var/etc/ntpd.conf -p /var/run/ntpd.pid
Aug 12 10:25:38 OPNsense ntpd[19031]: ----------------------------------------------------
Aug 12 10:25:38 OPNsense ntpd[19031]: ntp-4 is maintained by Network Time Foundation,
Aug 12 10:25:38 OPNsense ntpd[19031]: Inc. (NTF), a non-profit 501(c)(3) public-benefit
Aug 12 10:25:38 OPNsense ntpd[19031]: corporation.  Support and training for ntp-4 are
Aug 12 10:25:38 OPNsense ntpd[19031]: available at https://www.nwtime.org/support
Aug 12 10:25:38 OPNsense ntpd[19031]: ----------------------------------------------------
Aug 12 10:25:38 OPNsense ntpd[22352]: proto: precision = 0.045 usec (-24)
Aug 12 10:25:38 OPNsense ntpd[22352]: basedate set to 2020-07-16
Aug 12 10:25:38 OPNsense ntpd[22352]: gps base set to 2020-07-19 (week 2115)
Aug 12 10:25:38 OPNsense ntpd[22352]: restrict: 'monitor' cannot be disabled while 'limited' is enabled
Aug 12 10:25:38 OPNsense ntpd[22352]: Listen and drop on 0 v6wildcard [::]:123
Aug 12 10:25:38 OPNsense ntpd[22352]: Listen and drop on 1 v4wildcard 0.0.0.0:123
Aug 12 10:25:38 OPNsense ntpd[22352]: Listen normally on 2 re0 10.0.0.4:123
Aug 12 10:25:38 OPNsense ntpd[22352]: Listen normally on 3 re0 [fe80::21e:6ff:fe45:2ce0%1]:123
Aug 12 10:25:38 OPNsense ntpd[22352]: Listen normally on 4 re1 [fe80::21e:6ff:fe45:2ce1%2]:123
Aug 12 10:25:38 OPNsense ntpd[22352]: Listen normally on 5 re1 10.0.0.197:123
Aug 12 10:25:38 OPNsense ntpd[22352]: Listen normally on 6 lo0 [::1]:123
Aug 12 10:25:38 OPNsense ntpd[22352]: Listen normally on 7 lo0 [fe80::1%4]:123
Aug 12 10:25:38 OPNsense ntpd[22352]: Listen normally on 8 lo0 127.0.0.1:123
Aug 12 10:25:38 OPNsense ntpd[22352]: Listening on routing socket on fd #29 for interface updates
Aug 12 10:25:38 OPNsense ntpd[22352]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Aug 12 10:25:38 OPNsense ntpd[22352]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized