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

    NTP server issues

    Scheduled Pinned Locked Moved General pfSense Questions
    45 Posts 5 Posters 6.3k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by johnpoz

      5-144-132-2.static.hostiran.name

      That is IP in Iran...

      Why would they hard code an IP in iran? That makes ZERO sense!!

      its part of the pool for global, asia and iran..
      https://www.ntppool.org/scores/5.144.132.2

      So what is likely is you missed the query where it found that IP via dns via a query to ntp pool..

      You would have to be a complete an utter moron to hard code an IP for some mass produced device to use.. When if that IP goes away, what if can not run ntp on it. What if you sell 10 million devices that all now point to a single IP, etc. etc..

      They query a pool fqdn, and pick and IP.. or multiples from this pool..

      But its clear why his switch gs108Ev3 can not sync time - is because it has no settings for that at all.. It has no log that I can see.. so what point of time would it have?

      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

      JKnottJ 1 Reply Last reply Reply Quote 0
      • JKnottJ
        JKnott @johnpoz
        last edited by

        @johnpoz said in NTP server issues:

        So what is likely is you missed the query where it found that IP via dns via a query to ntp pool..

        Actually, I did watch for DNS when I first noticed that and didn't see any. Also, if it queried pool.ntp.org, it should have got an address on my LAN, as I have a host override to point to my pfSense firewall.

        It's not the first time I've seen a manufacturer do something stupid. Seems to me there's a switch & AP manufacturer that couldn't do VLANs right. 😉

        PfSense running on Qotom mini PC
        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
        UniFi AC-Lite access point

        I haven't lost my mind. It's around here...somewhere...

        1 Reply Last reply Reply Quote 0
        • 4
          4o4rh @johnpoz
          last edited by

          @johnpoz I have the pro version, you have the plus. You don't seem to have many of the features that i have.
          Time is under System, Management, Time. But like i say, you are missing a whole bunch of stuff like switching, routing, qos, etc

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

            @JKnott said in NTP server issues:

            it should have got an address on my LAN

            How do you know it didn't query asia.pool.ntp.org or 0.pool.ntp.org, 1.pool.ntp.org, do you have a wildcard setup?

            Again any sntp client could query the ntp service that pfsense is running... It is the the ntp server that owns the internet to be honest.. Sniff the traffic.. What do you see.

            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

            JKnottJ 1 Reply Last reply Reply Quote 0
            • 4
              4o4rh @JKnott
              last edited by

              @JKnott i removed all timeservers except for the pfsense box and i am getting TCP 66 to 52.211.208.165

              1 Reply Last reply Reply Quote 0
              • JKnottJ
                JKnott @johnpoz
                last edited by

                @johnpoz

                While you were posting that, I checked again and it is indeed querying asia.pool.ntp.org. I don't know how I missed that before.

                This is one example of where using Wireshark is better than Packet Capture. With Wireshark I can filter on both DNS and NTP at the same time, along with the MAC address, whereas Packet Capture can only filter on 1 protocol at a time, along with MAC or IP address.

                Still, given that the tablets are used around the world, it would be better if they just used pool.ntp.org, instead of asia.pool.ntp.org. Using pool.ntp.org will provide a regional address.

                Guess it's time for another host override.

                PfSense running on Qotom mini PC
                i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                UniFi AC-Lite access point

                I haven't lost my mind. It's around here...somewhere...

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

                  yup same sort of nonsense with my smart plugs using uk.pool ;) hehehe

                  you can download the pcap.. Your pfsense box sure and the F is not 52.211.x.x is it??

                  That is a aws IP, and is not in the pool.

                  And I don't show it answering ntp.. And TCP is not what sntp or ntp uses.. anyway. Are you trying to say port tcp 66 to that IP? That sure and the hell has nothing to do with time. Or is the packet size... sniff on port 123 UDP.. And then open it in wireshark - attach a copy..

                  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

                  4 1 Reply Last reply Reply Quote 0
                  • 4
                    4o4rh @johnpoz
                    last edited by

                    @johnpoz how can i export just the 4 ntp lines from wireshark
                    ntp client
                    ntp server
                    ntp client
                    ntp server

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

                      Attache the pcap.. If you sniffed on 123 and the IP of your switch all that would be in there is its query for ntp and answers.

                      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

                      JKnottJ 4 2 Replies Last reply Reply Quote 0
                      • JKnottJ
                        JKnott @johnpoz
                        last edited by

                        @johnpoz

                        I often filter on the MAC, to capture both IPv4 and IPv6.

                        PfSense running on Qotom mini PC
                        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                        UniFi AC-Lite access point

                        I haven't lost my mind. It's around here...somewhere...

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

                          Thats fine - is is switch running IPv6.. He made no mention of that.. Here is query from my pc to my ntp server.. That captured with pfsense

                          Since its routed from my lan to my segment my pi ntp server sites in.

                          ntp.pcap

                          You can download that and open in wireshark as example of ntp query and answer.

                          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
                          • 4
                            4o4rh @johnpoz
                            last edited by

                            @johnpoz ntp_dump.pcap i notice in the two server entries, the first one is giving the address 127.0.0.1 and the second says unidentified reference source 'rate'

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

                              That shows that your ntp on pfsense is not in sync... Show us the status of ntp on pfsense.

                              ntp.jpg

                              Here is what typical should look like

                              buthere.jpg

                              Says right there that your clock is unsynced

                              notsync.jpg

                              So no - no clients at all should sync with that..

                              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

                              4 1 Reply Last reply Reply Quote 0
                              • 4
                                4o4rh @johnpoz
                                last edited by

                                @johnpoz Selection_011.png

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

                                  So pfsense can not talk to any ntp servers, so no shit nobody is going to be able to sync time with it.

                                  your reach needs to be 377... And looks like you hae those set as pool placeholders... But they prob never resolved.

                                  example
                                  lookup.jpg

                                  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

                                  4 1 Reply Last reply Reply Quote 0
                                  • 4
                                    4o4rh @johnpoz
                                    last edited by

                                    @johnpoz i had the interface set to all the LAN/VLAN addresses. Now i changed it to the WAN/VPN and chugging.

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

                                      Ok once you see it in sync.. Then your switch should sync with it... But when it is unsync like that, no ntp client would sync.

                                      You changed it to what? Your ntp services doesn't need to listen on your wan/vpn... You mean your dns was not using your wan/vpn to resolve with?

                                      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

                                      4 1 Reply Last reply Reply Quote 0
                                      • 4
                                        4o4rh
                                        last edited by 4o4rh

                                        @johnpoz I originally had the Listen Interface selecting only the LAN/VLANS, but not the WAN/VPNs, now i reversed it.

                                        should i listen on both wan and vpn, or just wan?
                                        is europe pool ntp org enough, or should i add individual country pools?
                                        How do i know when it is in sync

                                        Selection_012.png

                                        4 1 Reply Last reply Reply Quote 0
                                        • stephenw10S
                                          stephenw10 Netgate Administrator
                                          last edited by

                                          Wait until you have entries showing reach 377 and an active peer. Check the logs.
                                          But that looks good now.

                                          4 1 Reply Last reply Reply Quote 0
                                          • 4
                                            4o4rh @4o4rh
                                            last edited by 4o4rh

                                            @gwaitsi hmm... interesting.

                                            1. if i select no interface items, it works.
                                            2. if i select all the vlan/lan interfaces only, it does not work
                                            3. if i select the wan/vpn interfaces only , it works
                                            4. if i select the vlan interfaces only, works
                                            5. if i select the lan interfaces (3) only, it does not work
                                            6. if i select any one of the lan interfaces, it does not work.

                                            So the issue seems to be with having ntp listen on a lan interface
                                            *** So i confirmed it, if i enter the pfsense vlan address as the time server, netgear successfully updates ***

                                            so, what can be breaking the NTP if i select the lan interfaces to listen on

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