• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Time is not syncing

Scheduled Pinned Locked Moved General pfSense Questions
62 Posts 6 Posters 13.6k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    brunovic
    last edited by Jun 14, 2018, 1:50 PM

    I am having issues with my TOTP and I am noticing that the time of my pfsense is off by two minutes from the time of my client. I've configured both the pfsense and my client with the same ntp server: 0.north-america.pool.ntp.org but the pfsense is still off by two minutes.

    1 Reply Last reply Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator
      last edited by Jun 14, 2018, 2:48 PM

      Is the pfsense actually syncing to ntp? What does the status of your ntp service show in pfsense?

      0_1528987692807_ntpstatus.png

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.8, 24.11

      1 Reply Last reply Reply Quote 0
      • B
        brunovic
        last edited by Jun 14, 2018, 3:15 PM

        0_1528989464266_Capture03.JPG

        N 1 Reply Last reply Jun 14, 2018, 3:44 PM Reply Quote 0
        • N
          NogBadTheBad @brunovic
          last edited by NogBadTheBad Jun 14, 2018, 3:53 PM Jun 14, 2018, 3:44 PM

          @brunovic said in Time is not syncing:

          0_1528989464266_Capture03.JPG

          Try using:-

          0.pool.ntp.org to 3.pool.ntp.org

          Does it then sync ?

          "NTP will only sync if a majority of the servers agree on the time. For best results you should configure between 3 and 5 servers (NTP support pages recommend at least 4 or 5), or a pool. If only one server is configured, it will be believed, and if 2 servers are configured and they disagree, neither will be believed. Options:
          Prefer - NTP should favor the use of this server more than all others.
          No Select - NTP should not use this server for time, but stats for this server will be collected and displayed.
          Is a Pool - this entry is a pool of NTP servers and not a single address. This is assumed for *.pool.ntp.org."

          Andy

          1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

          1 Reply Last reply Reply Quote 0
          • J
            johnpoz LAYER 8 Global Moderator
            last edited by Jun 14, 2018, 3:44 PM

            Well that is not working since its not even resolving any hosts in the pool. So it doesn't even know to ask any ntp server for time.

            See how I have a placeholder, and then IPs listed under that.

            I would validate that pfsense is able to resolve.. You can use the dns lookup tool under diag to check if pfsense can resolve that FQDN.. See example below

            0_1528991100395_ntpresolving.png

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            B 1 Reply Last reply Jun 14, 2018, 3:58 PM Reply Quote 0
            • B
              brunovic
              last edited by Jun 14, 2018, 3:54 PM

              @NogBadTheBad I've already done that too with the same results.0_1528991697118_Capture02.JPG

              N 1 Reply Last reply Jun 14, 2018, 3:58 PM Reply Quote 0
              • J
                johnpoz LAYER 8 Global Moderator
                last edited by Jun 14, 2018, 3:58 PM

                Ok so your resolving, but ntp not able to reach or is not resolving? Place a specific IP in there vs FQDN.

                What do you have listed for interface that ntp is listening on? There was a recent there were a user was seeing a problem that ntp could not query unless they selected the wan interface. Even though that should not be required, unless you had maybe messed with your outbound nat.

                Are you trying to force all traffic through a vpn? your doing something odd with pfsense dns for sure since the only IP listed in pfsense for using the unbound resolver is the loopback, like you see in my output. But your also listing opendns.

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.8, 24.11

                B 1 Reply Last reply Jun 14, 2018, 4:20 PM Reply Quote 0
                • B
                  brunovic @johnpoz
                  last edited by Jun 14, 2018, 3:58 PM

                  @johnpoz I am not sure why 0.north-america.pool.ntp.org was cut off in the Status/NTP section but it was configured correctly in the NTP config and it resolves perfectly fine.

                  0_1528991917838_Capture04.JPG

                  1 Reply Last reply Reply Quote 0
                  • N
                    NogBadTheBad @brunovic
                    last edited by Jun 14, 2018, 3:58 PM

                    @brunovic

                    [2.4.3-RELEASE][admin@pfsense]/root: ntpq -pn
                         remote           refid      st t when poll reach   delay   offset  jitter
                    ==============================================================================
                     0.pool.ntp.org  .POOL.          16 p    -   64    0    0.000    0.000   0.000
                     1.pool.ntp.org  .POOL.          16 p    -   64    0    0.000    0.000   0.000
                     2.pool.ntp.org  .POOL.          16 p    -   64    0    0.000    0.000   0.000
                     3.pool.ntp.org  .POOL.          16 p    -   64    0    0.000    0.000   0.000
                    -2a01:7e00::f03c 85.199.214.98    2 u  334  512  377   10.483   -0.018   0.166
                    +185.182.62.7    85.199.214.102   2 u   92  512  377    9.679   -0.223   0.409
                    *87.242.168.84   .UPPS.           1 u  133  512  377   20.003    0.220   0.106
                    -2001:1b40:5000: 188.39.213.7     2 u  324  512  377   10.234    2.004   0.296
                    -83.137.225.103  193.190.230.66   2 u  199  512  377   10.425    0.849   0.296
                    +188.39.213.7    .GPS.            1 u  432  512  377   16.887    0.036   4.039
                    [2.4.3-RELEASE][admin@pfsense]/
                    

                    0_1528991888081_Untitled.jpeg

                    Works fine here, I know thats not of any help.

                    Andy

                    1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

                    1 Reply Last reply Reply Quote 0
                    • B
                      brunovic
                      last edited by brunovic Jun 14, 2018, 4:07 PM Jun 14, 2018, 4:05 PM

                      These are the results when I put the IP addresses directly in. Where do I find out what interface NTP is listening on?

                      0_1528992318854_Capture05.JPG

                      0_1528992358185_Capture06.JPG

                      1 Reply Last reply Reply Quote 0
                      • B
                        beremonavabi
                        last edited by beremonavabi Jun 14, 2018, 4:09 PM Jun 14, 2018, 4:08 PM

                        Here's a link to my thread (that johnpoz mentioned) on the same problem:

                        https://forum.netgate.com/topic/131506/ntp-not-working-solved-mostly

                        For me, I have to have WAN selected under Services > NTP in the Interfaces section. I've been utterly unable to find any reason for this since it shouldn't be necessary.

                        SG-4860, pfSense 2.4.5-RELEASE-p1 (amd64)

                        B 1 Reply Last reply Jun 14, 2018, 4:12 PM Reply Quote 1
                        • B
                          brunovic @beremonavabi
                          last edited by Jun 14, 2018, 4:12 PM

                          @beremonavabi said in Time is not syncing:

                          Here's a link to my thread (that johnpoz mentioned) on the same problem:

                          https://forum.netgate.com/topic/131506/ntp-not-working-solved-mostly

                          For me, I have to have WAN selected under Services > NTP in the Interfaces section. I've been utterly unable to find any reason for this since it shouldn't be necessary.

                          This solution worked for me. Thank you.

                          0_1528992756723_Capture07.JPG

                          B 1 Reply Last reply Jun 14, 2018, 4:13 PM Reply Quote 0
                          • B
                            beremonavabi @brunovic
                            last edited by Jun 14, 2018, 4:13 PM

                            @brunovic
                            I don't like having my WAN selected for NTP to listen to. But, since that's the only way I've found to be able to get NTP to run, I guess I have to live with it.

                            SG-4860, pfSense 2.4.5-RELEASE-p1 (amd64)

                            N 1 Reply Last reply Jun 14, 2018, 4:16 PM Reply Quote 1
                            • N
                              NogBadTheBad @beremonavabi
                              last edited by Jun 14, 2018, 4:16 PM

                              @beremonavabi

                              Does it now work ?

                              You both shouldn't need to have it listening on the WAN interface.

                              Andy

                              1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

                              B 1 Reply Last reply Jun 14, 2018, 4:21 PM Reply Quote 0
                              • B
                                brunovic @johnpoz
                                last edited by Jun 14, 2018, 4:20 PM

                                @johnpoz so it looks like my outbound NAT is manually configured. How will this prevent NTP from syncing?

                                0_1528993260522_Capture08.JPG

                                B 1 Reply Last reply Jun 19, 2018, 4:56 PM Reply Quote 0
                                • B
                                  beremonavabi @NogBadTheBad
                                  last edited by Jun 14, 2018, 4:21 PM

                                  @nogbadthebad said in Time is not syncing:

                                  @beremonavabi

                                  Does it now work ?

                                  You both shouldn't need to have it listening on the WAN interface.

                                  NTP will ONLY run on my SG-4860 if WAN is selected to listen to (the gory details of everything I've tried are in the thread I referenced, above). I agree that the WAN shouldn't be necessary. But, for no reason I can come up with, it turns out to be necessary in my case.

                                  Looking over some of brunovic's other posts, it looks like he's using a VPN. I am, too. It's possible that's a relationship, but I just don't see why using a VPN might interfere with NTP.

                                  SG-4860, pfSense 2.4.5-RELEASE-p1 (amd64)

                                  B N J 3 Replies Last reply Jun 14, 2018, 4:25 PM Reply Quote 0
                                  • B
                                    brunovic @beremonavabi
                                    last edited by Jun 14, 2018, 4:25 PM

                                    @beremonavabi I use a VPN for remote access into my network but not for outbound traffic. Is that how you are using it?

                                    B 1 Reply Last reply Jun 14, 2018, 4:28 PM Reply Quote 0
                                    • N
                                      NogBadTheBad @beremonavabi
                                      last edited by NogBadTheBad Jun 14, 2018, 4:26 PM Jun 14, 2018, 4:26 PM

                                      @beremonavabi said in Time is not syncing:

                                      @nogbadthebad said in Time is not syncing:

                                      @beremonavabi

                                      Does it now work ?

                                      You both shouldn't need to have it listening on the WAN interface.

                                      NTP will ONLY run on my SG-4860 if WAN is selected to listen to (the gory details of everything I've tried are in the thread I referenced, above). I agree that the WAN shouldn't be necessary. But, for no reason I can come up with, it turns out to be necessary in my case.

                                      Looking over some of brunovic's other posts, it looks like he's using a VPN. I am, too. It's possible that's a relationship, but I just don't see why using a VPN might interfere with NTP.

                                      I run a IKEv2 IPsec VPN ( inbound ) too I've got Automatic outbound NAT rule generation set.

                                      Andy

                                      1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

                                      1 Reply Last reply Reply Quote 0
                                      • B
                                        beremonavabi @brunovic
                                        last edited by Jun 14, 2018, 4:28 PM

                                        @brunovic I've got OpenVPN clients running on my pfSense box to my VPN provider (AirVPN). I've also got a server running on it so our phones can use the VPN.

                                        SG-4860, pfSense 2.4.5-RELEASE-p1 (amd64)

                                        B 1 Reply Last reply Jun 14, 2018, 4:37 PM Reply Quote 0
                                        • B
                                          brunovic @beremonavabi
                                          last edited by Jun 14, 2018, 4:37 PM

                                          @beremonavabi ah no I am not using the client on my pfsense just the server.

                                          B 1 Reply Last reply Jun 14, 2018, 4:48 PM Reply Quote 0
                                          1 out of 62
                                          • First post
                                            1/62
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received