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

    Current date/time issue

    General pfSense Questions
    3
    12
    2.4k
    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.
    • ?
      A Former User
      last edited by

      Would someone mind helping me figure out why my time is reporting incorrectly?

      My time is off by 5 hours and 3 minutes roughly. I've tried switching the timezone with a reboot several times. I've also tried different timeservers, including the current configuration of pool.ntp.org. Also, I've replaced my bios battery and set the time correctly there as well.

      I'm not too sure how else to troubleshoot. Appreciate any help.

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        You do understand ntp doesn't instantly adjust your time right..

        I would suggest you set your time to be close manually, then ntp keeps it in sync..

        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.7.2, 24.11

        ? 1 Reply Last reply Reply Quote 0
        • ?
          A Former User @johnpoz
          last edited by

          @johnpoz I guess I assumed setting the timezone would adjust the time accordingly. Thanks for the clarification.

          I set the time manually via "date" command and this is the output

          Shell Output - date 1653
          date: can't reach time daemon, time set locally
          Sun Feb 24 16:53:00 EST 2019
          
          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by johnpoz

            Ok so now what does the status of your ntp service show?

            Keep an eye on it...
            0_1551047036038_ntpstatus.png

            Do you show reach of 377 and an active peer, etc.

            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.7.2, 24.11

            ? 1 Reply Last reply Reply Quote 0
            • ?
              A Former User @johnpoz
              last edited by

              @johnpoz Status only shows Pool Placeholder...no reach of 377 or an active peer.

              0_1551048461596_6238270f-c9be-4396-97c8-2baa07dfaa62-image.png

              1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator
                last edited by johnpoz

                Well tells me your not even doing dns to find any names for ntp servers would be my guess. So yeah going to have a hard time setting time.

                0_1551052644178_dnslookup.png

                What do you get when you try and do dns lookup?

                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.7.2, 24.11

                ? 1 Reply Last reply Reply Quote 0
                • ?
                  A Former User @johnpoz
                  last edited by

                  @johnpoz
                  0_1551057462830_56893bc9-a201-404a-bf2e-a7df110414ce-image.png

                  GertjanG 1 Reply Last reply Reply Quote 0
                  • GertjanG
                    Gertjan @A Former User
                    last edited by

                    @angdigi
                    Instead of using the head of the pool "pool.ntp.org" use a more local == closer version like
                    de.pool.ntp.org or us.pool.ntp.org or fr.pool.ntp.org
                    Activate the logging on the NTP settings page and have a look at the logs.

                    You didn't block UDP traffic, destination port 122 by any chance ?
                    NTP is typically an "set NTP URL and forget it" functionality. If it doesn't work, it's because it can't phone home.

                    No "help me" PM's please. Use the forum, the community will thank you.
                    Edit : and where are the logs ??

                    ? 1 Reply Last reply Reply Quote 0
                    • ?
                      A Former User @Gertjan
                      last edited by

                      Thanks for the help @johnpoz and @Gertjan.

                      As I was changing the timeserver again, I noticed that certain interfaces were selected on the NTP settings page. I deselected the ones that were selected and it seems to be working now.

                      Are there any interfaces that I would not want to listen on? I have a mix of VLANs, LAN, WAN, and VPN_WAN interfaces.

                      1 Reply Last reply Reply Quote 0
                      • johnpozJ
                        johnpoz LAYER 8 Global Moderator
                        last edited by

                        listen on would be up to you on from what networks you want to serve ntp - but that wouldn't have any thing to do with interfaces you query from to actually get time.

                        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.7.2, 24.11

                        ? 1 Reply Last reply Reply Quote 0
                        • ?
                          A Former User @johnpoz
                          last edited by

                          @johnpoz As soon as I deselected the interfaces it started working. Where are the settings that define the interfaces I query from to get time?

                          1 Reply Last reply Reply Quote 0
                          • johnpozJ
                            johnpoz LAYER 8 Global Moderator
                            last edited by johnpoz

                            You don't My point is you can listen on lan or lan and opt or wan only, etc. etc. If you don't pick an interface it "listens" on all interfaces - but listening has zero to do with doing query from..

                            It would use the interface connected to that network if local, or if network where the ntp server is is not local then it would use its wan or normal default route interface.. If you had say a vpn service pulling all your default routes setup, etc.

                            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.7.2, 24.11

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post
                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.