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

OpenNTP won't start

2.1 Snapshot Feedback and Problems - RETIRED
4
14
4.9k
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.
  • J
    johnpoz LAYER 8 Global Moderator
    last edited by Apr 20, 2012, 11:32 AM Apr 20, 2012, 11:30 AM

    As mentioned before around here, pfsense has both openntp and true ntpd – why I have no freaking idea, that makes little sense to me.  Pick one ;)  openntp is the wrong choice.

    But hey simple pkg_add -r and I have the current version and for everything else you need so you can log and can query it with ntpq or ntpdc, etc..

    you listed out the options for ntpd, but then when you ran it was openntp

    ls -la /usr/local/sbin/ntpd
    -r-xr-xr-x  1 root  wheel  43984 Mar 21 07:57 /usr/local/sbin/ntpd

    ls -la /usr/sbin/ntpd
    -r-xr-xr-x  1 root  wheel  347760 Mar 21 07:55 /usr/sbin/ntpd

    the one in usr/sbin is
    /usr/sbin/ntpd --version
    ntpd - NTP daemon program - Ver. 4.2.4p5

    one in /usr/local/sbin is that other pos ;)

    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
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Apr 20, 2012, 11:37 AM

      We'd love to use the stock FreeBSD ntpd but it does not support selective binding that we need. You can filter it in various ways but it doesn't change the fact that it will always bind to every IP. OpenNTPd, when told to only listen on certain IPs, only binds to those and no others.

      OpenNTPd does log correctly on current snapshots.

      Remember: Upvote with the πŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      1 Reply Last reply Reply Quote 0
      • J
        johnpoz LAYER 8 Global Moderator
        last edited by Apr 20, 2012, 12:16 PM Apr 20, 2012, 12:08 PM

        what does it matter if binds to all ips?  Not going to be open from wan until you allow the firewall rule.  Its not going to answer queries until configured to do so, etc.

        I agree it not an optimal thing – you really should be able to bind to the ips you want/need.  But the to me the many other features outweigh that small flaw.

        "OpenNTPd does log correctly on current snapshots."

        What does it log??  I just started it up vs the ntpd -- now I am blind to checking if its sync'd or not because I can not query it.  I see it started in the system log.. But not seeing any entries in openntp tab in the logs section.

        4:13 php: /status_services.php: OpenNTPD is starting up.

        I am on the latest snap I do believe

        2.1-DEVELOPMENT (i386)
        built on Wed Apr 18 18:25:03 EDT 2012
        FreeBSD 8.3-RELEASE

        You are on the latest version.

        What does it log?

        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
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Apr 20, 2012, 12:14 PM

          Because to make the NTP service properly accessible in many cases, especially over VPNs, it's required.

          The way NTP works (and most UDP services) the reply is sourced from the bound interface closest to the client. So, say you have LAN and DMZ. If you request the time from the LAN interface from a DMZ client, it responds from the DMZ interface, even when the request was made to the LAN, so the reply is ignored. If the daemon is only bound to the LAN IP, that's where the reply comes from.

          Now imagine you're querying the service on a CARP VIP, the reply comes from the interface, not the CARP VIP… kind of annoying, at least it did last I tried it.

          Remember: Upvote with the πŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • W
            wallabybob
            last edited by Apr 20, 2012, 12:26 PM

            @jimp:

            OpenNTPd does log correctly on current snapshots.

            I'm running 2.1-DEVELOPMENT (i386) built on Tue Apr 17 16:58:04 EDT 2012 FreeBSD 8.3-RELEASE and my ntpd log is empty.

            I expected to see at least a startup message.

            My snapshot not current enough?

            1 Reply Last reply Reply Quote 0
            • J
              johnpoz LAYER 8 Global Moderator
              last edited by Apr 20, 2012, 12:29 PM

              K - how about since you have both versions installed we get something in the gui that allows for which one you want to run!  That would be the best of both worlds and make everyone happy I think?

              Not sure why and the hell I would not just query the dmz interface for ntp for boxes in my dmz?  As to vpn, again could not just query the correct ip ;)  Since as you stated its going to be listening on every one?  Since you can not just bind it to specific.

              Same thing goes with your carp vip example..  Again its listening on all IPs is not??  Then query the one you want a reply from – why would you ever query the interface that is not closest too you??  I could see the thing with the VIP being hey that's the logical one, etc.

              Not sure i would ever being doing queries to a ntp over a vpn connection in the first place?  Run one local to that network, and sync it to a good source, etc.

              Again the features of the full ntpd so far outweigh the selective binding - the openntp client other than selective binding blows chunks compared to the normal ntpd.

              It would be fantastic to allow for simple choice of which one you want to run - that is for sure.

              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
              • J
                jimp Rebel Alliance Developer Netgate
                last edited by Apr 20, 2012, 12:44 PM

                Those were just examples, but in the case of the CARP VIP, you are querying the one 'closest' to you. It still responds from the "wrong" IP on the same interface, iirc. It's been a while since I tested that, may need to try it again.

                As for the GUI switch, patches accepted. Let me know when you're done coding it up. :-)

                @wallabybob:

                I'm running 2.1-DEVELOPMENT (i386) built on Tue Apr 17 16:58:04 EDT 2012 FreeBSD 8.3-RELEASE and my ntpd log is empty.

                I expected to see at least a startup message.

                My snapshot not current enough?

                I thought it may have been fixed by then, but now I'm not seeing logs in mine again. It was logging fine on the 17th after I made some changes to the syslog config format, but now it doesn't seem to be. It was at least logging time adjustments every few minutes.

                Apr 17 09:03:50 	ntpd[41857]: adjusting local clock by 0.002309s
                Apr 17 09:07:30 	ntpd[41857]: adjusting local clock by 0.000968s
                Apr 17 09:08:38 	ntpd[41857]: adjusting clock frequency by 12.622102 to 0.462800ppm
                Apr 17 09:13:05 	ntpd[41857]: adjusting local clock by 0.003031s
                Apr 17 09:16:47 	ntpd[41857]: adjusting local clock by 0.003045s
                Apr 17 09:19:28 	ntpd[41857]: adjusting local clock by 0.000410s
                

                Remember: Upvote with the πŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • C
                  Cino
                  last edited by Apr 20, 2012, 5:14 PM

                  updated the binaries and its working again… no logging still... but at least it works :-)

                  1 Reply Last reply Reply Quote 0
                  • W
                    wallabybob
                    last edited by Apr 30, 2012, 1:14 AM

                    I recently upgraded to 2.1-DEVELOPMENT (i386)
                    built on Sat Apr 28 05:27:55 EDT 2012
                    FreeBSD 8.3-RELEASE
                    and ntpd logging is still not working (Status -> System Logs, OpenNTPD tab displays an empty log).

                    1 Reply Last reply Reply Quote 0
                    • J
                      jimp Rebel Alliance Developer Netgate
                      last edited by May 2, 2012, 12:49 PM

                      NTP logging should be fixed now, it's happy in the current snapshot since I fixed it yesterday.

                      Remember: Upvote with the πŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                      Need help fast? Netgate Global Support!

                      Do not Chat/PM for help!

                      1 Reply Last reply Reply Quote 0
                      • W
                        wallabybob
                        last edited by May 2, 2012, 1:30 PM

                        @jimp:

                        NTP logging should be fixed now, it's happy in the current snapshot since I fixed it yesterday.

                        Thanks.

                        1 Reply Last reply Reply Quote 0
                        • C
                          Cino
                          last edited by May 2, 2012, 11:19 PM

                          thank you! I think this is the first time I've seen OpenNTPD logging functioning.    :)

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