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

Generate authentication key for NTP

Scheduled Pinned Locked Moved General pfSense Questions
4 Posts 2 Posters 457 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.
  • M
    markdudov
    last edited by Jun 8, 2024, 6:45 AM

    Hello guys,

    How could I generate SHA256 key for pfSense NTP?

    ebe2b354-179c-475d-a34a-3ec8a41f1358-image.png

    Can you give me a site that can generate it?

    J 1 Reply Last reply Jun 8, 2024, 10:44 AM Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator @markdudov
      last edited by Jun 8, 2024, 10:44 AM

      @markdudov those would normally be created on your ntp server.

      You would look to see details on generation with what ntp server your using be it ntp, chrony or ntpsec, etc..

      https://www.ntp.org/documentation/4.2.8-series/keygen/

      If the ntp server is not controlled by you, you would need to get with their admin for the key.

      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

      M 1 Reply Last reply Jun 8, 2024, 11:56 AM Reply Quote 0
      • M
        markdudov @johnpoz
        last edited by Jun 8, 2024, 11:56 AM

        @johnpoz

        The server is controlled by me. the service runs on pfsense. but I still can't figure out how to generate this SHA256 authentication key.

        J 1 Reply Last reply Jun 8, 2024, 12:21 PM Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator @markdudov
          last edited by johnpoz Jun 8, 2024, 12:35 PM Jun 8, 2024, 12:21 PM

          @markdudov so you want to generate a key for the ntp server on pfsense so your clients can auth?

          Not sure pfsense has support for that option, pretty sure the ntp auth they have available is for pfsense to auth to some ntp server as a client.

          "Authentication allows the NTP client to confirm it is communicating with the intended server, which protects against man-in-the-middle attacks."

          And I don't believe they allow for talking to more than 1 ntp server with different keys either.. Maybe in 24.03 or I know there is some patch or working on a patch for ntp auth.

          Personally I don't understand the use case for auth for local ntp.. You concerned that there will be some rogue ntp server on your network and you need to make sure your talking to the correct one via auth? Or that only your own clients on your own network are validated via auth to your server?

          Seems like extra work/config/setup for like zero benefit other than a complexity that could cause issues.. In what scenario on your own local secure network does this added complexity provide added anything? Is someone going to get on your own local network and fire up some ntp server to do mitm on your ntp traffic? For what purpose exactly? And how would they go about such a thing without having physical access or already compromised your wifi?

          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 1
          1 out of 4
          • First post
            1/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received